커뮤니티
수식 부탁드립니다
2017-05-19 08:33:38
117
글번호 109667
1.
09시부터 12시까지 고가를 그린다
09시부터 12시까지 저가를 그린다
12시부터 16시까지 고가를 그린다
12시부터 16시까지 저가를 그린다
09시부터 16시까지 고가를 그린다
09시부터 16시까지 저가를 그린다
18시부터 익일 05시까지 고가를 그린다
18시부터 익일 05시까지 저가를 그린다
감사합니다
답변 1
예스스탁 예스스탁 답변
2017-05-19 14:05:33
안녕하세요
예스스탁입니다.
var : Tcond1(false),H1(0),L1(0);
var : Tcond2(false),H2(0),L2(0);
var : Tcond3(false),H3(0),L3(0);
var : Tcond4(false),H4(0),L4(0);
if stime == 90000 or (stime > 90000 and stime[1] < 90000) Then{
Tcond1 = true;
H1 = H;
L1 = H;
}
if stime == 120000 or (stime > 120000 and stime[1] < 120000) Then
Tcond1 = false;
if Tcond1 == true Then{
if H > H1 Then
H1 = H;
if L < L1 Then
L1 = L;
}
if stime == 120000 or (stime > 120000 and stime[1] < 120000) Then{
Tcond2 = true;
H2 = H;
L2 = H;
}
if stime == 160000 or (stime > 160000 and stime[1] < 160000) Then
Tcond2 = false;
if Tcond2 == true Then{
if H > H2 Then
H2 = H;
if L < L2 Then
L2 = L;
}
if stime == 090000 or (stime > 090000 and stime[1] < 090000) Then{
Tcond3 = true;
H3 = H;
L3 = H;
}
if stime == 160000 or (stime > 160000 and stime[1] < 160000) Then
Tcond3 = false;
if Tcond3 == true Then{
if H > H3 Then
H3 = H;
if L < L3 Then
L3 = L;
}
if stime == 180000 or (stime > 180000 and stime[1] < 180000) Then{
Tcond4 = true;
H4 = H;
L4 = H;
}
if stime == 050000 or (stime > 050000 and stime[1] < 050000) Then
Tcond4 = false;
if Tcond4 == true Then{
if H > H4 Then
H4 = H;
if L < L4 Then
L4 = L;
}
plot1(H1);
plot2(L1);
plot3(H2);
plot4(L2);
plot5(H3);
plot6(L3);
plot7(H4);
plot8(L4);
즐거운 하루되세요
> 타이쿤 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다
> 1.
09시부터 12시까지 고가를 그린다
09시부터 12시까지 저가를 그린다
12시부터 16시까지 고가를 그린다
12시부터 16시까지 저가를 그린다
09시부터 16시까지 고가를 그린다
09시부터 16시까지 저가를 그린다
18시부터 익일 05시까지 고가를 그린다
18시부터 익일 05시까지 저가를 그린다
감사합니다
다음글
이전글