커뮤니티

지표

프로필 이미지
호정0688
2022-10-10 11:09:46
1116
글번호 162862
답변완료
항상감사합니다. 고+저/2부탁드립니다. 2 input : 타주기분(60); var : S1(0),D1(0),TM(0),TF(0),tx1(0),tx2(0),tx3(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%타주기분; if Bdate != Bdate[1] or (Bdate == Bdate[1] and 타주기분 > 1 and TF < TF[1]) or (Bdate == Bdate[1] and 타주기분 > 1 and TM >= TM[1]+타주기분) or (Bdate == Bdate[1] and 타주기분 == 1 and TM > TM[1]) Then { var1 = O; Var2 = H; Var3 = L; tx1 = text_new(sDate,sTime,var1,"시:"+NumToStr(var1,2)); tx2 = text_new(sDate,sTime,var2,"고:"+NumToStr(var2,2)); tx3 = text_new(sDate,sTime,var3,"저:"+NumToStr(var3,2)); Text_SetStyle(tx1,2,1); Text_SetStyle(tx2,2,1); Text_SetStyle(tx3,2,0); } if h > Var2 Then Var2 = h; if l < Var3 Then Var3 = l; Plot1(var1,"시"); Plot2(var2,"고"); Plot3(var3,"저"); Text_SetLocation(tx1,sDate,sTime,var1); Text_SetString(tx2,"고:"+NumToStr(var2,2)); Text_SetLocation(tx2,sDate,sTime,var2); Text_SetString(tx3,"저:"+NumToStr(var2,2)); Text_SetLocation(tx3,sDate,sTime,var3); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-10-12 16:31:59

안녕하세요 예스스탁입니다. input : 타주기분(60); var : S1(0),D1(0),TM(0),TF(0),tx1(0),tx2(0),tx3(0),tx4(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%타주기분; if Bdate != Bdate[1] or (Bdate == Bdate[1] and 타주기분 > 1 and TF < TF[1]) or (Bdate == Bdate[1] and 타주기분 > 1 and TM >= TM[1]+타주기분) or (Bdate == Bdate[1] and 타주기분 == 1 and TM > TM[1]) Then { var1 = O; Var2 = H; Var3 = L; Var4 = (var2+Var3)/2; tx1 = text_new(sDate,sTime,var1,"시:"+NumToStr(var1,2)); tx2 = text_new(sDate,sTime,var2,"고:"+NumToStr(var2,2)); tx3 = text_new(sDate,sTime,var3,"저:"+NumToStr(var3,2)); tx4 = text_new(sDate,sTime,var4,"저:"+NumToStr(var4,2)); Text_SetStyle(tx1,2,1); Text_SetStyle(tx2,2,1); Text_SetStyle(tx3,2,0); Text_SetStyle(tx4,2,0); } if h > Var2 Then Var2 = h; if l < Var3 Then Var3 = l; Var4 = (var2+Var3)/2; Plot1(var1,"시"); Plot2(var2,"고"); Plot3(var3,"저"); Plot4(Var4,"저"); Text_SetLocation(tx1,sDate,sTime,var1); Text_SetString(tx2,"고:"+NumToStr(var2,2)); Text_SetLocation(tx2,sDate,sTime,var2); Text_SetString(tx3,"저:"+NumToStr(var3,2)); Text_SetLocation(tx3,sDate,sTime,var3); Text_SetString(tx4,"중:"+NumToStr(var4,2)); Text_SetLocation(tx4,sDate,sTime,var4); } 즐거운 하루되세요 > 호정0688 님이 쓴 글입니다. > 제목 : 지표 > 항상감사합니다. 고+저/2부탁드립니다. 2 input : 타주기분(60); var : S1(0),D1(0),TM(0),TF(0),tx1(0),tx2(0),tx3(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%타주기분; if Bdate != Bdate[1] or (Bdate == Bdate[1] and 타주기분 > 1 and TF < TF[1]) or (Bdate == Bdate[1] and 타주기분 > 1 and TM >= TM[1]+타주기분) or (Bdate == Bdate[1] and 타주기분 == 1 and TM > TM[1]) Then { var1 = O; Var2 = H; Var3 = L; tx1 = text_new(sDate,sTime,var1,"시:"+NumToStr(var1,2)); tx2 = text_new(sDate,sTime,var2,"고:"+NumToStr(var2,2)); tx3 = text_new(sDate,sTime,var3,"저:"+NumToStr(var3,2)); Text_SetStyle(tx1,2,1); Text_SetStyle(tx2,2,1); Text_SetStyle(tx3,2,0); } if h > Var2 Then Var2 = h; if l < Var3 Then Var3 = l; Plot1(var1,"시"); Plot2(var2,"고"); Plot3(var3,"저"); Text_SetLocation(tx1,sDate,sTime,var1); Text_SetString(tx2,"고:"+NumToStr(var2,2)); Text_SetLocation(tx2,sDate,sTime,var2); Text_SetString(tx3,"저:"+NumToStr(var2,2)); Text_SetLocation(tx3,sDate,sTime,var3); }