지수선물 적용예정 입니다
9시 부터 10시 까지 중간값 : m1
10시 부터 11시 까지 중간값 : m2
11시 부터 12시 까지 중간값 : m3
m1<m2 매수진입
m2>m3 매도진입
그럼 신속한 답변 바랍니다
답변 1
예스스탁
예스스탁 답변
2021-07-16 14:36:51
안녕하세요
예스스탁입니다.
input : S1(90000),E1(100000);
input : S2(100000),E2(110000);
input : S3(110000),E3(120000);
var : T1(false),T2(False),T3(False);
var : H1(0),L1(0),M1(0);
var : H2(0),L2(0),M2(0);
var : H3(0),L3(0),M3(0);
if bdate != Bdate[1] Then
{
}
if (sdate != sdate[1] and stime >= S1) or
(sdate == sdate[1] and stime >= S1 and stime[1] < S1) Then
{
T1 = true;
H1 = H;
L1 = L;
}
if (sdate != sdate[1] and stime >= E1) or
(sdate == sdate[1] and stime >= E1 and stime[1] < E1) Then
T1 = False;
if T1 == true Then
{
if H > H1 Then
H1 = H;
if L < L1 Then
L1 = L;
M1 = (H1+L1)/2;
}
if (sdate != sdate[1] and stime >= S2) or
(sdate == sdate[1] and stime >= S2 and stime[1] < S2) Then
{
T2 = true;
H2 = H;
L2 = L;
}
if (sdate != sdate[1] and stime >= E2) or
(sdate == sdate[1] and stime >= E2 and stime[1] < E2) Then
{
T2 = False;
if M1 < M2 Then
Buy("b");
}
if T2 == true Then
{
if H > H2 Then
H2 = H;
if L < L2 Then
L2 = L;
M2 = (H2+L2)/2;
}
if (sdate != sdate[1] and stime >= S3) or
(sdate == sdate[1] and stime >= S3 and stime[1] < S3) Then
{
T3 = true;
H3 = H;
L3 = L;
}
if (sdate != sdate[1] and stime >= E3) or
(sdate == sdate[1] and stime >= E3 and stime[1] < E3) Then
{
T3 = False;
if M2 > M3 Then
Sell("s");
}
if T3 == true Then
{
if H > H3 Then
H3 = H;
if L < L3 Then
L3 = L;
M3 = (H3+L3)/2;
}
즐거운 하루되세요
> 우리상향 님이 쓴 글입니다.
> 제목 : 시스템식 문의 드립니다.
> 지수선물 적용예정 입니다
9시 부터 10시 까지 중간값 : m1
10시 부터 11시 까지 중간값 : m2
11시 부터 12시 까지 중간값 : m3
m1<m2 매수진입
m2>m3 매도진입
그럼 신속한 답변 바랍니다