커뮤니티
계약수
2019-04-16 11:17:50
195
글번호 127877
buy( 3 계약 )
한계약은 40틱 이상 상승후 10틱 하락하면 익절 ,
한계약은 90틱 이상 상승후 10틱 하락하면 익절
한계약은 수식대로 ...
손절은 N 틱
답변 1
예스스탁 예스스탁 답변
2019-04-16 16:20:57
안녕하세요
예스스탁입니다.
input : n(20);
if MarketPosition == 1 Then
{
ExitLong("bx",AtStop,EntryPrice-PriceScale*n);
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*40 Then
ExitLong("bp1",AtStop,highest(H,BarsSinceEntry)-PriceScale*10,"",1,1);
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*90 Then
ExitLong("bp2",AtStop,highest(H,BarsSinceEntry)-PriceScale*10,"",1,1);
}
if MarketPosition == -1 Then
{
ExitShort("sx",AtStop,EntryPrice+PriceScale*n);
if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*40 Then
ExitShort("sp1",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*10,"",1,1);
if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*90 Then
ExitShort("sp2",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*10,"",1,1);
}
즐거운 하루되세요
> 구다이전설 님이 쓴 글입니다.
> 제목 : 계약수
>
buy( 3 계약 )
한계약은 40틱 이상 상승후 10틱 하락하면 익절 ,
한계약은 90틱 이상 상승후 10틱 하락하면 익절
한계약은 수식대로 ...
손절은 N 틱
다음글
이전글