커뮤니티

수식문의요

프로필 이미지
장군777
2018-06-19 18:22:09
139
글번호 119879
답변완료
1.10시부터 10시59분 사이 종가선 2.11시부터 11시59분 사이 종가선 3.10시부터 10시59분 사이 1/2선 3.11시부터 11시59분 사이 1/2선 부탁드립니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-06-20 13:27:14

안녕하세요 예스스탁입니다. var : Tcond1(false),Tcond2(false); var : c1(0),h1(0),l1(0),c2(0),h2(0),l2(0); if (sdate != sdate[1] and stime >= 100000) or (sdate == sdate[1] and stime >= 100000 and stime[1] < 100000) Then { Tcond1 = true; h1 = h; l1 = l; } if (sdate != sdate[1] and stime >= 110000) or (sdate == sdate[1] and stime >= 110000 and stime[1] < 110000) Then Tcond1 = false; if (sdate != sdate[1] and stime >= 110000) or (sdate == sdate[1] and stime >= 110000 and stime[1] < 110000) Then { Tcond2 = true; h2 = h; l2 = l; } if (sdate != sdate[1] and stime >= 120000) or (sdate == sdate[1] and stime >= 120000 and stime[1] < 120000) Then Tcond2 = false; if tcond1 == true Then { c1 = c; if h > h1 Then h1 = h; if l < l1 Then l1 = l; } if tcond2 == true Then { c2 = c; if h > h2 Then h2 = h; if l < l2 Then l2 = l; } plot1(c1); plot2(c2); plot3((h1+l1)/2); plot4((h2+l2)/2); 즐거운 하루되세요 > 장군777 님이 쓴 글입니다. > 제목 : 수식문의요 > 1.10시부터 10시59분 사이 종가선 2.11시부터 11시59분 사이 종가선 3.10시부터 10시59분 사이 1/2선 3.11시부터 11시59분 사이 1/2선 부탁드립니다