커뮤니티
질문
2013-02-19 11:26:37
215
글번호 59678
input : 시작날짜(20130104);
if sdate >= 시작날짜 and stime == 090500 and C > ma(c,360) Then{
if stime == 090500 Then{
if PositionProfit(1) >= 0 Then
buy("b1",onclose,def,1);
Else
buy("b2",onclose,def,var1*2);
}
}
if MarketPosition == 1 Then
var1 = CurrentContracts;
SetStopEndofday(144500);
위식에서 9시5분에 매수하는 식은 빼버리고 주가가 360일선 상향돌파시 매수하는식 부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2013-02-19 15:35:16
안녕하세요
예스스탁입니다.
input : 시작날짜(20130104);
value1 = ma(c,360);
if sdate >= 시작날짜 and crossup(C,value1) Then{
if stime == 090500 Then{
if PositionProfit(1) >= 0 Then
buy("b1",onclose,def,1);
Else
buy("b2",onclose,def,var1*2);
}
}
if MarketPosition == 1 Then
var1 = CurrentContracts;
SetStopEndofday(144500);
즐거운 하루되세요
> kcg9005 님이 쓴 글입니다.
> 제목 : 질문
> input : 시작날짜(20130104);
if sdate >= 시작날짜 and stime == 090500 and C > ma(c,360) Then{
if stime == 090500 Then{
if PositionProfit(1) >= 0 Then
buy("b1",onclose,def,1);
Else
buy("b2",onclose,def,var1*2);
}
}
if MarketPosition == 1 Then
var1 = CurrentContracts;
SetStopEndofday(144500);
위식에서 9시5분에 매수하는 식은 빼버리고 주가가 360일선 상향돌파시 매수하는식 부탁드립니다.
다음글
이전글