커뮤니티
주간고저문의
2018-07-22 22:10:28
217
글번호 120779
늘 감사합니다.
아래수식을 data2에 사용 수식으로 변경해 주세요
var : cnt(0);
Array : WeekO[10](0),WeekH[10](0),WeekL[10](0),WeekC[10](0);
Array : MonthO[10](0),MonthH[10](0),MonthL[10](0),MonthC[10](0);
if DayOfWeek(sdate) < DayOfWeek(sdate[1]) Then{
WeekO[0] = O;
WeekH[0] = h;
WeekL[0] = L;
for cnt = 1 to 9{
WeekO[cnt] = WeekO[cnt-1][1];
WeekH[cnt] = WeekH[cnt-1][1];
WeekL[cnt] = WeekL[cnt-1][1];
WeekC[cnt] = WeekC[cnt-1][1];
}
}
WeekC[0] = C;
if H > WeekH[0] Then
WeekH[0] = H;
if L < WeekL[0] Then
WeekL[0] = L;
if bdate > bdate[1]+30 Then{
MonthO[0] = O;
MonthH[0] = h;
MonthL[0] = L;
for cnt = 1 to 9{
MonthO[cnt] = MonthO[cnt-1][1];
MonthH[cnt] = MonthH[cnt-1][1];
MonthL[cnt] = MonthL[cnt-1][1];
MonthC[cnt] = MonthC[cnt-1][1];
}
}
MonthC[0] = C;
if H > MonthH[0] Then
MonthH[0] = H;
if L < MonthL[0] Then
MonthL[0] = L;
if WeekH[1] > 0 and WeekL[1] > 0 Then{
plot1(WeekO[0],"전주시가");
plot2(WeekH[1],"전주고가");
plot3(WeekL[1],"전주저가");
plot4((WeekH[1]+WeekL[1])/2,"전주중간");
}
if MonthH[1] > 0 and MonthL[1] > 0 Then{
plot5(MonthO[0],"당월시가");
plot6(MonthH[1],"전월고가");
plot7(MonthL[1],"전월저가");
plot8((MonthH[1]+MonthL[1])/2,"전월중간");
}
답변 1
예스스탁 예스스탁 답변
2018-07-23 10:01:28
안녕하세요
예스스탁입니다.
var : cnt(0);
Array : WeekO[10](0,data2),WeekH[10](0,data2),WeekL[10](0,data2),WeekC[10](0,data2);
Array : MonthO[10](0,data2),MonthH[10](0,data2),MonthL[10](0,data2),MonthC[10](0,data2);
if DayOfWeek(sdate) < DayOfWeek(sdate[1]) Then{
WeekO[0] = O;
WeekH[0] = h;
WeekL[0] = L;
for cnt = 1 to 9{
WeekO[cnt] = WeekO[cnt-1][1];
WeekH[cnt] = WeekH[cnt-1][1];
WeekL[cnt] = WeekL[cnt-1][1];
WeekC[cnt] = WeekC[cnt-1][1];
}
}
WeekC[0] = data2(C);
if data2(H) > WeekH[0] Then
WeekH[0] = data2(H);
if data2(L) < WeekL[0] Then
WeekL[0] = data2(L);
if data2(bdate > bdate[1]+30) Then
{
MonthO[0] = data2(O);
MonthH[0] = data2(h);
MonthL[0] = data2(L);
for cnt = 1 to 9{
MonthO[cnt] = MonthO[cnt-1][1];
MonthH[cnt] = MonthH[cnt-1][1];
MonthL[cnt] = MonthL[cnt-1][1];
MonthC[cnt] = MonthC[cnt-1][1];
}
}
MonthC[0] = data2(C);
if data2(H) > MonthH[0] Then
MonthH[0] = data2(H);
if data2(L) < MonthL[0] Then
MonthL[0] = data2(L);
if WeekH[1] > 0 and WeekL[1] > 0 Then{
plot1(WeekO[0],"전주시가");
plot2(WeekH[1],"전주고가");
plot3(WeekL[1],"전주저가");
plot4((WeekH[1]+WeekL[1])/2,"전주중간");
}
if MonthH[1] > 0 and MonthL[1] > 0 Then{
plot5(MonthO[0],"당월시가");
plot6(MonthH[1],"전월고가");
plot7(MonthL[1],"전월저가");
plot8((MonthH[1]+MonthL[1])/2,"전월중간");
}
즐거운 하루되세요
> 상암동 님이 쓴 글입니다.
> 제목 : 주간고저문의
> 늘 감사합니다.
아래수식을 data2에 사용 수식으로 변경해 주세요
var : cnt(0);
Array : WeekO[10](0),WeekH[10](0),WeekL[10](0),WeekC[10](0);
Array : MonthO[10](0),MonthH[10](0),MonthL[10](0),MonthC[10](0);
if DayOfWeek(sdate) < DayOfWeek(sdate[1]) Then{
WeekO[0] = O;
WeekH[0] = h;
WeekL[0] = L;
for cnt = 1 to 9{
WeekO[cnt] = WeekO[cnt-1][1];
WeekH[cnt] = WeekH[cnt-1][1];
WeekL[cnt] = WeekL[cnt-1][1];
WeekC[cnt] = WeekC[cnt-1][1];
}
}
WeekC[0] = C;
if H > WeekH[0] Then
WeekH[0] = H;
if L < WeekL[0] Then
WeekL[0] = L;
if bdate > bdate[1]+30 Then{
MonthO[0] = O;
MonthH[0] = h;
MonthL[0] = L;
for cnt = 1 to 9{
MonthO[cnt] = MonthO[cnt-1][1];
MonthH[cnt] = MonthH[cnt-1][1];
MonthL[cnt] = MonthL[cnt-1][1];
MonthC[cnt] = MonthC[cnt-1][1];
}
}
MonthC[0] = C;
if H > MonthH[0] Then
MonthH[0] = H;
if L < MonthL[0] Then
MonthL[0] = L;
if WeekH[1] > 0 and WeekL[1] > 0 Then{
plot1(WeekO[0],"전주시가");
plot2(WeekH[1],"전주고가");
plot3(WeekL[1],"전주저가");
plot4((WeekH[1]+WeekL[1])/2,"전주중간");
}
if MonthH[1] > 0 and MonthL[1] > 0 Then{
plot5(MonthO[0],"당월시가");
plot6(MonthH[1],"전월고가");
plot7(MonthL[1],"전월저가");
plot8((MonthH[1]+MonthL[1])/2,"전월중간");
}
다음글
이전글