커뮤니티
수식문의
2016-11-14 13:53:18
120
글번호 103956
전주의고가저가의 절반값과 주시가를 분봉에나타녀고싶어요
전월고저 절반값 월봉시가를 분봉표현원합니다
답변 1
예스스탁 예스스탁 답변
2016-11-14 18:55:36
안녕하세요
예스스탁입니다.
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,"전월중간");
}
즐거운 하루되세요
> 렉쳐 님이 쓴 글입니다.
> 제목 : 수식문의
> 전주의고가저가의 절반값과 주시가를 분봉에나타녀고싶어요
전월고저 절반값 월봉시가를 분봉표현원합니다
다음글
이전글