커뮤니티

답변 부탁드립니다.

프로필 이미지
metro
2026-01-29 13:55:07
68
글번호 230190
답변완료

1월28일 올린 질문에 대한 답변 중 오류가 있는 것 같아 다시 문의드립니다.

a,b값만 정상적으로 표시되고, c,d,e,f값은 제대로 표시가 되지 않습니다.

장중 등락에 따라 c,d,e,f값이 계속 변해야 하는데 값1개로 고정되어 나타납니다.

확인 부탁드립니다.

수고하세요.

지표
답변 2
프로필 이미지

예스스탁

2026-01-29 15:32:59

관리자님에 의해 삭제된 답변입니다.
프로필 이미지

예스스탁 예스스탁 답변

2026-01-29 15:38:46

안녕하세요 예스스탁입니다. 일반종목이 아닌 데이터도 적용가능하게 수정해 드립니다. input : Starttime(100000),Endtime(120000),ntime(93000); var : Tcond(False),aa(0),a1(0),bb(0),cc(0),dd(0),ee(0),ff(0); if (sdate != sDate[1] and sTime >= ntime) or (sdate == sDate[1] and sTime >= ntime and sTime[1] < ntime) Then { a1 = C; } if (sdate != sDate[1] and sTime >= starttime) or (sdate == sDate[1] and sTime >= starttime and sTime[1] < starttime) Then { Tcond = true; ee = Nan; ff = Nan; } if (sdate != sDate[1] and sTime >= Endtime) or (sdate == sDate[1] and sTime >= Endtime and sTime[1] < Endtime) Then Tcond = False; if tcond == true Then { aa = C; bb = aa+a1; if isnan(ee) == true or (IsNan(ee)== False and bb > ee) Then ee = bb; if isnan(ff) == true or (IsNan(ff)== False and bb < ff) Then ff = bb; cc = ee-(ee-ff)*0.4; dd = ee-(ee-ff)*0.6; } Plot1(aa,"a"); Plot2(bb,"b"); Plot3(cc,"c"); Plot4(dd,"d"); Plot5(ee,"e"); Plot6(ff,"f"); 즐거운 하루되세요