커뮤니티
몇프로 로부탁합니다
2017-01-09 14:34:49
102
글번호 105699
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+6 Then
ExitLong("bx",AtStop,highest(H,BarsSinceEntry)-1,"",Floor(CurrentContracts*0.3),1);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-6 Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)+1,"",Floor(CurrentContracts*0.3),1);
수고하십니다
위수식에서 6 이후1하락을 6프로 이후 1프로 로바꾸어주세요
감사합니다.
답변 1
예스스탁 예스스탁 답변
2017-01-09 17:15:53
안녕하세요
예스스탁입니다.
input : 수익(6),감소(1);
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice*(1+수익/100) Then
ExitLong("bx",AtStop,highest(H,BarsSinceEntry)*(1-감소/100),"",Floor(CurrentContracts*0.3),1);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice*(1-수익/100) Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)*(1+감소/100),"",Floor(CurrentContracts*0.3),1);
즐거운 하루되세요
> 큰바위얼굴 님이 쓴 글입니다.
> 제목 : 몇프로 로부탁합니다
>
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+6 Then
ExitLong("bx",AtStop,highest(H,BarsSinceEntry)-1,"",Floor(CurrentContracts*0.3),1);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-6 Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)+1,"",Floor(CurrentContracts*0.3),1);
수고하십니다
위수식에서 6 이후1하락을 6프로 이후 1프로 로바꾸어주세요
감사합니다.