커뮤니티
분할청산식 분의
2009-01-29 12:13:17
596
글번호 19838
안녕하세요?
분할청산식 문의 합니다.
=========================
1.진입후 5일 이동평균선이 60일 이동평균선을 하향 돌파하여 5일 이평이 60일 이평보다 아래에 있는 상태에서 음봉이 발생할때마다 맥스 진입수량을 10등분한것중 1등분씩 분할청산함.(5이평이 다시 60이평 위로 올라가면 음봉이 발생해도 청산하지 않음)
2.분할청산후 잔량은 150300시간에 당일청산함
=========================
미리 감사드립니다.
답변 1
예스스탁 예스스탁 답변
2009-01-29 14:28:06
안녕하세요
예스스탁입니다.
if crossup(c,ma(c,5)) Then
buy("b",OnClose,def,10);
if MarketPosition() == 1 Then{
if MarketPosition()[1] != 1 Then{
value1 = CurrentContracts();
var1 = int(value1*0.1);
var2 = value1-int(value1*0.1)*9;
}
if CurrentContracts == value1 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X1",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*1 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X2",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*2 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X3",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*3 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X4",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*4 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X5",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*5 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X6",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*6 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X7",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*7 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X8",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*8 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X9",OnClose,def,"",var1,1);
}
if CurrentContracts == value1-var1*9 and ma(c,5) < ma(c,60) and C < O Then{
exitlong("X10",OnClose,def,"",var2,1);
}
}
SetStopEndofday(150300);
즐거운 하루되세요
> 송아지 님이 쓴 글입니다.
> 제목 : 분할청산식 분의
> 안녕하세요?
분할청산식 문의 합니다.
=========================
1.진입후 5일 이동평균선이 60일 이동평균선을 하향 돌파하여 5일 이평이 60일 이평보다 아래에 있는 상태에서 음봉이 발생할때마다 맥스 진입수량을 10등분한것중 1등분씩 분할청산함.(5이평이 다시 60이평 위로 올라가면 음봉이 발생해도 청산하지 않음)
2.분할청산후 잔량은 150300시간에 당일청산함
=========================
미리 감사드립니다.
이전글