커뮤니티

수정부탁드립니다.

프로필 이미지
oni
2022-09-05 15:18:00
1825
글번호 162004
답변완료

첨부 이미지

작성해주신 수식에서, 특정시간 외 시간은 표기하지 않기 위해 noplot 적용하였는데, 정상 작동하지 않아 문의 드립니다. 첨부사진 처럼 1개의 값만 표기됩니다. input : StartTime(223200),EndTime(045800); var : Tcond(false),hv(0),oo(0),hh(0),ll(0),cc(0); if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; hv = 0; } if Tcond == true Then { if v > hv Then { hv = v; oo = o; hh = h; ll = l; cc = c; } Plot1(oo,"O"); Plot2(hh,"H"); plot3(ll,"L"); Plot4(cc,"C"); } else NoPlot(1); NoPlot(2); NoPlot(3); NoPlot(4);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-09-05 16:35:37

안녕하세요 예스스탁입니다. input : StartTime(223200),EndTime(045800); var : Tcond(false),hv(0),oo(0),hh(0),ll(0),cc(0); if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; hv = 0; } if Tcond == true Then { if v > hv Then { hv = v; oo = o; hh = h; ll = l; cc = c; } Plot1(oo,"O"); Plot2(hh,"H"); plot3(ll,"L"); Plot4(cc,"C"); } else { NoPlot(1); NoPlot(2); NoPlot(3); NoPlot(4); } 즐거운 하루되세요 > oni 님이 쓴 글입니다. > 제목 : 수정부탁드립니다. > 작성해주신 수식에서, 특정시간 외 시간은 표기하지 않기 위해 noplot 적용하였는데, 정상 작동하지 않아 문의 드립니다. 첨부사진 처럼 1개의 값만 표기됩니다. input : StartTime(223200),EndTime(045800); var : Tcond(false),hv(0),oo(0),hh(0),ll(0),cc(0); if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; hv = 0; } if Tcond == true Then { if v > hv Then { hv = v; oo = o; hh = h; ll = l; cc = c; } Plot1(oo,"O"); Plot2(hh,"H"); plot3(ll,"L"); Plot4(cc,"C"); } else NoPlot(1); NoPlot(2); NoPlot(3); NoPlot(4);