커뮤니티

부탁드립니다.

프로필 이미지
라떼처럼
2020-03-02 21:24:04
385
글번호 136508
답변완료
항상 감사드립니다. 아래의 1)청산 식은 10 틱 이상 수익이면 다시 95% 하락시 청산하는 식입니다 이식을 10 틱 이하 손실이면 다시 95% 상승시 청산하는 식으로 수정 부탁드립니다. 감사합니다. 1)청산 var : BH(0),SL(0),HE(0),LE(0); if MarketPosition == 1 and Ccond == True Then { BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if BH >= EntryPrice+PriceScale*10 then{ ExitLong("B익절1",AtStop,BH-(BH-EntryPrice)*0.95); } } if MarketPosition == -1 and Ccond == True Then { SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if SL <= EntryPrice-PriceScale*10 then{ ExitShort("S익절1",AtStop,SL+(EntryPrice-SL)*0.95); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-03-03 11:15:55

안녕하세요 예스스탁입니다. var : BH(0),BL(0),SL(0),SH(0),HE(0),LE(0); if MarketPosition == 1 and Ccond == True Then { BH = highest(H,BarsSinceEntry); BL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if BL <= EntryPrice-PriceScale*10 then { ExitLong("Bx",Atlimit,BL+(EntryPrice-BL)*0.95); } } if MarketPosition == -1 and Ccond == True Then { SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if SH >= EntryPrice+PriceScale*10 then { ExitShort("Sx",AtLimit,SH-(SH-EntryPrice)*0.95); } } 즐거운 하루되세요 > 라떼처럼 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 항상 감사드립니다. 아래의 1)청산 식은 10 틱 이상 수익이면 다시 95% 하락시 청산하는 식입니다 이식을 10 틱 이하 손실이면 다시 95% 상승시 청산하는 식으로 수정 부탁드립니다. 감사합니다. 1)청산 var : BH(0),SL(0),HE(0),LE(0); if MarketPosition == 1 and Ccond == True Then { BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if BH >= EntryPrice+PriceScale*10 then{ ExitLong("B익절1",AtStop,BH-(BH-EntryPrice)*0.95); } } if MarketPosition == -1 and Ccond == True Then { SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if SL <= EntryPrice-PriceScale*10 then{ ExitShort("S익절1",AtStop,SL+(EntryPrice-SL)*0.95); } }