이평 5 이평 20 위의 있고
이평 1 이평 20 하향돌파 매수.
이평 5 이평 20 아래의 있고
이평 1 이평 20 상향돌파 매도.
익절400틱. 손절100틱.
시작시간 오전8시 다음날 오전6시50분 진입한 종목이 있다면 모두청산.시스템 완전종료.
답변 1
예스스탁
예스스탁 답변
2022-01-06 15:47:14
안녕하세요
예스스탁입니다.
input : P1(1),P2(5),P3(20);
input : StartTime(80000),EndTime(065000);
var : Tcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
var1 = ma(C,P1);
Var2 = ma(C,P2);
Var3 = ma(C,P3);
if Tcond == true Then
{
if (Var2 > Var3 and CrossDown(var1,Var2)) Then
Buy("b");
if (Var2 < Var3 and CrossUp(var1,Var2)) Then
Sell("s");
}
SetStopLoss(PriceScale*100,PointStop);
SetStopProfittarget(PriceScale*600,PointStop);
즐거운 하루되세요
> 아침 님이 쓴 글입니다.
> 제목 : 문의드립니다.
>
이평 5 이평 20 위의 있고
이평 1 이평 20 하향돌파 매수.
이평 5 이평 20 아래의 있고
이평 1 이평 20 상향돌파 매도.
익절400틱. 손절100틱.
시작시간 오전8시 다음날 오전6시50분 진입한 종목이 있다면 모두청산.시스템 완전종료.