예스스탁
예스스탁 답변
2016-04-04 11:12:46
안녕하세요
예스스탁입니다.
1.
if MarketPosition == 1 Then{
ExitLong("bx1",AtStop,Highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.2,"",1,1);
if 청산조건 Then{
ExitLong("bx2",OnClose,def,"",1,1);
}
}
if MarketPosition == 1 Then{
ExitShort("sx1",AtStop,Lowest(L,BarsSinceEntry)+(EntryPrice-Lowest(L,BarsSinceEntry))*0.2,"",1,1);
if 청산조건 Then{
ExitShort("sx2",OnClose,def,"",1,1);
}
}
SetStopLoss(EntryPrice-PriceScale*50,PointStop);
2
if MarketPosition == 1 Then{
ExitLong("bx1",AtStop,Highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.2,"",1,1);
}
if MarketPosition == 1 Then{
ExitShort("sx1",AtStop,Lowest(L,BarsSinceEntry)+(EntryPrice-Lowest(L,BarsSinceEntry))*0.2,"",1,1);
}
SetStopLoss(EntryPrice-PriceScale*50,PointStop);
3
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*100 Then
ExitLong("bx1",AtStop,Highest(H,BarsSinceEntry)-PriceScale*20,"",1,1);
if 청산조건 Then{
ExitLong("bx2",OnClose,def,"",1,1);
}
}
if MarketPosition == 1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*100 Then
ExitShort("sx1",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*20,"",1,1);
if 청산조건 Then{
ExitShort("sx2",OnClose,def,"",1,1);
}
}
즐거운 하루되세요
> 파생타이거 님이 쓴 글입니다.
> 제목 : 수식 문의 드립니다
> 해외선물 청산관련 수식을 문의 드립니다
처음 진입시 2개진입
1.
1개는 최고수익대비 20%하락이면청산
나머지 한개는 청산 조건이 만족하면 청산
손절은 50틱 자동청산
2.
최고수익대비 20% 하락시 전량 청산
손절은 50틱 자동청산
3.
100틱이상 수익시 20틱하락일때 1개청산
나머지 한개는 청산 조건이 만족하면 청산
각수식과 해석을 부탁드립니다