커뮤니티

지정된 시간대의 전일의 고가, 저가를 당일에 plotting

프로필 이미지
ycchoi17
2026-07-07 02:53:40
86
글번호 232707
답변완료

수고 많으십니다.


전일 14:00~15:30의 고가, 저가를 당일 09:00~10:30 구간에 plotting 하려고 합니다.

수식 도움 부탑드립니다.

지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2026-07-07 10:49:02

안녕하세요 예스스탁입니다. input : HLStartTime(140000),HLEndTime(153000); input : DisplayStart(90000),DisplayEnd(103000); var : Tcond(False),Display(false); var : hh(0),ll(0),h1(0),l1(0); if bdate != Bdate[1] Then { h1 = hh; l1 = ll; } if (sDate != sDate[1] and sTime >= HLStartTime) or (sDate == sDate[1] and sTime >= HLStartTime and sTime[1] < HLStartTime) Then { Tcond = true; hh = h; ll = l; } if (sDate != sDate[1] and sTime >= HLEndTime) or (sDate == sDate[1] and sTime >= HLEndTime and sTime[1] < HLEndTime) Then Tcond = False; if tcond == true Then { if h > hh Then hh = h; if l < ll Then ll = l; } if (sDate != sDate[1] and sTime >= DisplayStart) or (sDate == sDate[1] and sTime >= DisplayStart and sTime[1] < DisplayStart) Then Display = true; if (sDate != sDate[1] and sTime >= DisplayEnd) or (sDate == sDate[1] and sTime >= DisplayEnd and sTime[1] < DisplayEnd) Then Display = False; if Display == true Then { Plot1(h1); plot2(l1); } Else { NoPlot(1); NoPlot(2); }
즐거운 하루되세요