커뮤니티

부탁드립니다.

프로필 이미지
어떤하루
2025-04-22 23:29:28
230
글번호 190346
답변완료
봉에 숫자가 표시는 되는데 안 나오게 부탁드립니다. input : ntime(5); var : S1(0),D1(0),TM(0),TF(0),B(0); var : idx(0),idx1(0),idx2(0),tx(0); var : C1(0),hh(0),ll(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; var1 = 0; c1 = 0; hh = 0; ll = 0; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%ntime; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or (Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or (Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then { B = B+1; idx = 0; idx1 = idx[1]; idx2 = idx1[1]; tx = Text_New(sDate,sTime,L,NumToStr(1,0)); Text_SetStyle(tx,2,0); Text_SetColor(tx,Red); Text_SetBold(tx,1); } idx = idx+1; Text_SetString(tx,NumToStr(idx,0)); Text_SetLocation(tx,sDate,sTime,L); if B >= 3 and idx > max(idx1,idx2) Then { if var1 == 0 Then { c1 = c; hh = C; ll = C; } var1 = C; if var1 > hh Then hh = var1; if var1 < ll Then ll = var1; } if var1 > 0 Then { Plot1(var1); Plot2(c1,"c1",Green); } Else { NoPlot(1); NoPlot(2); } if var1 > 0 and hh > var1 Then Plot3(hh,"hh",Red); Else NoPlot(3); if var1 > 0 and ll < var1 Then Plot4(ll,"ll",Blue); Else NoPlot(4); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-04-23 13:26:47

안녕하세요 예스스탁입니다. input : ntime(5); var : S1(0),D1(0),TM(0),TF(0),B(0); var : idx(0),idx1(0),idx2(0),tx(0); var : C1(0),hh(0),ll(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; var1 = 0; c1 = 0; hh = 0; ll = 0; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%ntime; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or (Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or (Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then { B = B+1; idx = 0; idx1 = idx[1]; idx2 = idx1[1]; #tx = Text_New(sDate,sTime,L,NumToStr(1,0)); Text_SetStyle(tx,2,0); Text_SetColor(tx,Red); Text_SetBold(tx,1); } idx = idx+1; Text_SetString(tx,NumToStr(idx,0)); Text_SetLocation(tx,sDate,sTime,L); if B >= 3 and idx > max(idx1,idx2) Then { if var1 == 0 Then { c1 = c; hh = C; ll = C; } var1 = C; if var1 > hh Then hh = var1; if var1 < ll Then ll = var1; } if var1 > 0 Then { Plot1(var1); Plot2(c1,"c1",Green); } Else { NoPlot(1); NoPlot(2); } if var1 > 0 and hh > var1 Then Plot3(hh,"hh",Red); Else NoPlot(3); if var1 > 0 and ll < var1 Then Plot4(ll,"ll",Blue); Else NoPlot(4); } 즐거운 하루되세요 > 어떤하루 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 봉에 숫자가 표시는 되는데 안 나오게 부탁드립니다. input : ntime(5); var : S1(0),D1(0),TM(0),TF(0),B(0); var : idx(0),idx1(0),idx2(0),tx(0); var : C1(0),hh(0),ll(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; var1 = 0; c1 = 0; hh = 0; ll = 0; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%ntime; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or (Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or (Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then { B = B+1; idx = 0; idx1 = idx[1]; idx2 = idx1[1]; tx = Text_New(sDate,sTime,L,NumToStr(1,0)); Text_SetStyle(tx,2,0); Text_SetColor(tx,Red); Text_SetBold(tx,1); } idx = idx+1; Text_SetString(tx,NumToStr(idx,0)); Text_SetLocation(tx,sDate,sTime,L); if B >= 3 and idx > max(idx1,idx2) Then { if var1 == 0 Then { c1 = c; hh = C; ll = C; } var1 = C; if var1 > hh Then hh = var1; if var1 < ll Then ll = var1; } if var1 > 0 Then { Plot1(var1); Plot2(c1,"c1",Green); } Else { NoPlot(1); NoPlot(2); } if var1 > 0 and hh > var1 Then Plot3(hh,"hh",Red); Else NoPlot(3); if var1 > 0 and ll < var1 Then Plot4(ll,"ll",Blue); Else NoPlot(4); }