예스스탁
예스스탁 답변
2020-07-20 17:12:24
안녕하세요
예스스탁입니다.
input : S1(805000),E1(900000);
input : S2(104000),E2(1050000);
input : S3(122000),E3(123000);
input : S4(145000),E4(150000);
input : S5(131000),E5(132000);
input : S6(151000),E6(153000);
var : T1(false),H1(0),L1(0),H11(0),L11(0);
var : T2(false),H2(0),L2(0),H21(0),L21(0);
var : T3(false),H3(0),L3(0),H31(0),L31(0);
var : T4(false),H4(0),L4(0),H41(0),L41(0);
var : T5(false),H5(0),L5(0),H51(0),L51(0);
var : T6(false),H6(0),L6(0),H61(0),L61(0);
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;
H11 = H1[1];
L11 = L1[1];
}
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;
}
if H1 > 0 and L1 > 0 Then
{
plot1(H1);
plot2(L1);
plot3((H1+L1)/2);
}
if H11 > 0 and L11 > 0 Then
{
plot21(H11);
plot22(L11);
plot23((H11+L11)/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;
H21 = H2[1];
L21 = L2[1];
}
if (sdate != sdate[1] and stime >= E2) or
(sdate == sdate[1] and stime >= E2 and stime[1] < E2) Then
T2 = False;
if T2 == true then
{
if H > H2 Then
H2 = H;
if L < L2 Then
L2 = L;
}
if H2 > 0 and L2 > 0 Then
{
plot4(H2);
plot5(L2);
plot6((H2+L2)/2);
}
if H21 > 0 and L21 > 0 Then
{
plot24(H21);
plot25(L21);
plot26((H21+L21)/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;
H31 = H3[1];
L31 = L3[1];
}
if (sdate != sdate[1] and stime >= E3) or
(sdate == sdate[1] and stime >= E3 and stime[1] < E3) Then
T3 = False;
if T3 == true then
{
if H > H3 Then
H3 = H;
if L < L3 Then
L3 = L;
}
if H3 > 0 and L3 > 0 Then
{
plot7(H3);
plot8(L3);
plot9((H3+L3)/2);
}
if H31 > 0 and L31 > 0 Then
{
plot27(H31);
plot28(L31);
plot29((H31+L31)/2);
}
if (sdate != sdate[1] and stime >= S4) or
(sdate == sdate[1] and stime >= S4 and stime[1] < S4) Then
{
T4 = true;
H4 = H;
L4 = L;
h41 = h4[1];
L41 = l4[1];
}
if (sdate != sdate[1] and stime >= E4) or
(sdate == sdate[1] and stime >= E4 and stime[1] < E4) Then
T4 = False;
if T4 == true then
{
if H > H4 Then
H4 = H;
if L < L4 Then
L4 = L;
}
if H4 > 0 and L4 > 0 Then
{
plot10(H4);
plot11(L4);
plot12((H4+L4)/2);
}
if H41 > 0 and L41 > 0 Then
{
plot30(H41);
plot31(L41);
plot32((H41+L41)/2);
}
if (sdate != sdate[1] and stime >= S5) or
(sdate == sdate[1] and stime >= S5 and stime[1] < S5) Then
{
T5 = true;
H5 = H;
L5 = L;
H51 = H5[1];
L51 = L5[1];
}
if (sdate != sdate[1] and stime >= E5) or
(sdate == sdate[1] and stime >= E5 and stime[1] < E5) Then
T5 = False;
if T5 == true then
{
if H > H5 Then
H5 = H;
if L < L5 Then
L5 = L;
}
if H5 > 0 and L5 > 0 Then
{
plot13(H5);
plot14(L5);
plot15((H5+L5)/2);
}
if H51 > 0 and L51 > 0 Then
{
plot33(H51);
plot34(L51);
plot35((H51+L51)/2);
}
if (sdate != sdate[1] and stime >= S6) or
(sdate == sdate[1] and stime >= S6 and stime[1] < S6) Then
{
T6 = true;
H6 = H;
L6 = L;
H61 = H6[1];
L61 = L6[1];
}
if (sdate != sdate[1] and stime >= E6) or
(sdate == sdate[1] and stime >= E6 and stime[1] < E6) Then
T6 = False;
if T6 == true then
{
if H > H6 Then
H6 = H;
if L < L6 Then
L6 = L;
}
if H6 > 0 and L6 > 0 Then
{
plot16(H6);
plot17(L6);
plot18((H6+L6)/2);
}
if H61 > 0 and L61 > 0 Then
{
plot36(H61);
plot37(L61);
plot38((H61+L61)/2);
}
즐거운 하루되세요
> 에리카 님이 쓴 글입니다.
> 제목 : 지표
> 항상감사합니다
당일표시입니다
전일추가수식부탁드립니다
input : S1(805000),E1(900000);
input : S2(104000),E2(1050000);
input : S3(122000),E3(123000);
input : S4(145000),E4(150000);
input : S5(131000),E5(132000);
input : S6(151000),E6(153000);
var : T1(false),H1(0),L1(0);
var : T2(false),H2(0),L2(0);
var : T3(false),H3(0),L3(0);
var : T4(false),H4(0),L4(0);
var : T5(false),H5(0),L5(0);
var : T6(false),H6(0),L6(0);
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;
}
if H1 > 0 and L1 > 0 Then
{
plot1(H1);
plot2(L1);
plot3((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 T2 == true then
{
if H > H2 Then
H2 = H;
if L < L2 Then
L2 = L;
}
if H2 > 0 and L2 > 0 Then
{
plot4(H2);
plot5(L2);
plot6((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 T3 == true then
{
if H > H3 Then
H3 = H;
if L < L3 Then
L3 = L;
}
if H3 > 0 and L3 > 0 Then
{
plot7(H3);
plot8(L3);
plot9((H3+L3)/2);
}
if (sdate != sdate[1] and stime >= S4) or
(sdate == sdate[1] and stime >= S4 and stime[1] < S4) Then
{
T4 = true;
H4 = H;
L4 = L;
}
if (sdate != sdate[1] and stime >= E4) or
(sdate == sdate[1] and stime >= E4 and stime[1] < E4) Then
T4 = False;
if T4 == true then
{
if H > H4 Then
H4 = H;
if L < L4 Then
L4 = L;
}
if H4 > 0 and L4 > 0 Then
{
plot10(H4);
plot11(L4);
plot12((H4+L4)/2);
}
if (sdate != sdate[1] and stime >= S5) or
(sdate == sdate[1] and stime >= S5 and stime[1] < S5) Then
{
T5 = true;
H5 = H;
L5 = L;
}
if (sdate != sdate[1] and stime >= E5) or
(sdate == sdate[1] and stime >= E5 and stime[1] < E5) Then
T5 = False;
if T5 == true then
{
if H > H5 Then
H5 = H;
if L < L5 Then
L5 = L;
}
if H5 > 0 and L5 > 0 Then
{
plot13(H5);
plot14(L5);
plot15((H5+L5)/2);
}
if (sdate != sdate[1] and stime >= S6) or
(sdate == sdate[1] and stime >= S6 and stime[1] < S6) Then
{
T6 = true;
H6 = H;
L6 = L;
}
if (sdate != sdate[1] and stime >= E6) or
(sdate == sdate[1] and stime >= E6 and stime[1] < E6) Then
T6 = False;
if T6 == true then
{
if H > H6 Then
H6 = H;
if L < L6 Then
L6 = L;
}
if H6 > 0 and L6 > 0 Then
{
plot16(H6);
plot17(L6);
plot18((H6+L6)/2);
}