커뮤니티
수식변환 부탁드립니다
2019-05-09 14:21:28
221
글번호 128547
아래 지표에 전일피보나치 +1.236%,1.382%
-1.236%,1.382% 추가부탁합니다
input : Per1(23.6),Per2(38.2),Per3(50.0),Per4(61.8),Per5(76.4);
var : cnt(0);
Array : DO[10](0),DH[10](0),DL[10](0),DC[10](0);
if (sdate != sdate[1] and stime >= 100000) or
(sdate == sdate[1] and (Stime == 100000 or (stime > 100000 and stime[1] < 100000))) Then{
DO[0] = O;
DH[0] = H;
DL[0] = L;
for cnt = 1 to 9{
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],"당일저가");
plot4((DH[0]+DL[0])/2,"당일중심");
plot5(DH[0]-DL[0]*(Per1/100),"23.6%");
plot6(DH[0]-DL[0]*(Per2/100),"38.2%");
plot7(DH[0]-DL[0]*(Per3/100),"50.0%");
plot8(DH[0]-DL[0]*(Per4/100),"61.8%");
plot9(DH[0]-DL[0]*(Per5/100),"76.4%");
if DO[1] > 0 then{
plot10(DO[1],"전일시가");
plot11(DH[1],"전일고가");
plot12(DL[1],"전일저가");
plot13((DH[1]+DL[1])/2,"전일중심");
}
답변 1
예스스탁 예스스탁 답변
2019-05-09 14:53:52
안녕하세요
예스스탁입니다.
input : Per1(23.6),Per2(38.2),Per3(50.0),Per4(61.8),Per5(76.4),per6(123.6),per7(138.2);
var : cnt(0);
Array : DO[10](0),DH[10](0),DL[10](0),DC[10](0);
if (sdate != sdate[1] and stime >= 100000) or
(sdate == sdate[1] and (Stime == 100000 or (stime > 100000 and stime[1] < 100000))) Then{
DO[0] = O;
DH[0] = H;
DL[0] = L;
for cnt = 1 to 9{
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],"당일저가");
plot4((DH[0]+DL[0])/2,"당일중심");
plot5(DH[0]-(DH[0]-DL[0])*(Per1/100),"23.6%");
plot6(DH[0]-(DH[0]-DL[0])*(Per2/100),"38.2%");
plot7(DH[0]-(DH[0]-DL[0])*(Per3/100),"50.0%");
plot8(DH[0]-(DH[0]-DL[0])*(Per4/100),"61.8%");
plot9(DH[0]-(DH[0]-DL[0])*(Per5/100),"76.4%");
plot10(DH[0]-(DH[0]-DL[0])*(Per6/100),"-123.6%");
plot11(DH[0]-(DH[0]-DL[0])*(Per7/100),"-138.2%");
plot12(DL[0]+(DH[0]-DL[0])*(Per6/100),"+123.6%");
plot13(DL[0]+(DH[0]-DL[0])*(Per7/100),"+138.2%");
if DO[1] > 0 then{
plot14(DO[1],"전일시가");
plot15(DH[1],"전일고가");
plot16(DL[1],"전일저가");
plot17((DH[1]+DL[1])/2,"전일중심");
}
즐거운 하루되세요
> 가자치타 님이 쓴 글입니다.
> 제목 : 수식변환 부탁드립니다
> 아래 지표에 전일피보나치 +1.236%,1.382%
-1.236%,1.382% 추가부탁합니다
input : Per1(23.6),Per2(38.2),Per3(50.0),Per4(61.8),Per5(76.4);
var : cnt(0);
Array : DO[10](0),DH[10](0),DL[10](0),DC[10](0);
if (sdate != sdate[1] and stime >= 100000) or
(sdate == sdate[1] and (Stime == 100000 or (stime > 100000 and stime[1] < 100000))) Then{
DO[0] = O;
DH[0] = H;
DL[0] = L;
for cnt = 1 to 9{
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],"당일저가");
plot4((DH[0]+DL[0])/2,"당일중심");
plot5(DH[0]-DL[0]*(Per1/100),"23.6%");
plot6(DH[0]-DL[0]*(Per2/100),"38.2%");
plot7(DH[0]-DL[0]*(Per3/100),"50.0%");
plot8(DH[0]-DL[0]*(Per4/100),"61.8%");
plot9(DH[0]-DL[0]*(Per5/100),"76.4%");
if DO[1] > 0 then{
plot10(DO[1],"전일시가");
plot11(DH[1],"전일고가");
plot12(DL[1],"전일저가");
plot13((DH[1]+DL[1])/2,"전일중심");
}