커뮤니티

문의 드립니다.

프로필 이미지
키드
2019-10-06 12:53:06
120
글번호 132517
답변완료
if (sdate != sdate[1] and stime >= 160000) or (sdate == sdate[1] and stime >= 020000 and stime[1] < 020000) Then var1 = ((H-L)/2)+L; if var1 > 1 Then plot1(var1); 특정시간(16:00~02:00)의 고가와 저가의 중심가격을 구하고 싶습니다. 위의 식으로는 제대로 표현이 안되서 문의드립니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-10-07 16:19:14

안녕하세요 예스스탁입니다. input : starttime(160000),endtime(020000); var : Tcond(false),HH(0),LL(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; HH = H; LL = L; } if Tcond == true then { if H > HH Then HH = H; if L < LL Then LL = L; var1 = (HH+LL)/2; } if var1 > 0 Then plot1(var1); 즐거운 하루되세요 > 키드 님이 쓴 글입니다. > 제목 : 문의 드립니다. > if (sdate != sdate[1] and stime >= 160000) or (sdate == sdate[1] and stime >= 020000 and stime[1] < 020000) Then var1 = ((H-L)/2)+L; if var1 > 1 Then plot1(var1); 특정시간(16:00~02:00)의 고가와 저가의 중심가격을 구하고 싶습니다. 위의 식으로는 제대로 표현이 안되서 문의드립니다.