예스스탁
예스스탁 답변
2023-02-23 16:43:35
안녕하세요
예스스탁입니다.
1
input : ntime1(15),ntime2(30),ntime3(60),ntime4(240);
var : S1(0),D1(0),TM(0),TF1(0),TF2(0),TF3(0),TF4(0);
var : O1(0),O2(0),O3(0),O4(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF1 = TM%ntime1;
TF2 = TM%ntime2;
TF3 = TM%ntime3;
TF4 = TM%ntime4;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime1 > 1 and TF1 < TF1[1]) or
(Bdate == Bdate[1] and ntime1 > 1 and TM >= TM[1]+ntime1) or
(Bdate == Bdate[1] and ntime1 == 1 and TM > TM[1]) Then
{
O1 = O;
}
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime2 > 1 and TF2 < TF2[1]) or
(Bdate == Bdate[1] and ntime2 > 1 and TM >= TM[1]+ntime2) or
(Bdate == Bdate[1] and ntime2 == 1 and TM > TM[1]) Then
{
O2 = O;
}
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime3 > 1 and TF3 < TF3[1]) or
(Bdate == Bdate[1] and ntime3 > 1 and TM >= TM[1]+ntime3) or
(Bdate == Bdate[1] and ntime3 == 1 and TM > TM[1]) Then
{
O3 = O;
}
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime4 > 1 and TF4 < TF4[1]) or
(Bdate == Bdate[1] and ntime4 > 1 and TM >= TM[1]+ntime4) or
(Bdate == Bdate[1] and ntime4 == 1 and TM > TM[1]) Then
{
O4 = O;
}
if c > O and C > O1 and C > O2 and C > O3 and C > O4 and C > DayOpen Then
Buy();
if c < O and C < O1 and C < O2 and C < O3 and C < O4 and C < DayOpen Then
Sell();
}
2
15분봉에서 5분봉내용은 계산할 수 없습니다.
5분봉 제외하면 아래식 이용하시면 됩니다.
input : ntime1(30),ntime2(60),ntime3(240);
var : S1(0),D1(0),TM(0),TF1(0),TF2(0),TF3(0),TF4(0);
var : O1(0),O2(0),O3(0),O4(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF1 = TM%ntime1;
TF2 = TM%ntime2;
TF3 = TM%ntime3;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime1 > 1 and TF1 < TF1[1]) or
(Bdate == Bdate[1] and ntime1 > 1 and TM >= TM[1]+ntime1) or
(Bdate == Bdate[1] and ntime1 == 1 and TM > TM[1]) Then
{
O1 = O;
}
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime2 > 1 and TF2 < TF2[1]) or
(Bdate == Bdate[1] and ntime2 > 1 and TM >= TM[1]+ntime2) or
(Bdate == Bdate[1] and ntime2 == 1 and TM > TM[1]) Then
{
O2 = O;
}
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime3 > 1 and TF3 < TF3[1]) or
(Bdate == Bdate[1] and ntime3 > 1 and TM >= TM[1]+ntime3) or
(Bdate == Bdate[1] and ntime3 == 1 and TM > TM[1]) Then
{
O3 = O;
}
if c > O and C > O1 and C > O2 and C > O3 and C > DayOpen Then
Buy();
if c < O and C < O1 and C < O2 and C < O3 and C < DayOpen Then
Sell();
}
즐거운 하루되세요
> 양치기 님이 쓴 글입니다.
> 제목 : 시스템식 부탁드립니다.
> 항상 도움 주셔서 감사합니다.
아래 조건에 맞는 시스템식 부탁드립니다.
---------------------------------------------------------------------------------
종목 : 나스닥 5분봉
매수진입 : 5분봉, 15분봉, 30분봉, 1시간봉, 4시간봉, 일봉이 모두 양봉일때 매수진입
매도진입 : 5분봉, 15분봉, 30분봉, 1시간봉, 4시간봉, 일봉이 모두 음봉일때 매도진입
---------------------------------------------------------------------------------
종목 : 나스닥 15분봉
매수진입 : 5분봉, 15분봉, 30분봉, 1시간봉, 4시간봉, 일봉이 모두 양봉일때 매수진입
매도진입 : 5분봉, 15분봉, 30분봉, 1시간봉, 4시간봉, 일봉이 모두 음봉일때 매도진입
---------------------------------------------------------------------------------
위 2가지 조건에 대해 시스템식 부탁드립니다.
감사합니다.