커뮤니티

수식문의

프로필 이미지
knb
2022-09-12 21:58:10
1138
글번호 162111
답변완료
안녕하세요, 1) 양봉의 10일 price channel(양봉만 카운팅) 2) 음봉의 10일 price channel(음봉만 카운팅) 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-09-13 15:28:19

안녕하세요 예스스탁입니다. input : N(10); var : cnt(0),sum1(0),mav(0); var : hh1(0),ll1(0),hh2(0),ll2(0); Array : PH[50](0),PL[50](0),NH[50](0),NL[50](0); if C > O Then { For cnt = 49 DownTo 1 { PH[cnt] = PH[cnt-1]; PL[cnt] = PL[cnt-1]; } PH[0] = H; PL[0] = L; if PH[N] > 0 and PL[N] > 0 Then { hh1 = 0; ll1 = 0; For cnt = 1 to N { if hh1 == 0 or (hh1 > 0 and PH[cnt]) Then hh1 = PH[cnt]; if ll1 == 0 or (ll1 > 0 and PL[cnt]) Then ll1 = PL[cnt]; } } } if hh1 > 0 and ll1 > 0 Then { PLOT1(hh1, "TOP1"); PLOT2(ll1, "BOT1"); } if C < O Then { For cnt = 49 DownTo 1 { NH[cnt] = NH[cnt-1]; NL[cnt] = NL[cnt-1]; } NH[0] = H; NL[0] = L; if NH[N] > 0 and NL[N] > 0 Then { hh2 = 0; ll2 = 0; For cnt = 1 to N { if hh2 == 0 or (hh2 > 0 and NH[cnt]) Then hh2 = NH[cnt]; if ll2 == 0 or (ll2 > 0 and NL[cnt]) Then ll2 = NL[cnt]; } } } if hh2 > 0 and ll2 > 0 Then { PLOT3(hh2, "TOP12"); PLOT4(ll2, "BOT12"); } 즐거운 하루되세요 > knb 님이 쓴 글입니다. > 제목 : 수식문의 > 안녕하세요, 1) 양봉의 10일 price channel(양봉만 카운팅) 2) 음봉의 10일 price channel(음봉만 카운팅) 감사합니다.