커뮤니티

수식 부탁드립니다.

프로필 이미지
워싱턴
2019-05-28 13:06:14
197
글번호 129007
답변완료
안녕하세요 항상 많은 도움에 감사드립니다. 아래의 2가지 수식을 부탁드립니다. (1) 매수 또는 매도 진입후에 +7틱이상 상승하다가 -7틱하락하는 경우 즉시 보유분을 청산하는 수식 (2) 진입후에 40분동안 횡보하여 청산이 안되는 경우 현시점에서 (2-1) 상승하는 경우는 +3틱정도 상승하면 청산 (2-2) 하락하는 경우는 -3틱정도 하락하면 청산 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-05-29 09:35:17

안녕하세요 예스스탁입니다. 1 if MarketPosition == 1 then { if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*7 Then ExitLong("bx",AtStop,highest(H,BarsSinceEntry)-PriceScale*7); } if MarketPosition == -1 then { if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*7 Then ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*7); } 2 if MarketPosition == 1 then { if TimeToMinutes(stime) >= TimeToMinutes(EntryTime(0))+40 Then { ExitLong("bx1",AtStop,EntryPrice-PriceScale*3); ExitLong("bx2",Atlimit,EntryPrice+PriceScale*3); } } if MarketPosition == -1 then { if TimeToMinutes(stime) >= TimeToMinutes(EntryTime(0))+40 Then { ExitShort("sx1",AtStop,EntryPrice+PriceScale*3); ExitShort("sx2",Atlimit,EntryPrice-PriceScale*3); } } 즐거운 하루되세요 > 워싱턴 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다. > 안녕하세요 항상 많은 도움에 감사드립니다. 아래의 2가지 수식을 부탁드립니다. (1) 매수 또는 매도 진입후에 +7틱이상 상승하다가 -7틱하락하는 경우 즉시 보유분을 청산하는 수식 (2) 진입후에 40분동안 횡보하여 청산이 안되는 경우 현시점에서 (2-1) 상승하는 경우는 +3틱정도 상승하면 청산 (2-2) 하락하는 경우는 -3틱정도 하락하면 청산 감사합니다.