60520번 수정부탁드립니다
1.시가 2.당일고점 3.당일저점 4.시간시가(예;30분 60분)
수고하세요
답변 1
예스스탁
예스스탁 답변
2020-08-12 14:24:08
안녕하세요
예스스탁입니다.
var : cnt(0);
Array : DH[100](0),DL[100](0),DC[100](0),DO[100](0);
if (sdate != sdate[1] and stime >= 091500) or
(sdate == sdate[1] and stime >= 091500 and stime[1] < 091500) then
{
DO[0] = O;
DH[0] = H;
DL[0] = L;
for cnt = 1 to 99
{
DO[cnt] = DO[cnt-1][1];
DH[cnt] = DH[cnt-1][1];
DL[cnt] = DL[cnt-1][1];
DC[cnt] = DC[cnt-1][1];
}
}
if H > DH[0] Then
DH[0] = H;
if L < DL[0] Then
DL[0] = L;
DC[0] = C;
plot1(DO[0],"당일시가");
plot2(DH[0],"당일고가");
plot3(DL[0],"당일저가");
input : ntime(30);
var : S1(0),D1(0),TM(0),TF(0);
if (sdate != sdate[1] and stime >= 091500) or
(sdate == sdate[1] and stime >= 091500 and stime[1] < 091500) then
{
S1 = TimeToMinutes(091500);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
var1 = O;
}
}
plot4(var1,"시간시가");
즐거운 하루되세요
> 용각산 님이 쓴 글입니다.
> 제목 : 수정(지표)
> 60520번 1,시가 2,당일고점 3,당일저점 4,시간시가(예:30분 60분)
수고하세요