시작시간 15시 30분. 끝나는 시간 05시 50분. 진입한 수량이 있다면 모두청산후 시스템종료.
이평 4 위의 이평 3 이 있고 또는 이평 2 가 있고
이평 1 이 이평 2 하향돌파 매수1. 이평 3 하향돌파 매수2. 이평 4 하향돌파 매수3.
이평 4 하향돌파 매수한 그 캔들의 저가보다 낮게 봉완성되면 손절청산.
이평 4 아래의 이평 3 이 있고 또는 이평 2 가 있고
이평 1 이 이평 2 상향돌파 매도1. 이평 3 상향돌파 매도2. 이평 4 상향돌파 매도3.
이평 4 상향돌파 매도한 그 캔들의 고가보다 높게 봉완성되면 손절청산.
익절400틱.
수고하세요.
답변 1
예스스탁
예스스탁 답변
2022-05-23 10:46:37
안녕하세요
예스스탁입니다.
input : StartTime(153000),EndTime(055000);
input : P1(5),P2(10),P3(20),P4(60);
Input : 익절틱수(400);
var : Tcond(false),mav1(0),mav2(0),mav3(0),mav4(0);
IF Endtime > starttime Then
setStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
Tcond = true;
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = False;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
mav1 = ma(C,P1);
mav2 = ma(C,P2);
mav3 = ma(C,P3);
mav4 = ma(C,P4);
if tcond == true Then
{
if mav3 > mav4 or mav2 > mav4 Then
{
if MarketPosition <= 0 and CrossDown(mav1,mav2) Then
Buy("b1");
if MarketPosition == 1 and MaxEntries == 1 and CrossDown(mav1,mav3) Then
Buy("b2");
if MarketPosition == 1 and MaxEntries == 2 and CrossDown(mav1,mav4) Then
{
Buy("b3");
var1 = L;
}
}
if mav3 > mav4 or mav2 < mav4 Then
{
if MarketPosition >= 0 and CrossUp(mav1,mav2) Then
Sell("s1");
if MarketPosition == -1 and MaxEntries == 1 and CrossUp(mav1,mav2) Then
Sell("s2");
if MarketPosition == -1 and MaxEntries == 2 and CrossUp(mav1,mav2) Then
{
Sell("s3");
Var2 = H;
}
}
if MarketPosition == 1 Then
{
if MaxEntries == 3 and C < var1 Then
ExitLong("bx");
}
if MarketPosition == -1 Then
{
if MaxEntries == 3 and C > Var2 Then
ExitShort("sx");
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
즐거운 하루되세요
> 아침 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 시작시간 15시 30분. 끝나는 시간 05시 50분. 진입한 수량이 있다면 모두청산후 시스템종료.
이평 4 위의 이평 3 이 있고 또는 이평 2 가 있고
이평 1 이 이평 2 하향돌파 매수1. 이평 3 하향돌파 매수2. 이평 4 하향돌파 매수3.
이평 4 하향돌파 매수한 그 캔들의 저가보다 낮게 봉완성되면 손절청산.
이평 4 아래의 이평 3 이 있고 또는 이평 2 가 있고
이평 1 이 이평 2 상향돌파 매도1. 이평 3 상향돌파 매도2. 이평 4 상향돌파 매도3.
이평 4 상향돌파 매도한 그 캔들의 고가보다 높게 봉완성되면 손절청산.
익절400틱.
수고하세요.