커뮤니티
문의드립니다~
2014-11-05 23:38:46
151
글번호 80141
1.아래식에서 전일주간장의 고가와 저가의 중심값, 야간장의 고가와 저가의 중심값을 같은 방식으로 표시할수있게 도와주세요 ^^
2. 참조데이타2의 차트에서도 구현할수 있으면 함께 부탁드릴께요.
감사합니다 수고하세요~
input : N(1);
var : cnt(0);
Array : DH[10](0),DL[10](0),NH[10](0),NL[10](0);
if stime == 90000 or (stime > 90000 and stime[1] < 90000) Then{
DH[0] = H;
DL[0] = L;
for cnt = 1 to 9{
DH[cnt] = DH[cnt-1][1];
DL[cnt] = DL[cnt-1][1];
NH[cnt] = NH[cnt-1][1];
NL[cnt] = NL[cnt-1][1];
}
}
if stime == 180000 or (stime > 180000 and stime[1] < 180000) Then{
NH[0] = H;
NL[0] = L;
}
if stime >= 90000 and stime <= 151500 Then{
if H > DH[0] Then
DH[0] = H;
if L < DL[0] Then
DL[0] = L;
}
if stime >= 180000 or stime < 90000 Then{
if H > NH[0] Then
NH[0] = H;
if L < NL[0] Then
NL[0] = L;
}
plot1(DH[N]);
plot2(DL[N]);
plot3(NH[N]);
plot4(NL[N]);
답변 1
예스스탁 예스스탁 답변
2014-11-06 18:28:55
안녕하세요
예스스탁입니다.
1.
input : N(1);
var : cnt(0);
Array : DH[10](0),DL[10](0),NH[10](0),NL[10](0);
if stime == 90000 or (stime > 90000 and stime[1] < 90000) Then{
DH[0] = H;
DL[0] = L;
for cnt = 1 to 9{
DH[cnt] = DH[cnt-1][1];
DL[cnt] = DL[cnt-1][1];
NH[cnt] = NH[cnt-1][1];
NL[cnt] = NL[cnt-1][1];
}
}
if stime == 180000 or (stime > 180000 and stime[1] < 180000) Then{
NH[0] = H;
NL[0] = L;
}
if stime >= 90000 and stime <= 151500 Then{
if H > DH[0] Then
DH[0] = H;
if L < DL[0] Then
DL[0] = L;
}
if stime >= 180000 or stime < 90000 Then{
if H > NH[0] Then
NH[0] = H;
if L < NL[0] Then
NL[0] = L;
}
plot1(DH[N],"N일전주간최고가");
plot2(DL[N],"N일전주간최저가");
plot3((DH[N]+DL[N])/2,"N일전주간중심가");
plot4(NH[N],"N일전야간최고가");
plot5(NL[N],"N일전야간최고가");
plot6((NH[N]+NL[N])/2,"N일전야간최고가");
2. data2
input : N(1);
var : cnt(0);
Array : DH[10](0,data2),DL[10](0,data2),NH[10](0,data2),NL[10](0,data2);
if data2(stime == 90000 or (stime > 90000 and stime[1] < 90000)) Then{
DH[0] = data2(H);
DL[0] = data2(L);
for cnt = 1 to 9{
DH[cnt] = DH[cnt-1][1];
DL[cnt] = DL[cnt-1][1];
NH[cnt] = NH[cnt-1][1];
NL[cnt] = NL[cnt-1][1];
}
}
if data2(stime == 180000 or (stime > 180000 and stime[1] < 180000)) Then{
NH[0] = H;
NL[0] = L;
}
if data2(stime >= 90000 and stime <= 151500) Then{
if data2(H) > DH[0] Then
DH[0] = data2(H);
if data2(L) < DL[0] Then
DL[0] = data2(L);
}
if stime >= 180000 or stime < 90000 Then{
if data2(H) > NH[0] Then
NH[0] = data2(H);
if data2(L) < NL[0] Then
NL[0] = data2(L);
}
plot1(DH[N],"N일전주간최고가");
plot2(DL[N],"N일전주간최저가");
plot3((DH[N]+DL[N])/2,"N일전주간중심가");
plot4(NH[N],"N일전야간최고가");
plot5(NL[N],"N일전야간최고가");
plot6((NH[N]+NL[N])/2,"N일전야간최고가");
즐거운 하루되세요
> 국산3 님이 쓴 글입니다.
> 제목 : 문의드립니다~
> 1.아래식에서 전일주간장의 고가와 저가의 중심값, 야간장의 고가와 저가의 중심값을 같은 방식으로 표시할수있게 도와주세요 ^^
2. 참조데이타2의 차트에서도 구현할수 있으면 함께 부탁드릴께요.
감사합니다 수고하세요~
input : N(1);
var : cnt(0);
Array : DH[10](0),DL[10](0),NH[10](0),NL[10](0);
if stime == 90000 or (stime > 90000 and stime[1] < 90000) Then{
DH[0] = H;
DL[0] = L;
for cnt = 1 to 9{
DH[cnt] = DH[cnt-1][1];
DL[cnt] = DL[cnt-1][1];
NH[cnt] = NH[cnt-1][1];
NL[cnt] = NL[cnt-1][1];
}
}
if stime == 180000 or (stime > 180000 and stime[1] < 180000) Then{
NH[0] = H;
NL[0] = L;
}
if stime >= 90000 and stime <= 151500 Then{
if H > DH[0] Then
DH[0] = H;
if L < DL[0] Then
DL[0] = L;
}
if stime >= 180000 or stime < 90000 Then{
if H > NH[0] Then
NH[0] = H;
if L < NL[0] Then
NL[0] = L;
}
plot1(DH[N]);
plot2(DL[N]);
plot3(NH[N]);
plot4(NL[N]);
다음글
이전글