커뮤니티

재문의

프로필 이미지
초보트레이
2010-06-09 15:03:46
677
글번호 30356
답변완료
수고많으십니다 아래 가르쳐주신 데로 해보니 value3. 4. 5 는 N/A로 나타납니다 한번 더 봐 주십시요 var : cnt(0); if date != date[1] Then{ var1 = dayindex[1]; var3 = sDate[1]; var4 = var3[1]; var5 = var4[1]; var6 = var5[1]; var7 = var6[1]; } if var4 > 0 then{ for cnt = 1 to (var1*7)+10 { if stime == stime[cnt] and sdate[cnt] == var3 then{ value1 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var4 then{ value2 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var5 then{ value3 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var6 then{ value4 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var7 then{ value5 = DayVolume[cnt]; } } } plot1(value1,"1일전 동시간대 누적거래량"); plot2(value2,"2일전 동시간대 누적거래량"); plot3(value3,"3일전 동시간대 누적거래량"); plot4(value4,"4일전 동시간대 누적거래량"); plot5(value5,"5일전 동시간대 누적거래량"); plot11(DayVolume);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-06-10 11:36:08

안녕하세요 예스스탁입니다. var : cnt(0),vv(0); if date != date[1] Then{ var3 = sDate[1]; var4 = var3[1]; var5 = var4[1]; var6 = var5[1]; var7 = var6[1]; } VV = DayVolume; value1 = 0; value2 = 0; value3 = 0; value4 = 0; value5 = 0; for cnt = 0 to 2000 { if stime == stime[cnt] and sdate[cnt] == var3 then value1 = vv[cnt]; if stime == stime[cnt] and sdate[cnt] == var4 then value2 = vv[cnt]; if stime == stime[cnt] and sdate[cnt] == var5 then value3 = vv[cnt]; if stime == stime[cnt] and sdate[cnt] == var6 then value4 = vv[cnt]; if stime == stime[cnt] and sdate[cnt] == var7 then value5 = vv[cnt]; } plot1(value1,"1일전 동시간대 누적거래량"); plot2(value2,"2일전 동시간대 누적거래량"); plot3(value3,"3일전 동시간대 누적거래량"); plot4(value4,"4일전 동시간대 누적거래량"); plot5(value5,"5일전 동시간대 누적거래량"); for문의 루프횟수에 문제가 있었습니다. 식을 수정했습니다. 즐거운 하루되세요 > 초보트레이 님이 쓴 글입니다. > 제목 : 재문의 > 수고많으십니다 아래 가르쳐주신 데로 해보니 value3. 4. 5 는 N/A로 나타납니다 한번 더 봐 주십시요 var : cnt(0); if date != date[1] Then{ var1 = dayindex[1]; var3 = sDate[1]; var4 = var3[1]; var5 = var4[1]; var6 = var5[1]; var7 = var6[1]; } if var4 > 0 then{ for cnt = 1 to (var1*7)+10 { if stime == stime[cnt] and sdate[cnt] == var3 then{ value1 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var4 then{ value2 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var5 then{ value3 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var6 then{ value4 = DayVolume[cnt]; } if stime == stime[cnt] and sdate[cnt] == var7 then{ value5 = DayVolume[cnt]; } } } plot1(value1,"1일전 동시간대 누적거래량"); plot2(value2,"2일전 동시간대 누적거래량"); plot3(value3,"3일전 동시간대 누적거래량"); plot4(value4,"4일전 동시간대 누적거래량"); plot5(value5,"5일전 동시간대 누적거래량"); plot11(DayVolume);