커뮤니티

수정 부탁드립니다

프로필 이미지
라몬
2022-03-14 23:00:52
1062
글번호 157164
답변완료
안녕하세요 아래 지표를 잘 사용하고 있습니다. 틱 챠트에 타임 적용을 240 분으로 늘려 사용하여도 문제 없었는데 아침 7시로 시간이 당겨지니 8시 부터 다시 240 분 시간이 시작되어 수정을 부탁드립니다. 고맙습니다. input : ntime(30); var : S1(0),D1(0),TM(0),TF(0); var : HH(0),LL(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(0); D1 = sdate; } 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 { hh = h; ll = l; } if hh > 0 and h > hh Then hh = h; if ll > 0 and l < ll Then ll = l; Plot1(hh); Plot2(ll+(hh-ll)*0.875); Plot3(ll+(hh-ll)*0.75); Plot4(ll+(hh-ll)*0.625); Plot5(ll+(hh-ll)*0.50); Plot6(ll+(hh-ll)*0.375); Plot7(ll+(hh-ll)*0.25); Plot8(ll+(hh-ll)*0.125); Plot9(ll); }
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-03-15 14:58:21

안녕하세요 예스스탁입니다. S1 = TimeToMinutes(0); 위 내용을 0으로 지정하시면 안됩니다. 영업일 변경시간을 기준으로 해야 하므로 S1 = TimeToMinutes(sTime); 으로 지정하고 사용하셔야 합니다. input : ntime(30); var : S1(0),D1(0),TM(0),TF(0); var : HH(0),LL(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%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 { hh = h; ll = l; } if hh > 0 and h > hh Then hh = h; if ll > 0 and l < ll Then ll = l; Plot1(hh); Plot2(ll+(hh-ll)*0.875); Plot3(ll+(hh-ll)*0.75); Plot4(ll+(hh-ll)*0.625); Plot5(ll+(hh-ll)*0.50); Plot6(ll+(hh-ll)*0.375); Plot7(ll+(hh-ll)*0.25); Plot8(ll+(hh-ll)*0.125); Plot9(ll); } 즐거운 하루되세요 > 라몬 님이 쓴 글입니다. > 제목 : 수정 부탁드립니다 > 안녕하세요 아래 지표를 잘 사용하고 있습니다. 틱 챠트에 타임 적용을 240 분으로 늘려 사용하여도 문제 없었는데 아침 7시로 시간이 당겨지니 8시 부터 다시 240 분 시간이 시작되어 수정을 부탁드립니다. 고맙습니다. input : ntime(30); var : S1(0),D1(0),TM(0),TF(0); var : HH(0),LL(0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(0); D1 = sdate; } 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 { hh = h; ll = l; } if hh > 0 and h > hh Then hh = h; if ll > 0 and l < ll Then ll = l; Plot1(hh); Plot2(ll+(hh-ll)*0.875); Plot3(ll+(hh-ll)*0.75); Plot4(ll+(hh-ll)*0.625); Plot5(ll+(hh-ll)*0.50); Plot6(ll+(hh-ll)*0.375); Plot7(ll+(hh-ll)*0.25); Plot8(ll+(hh-ll)*0.125); Plot9(ll); }