커뮤니티

안녕하세요

프로필 이미지
물고기
2020-02-27 12:48:35
454
글번호 136398
답변완료
//Variable: //cp = 2 (default) if high[cp] >= highest[2*cp+1](high) then LH = 1 else LH=0 endif if low[cp] <= lowest[2*cp+1](low) then LL= -1 else LL=0 endif if LH=1 then hil = high[cp] endif if LL = -1 then LOL=low[cp] endif return lol coloured(255,0,0) as "LF",hil coloured(0,255,0) as "HF" 수식 변환 문의드립니다. 감사합니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-02-27 14:54:52

안녕하세요 예스스탁입니다. input : cp(2); var : LH(0),LL(0),hil(0),lOL(0); if high[cp] >= highest(H,2*cp+1) then LH = 1; else LH=0; if low[cp] <= lowest(L,2*cp+1) then LL= -1; else LL=0; if LH == 1 then hil = high[cp]; if LL == -1 then LOL=low[cp]; plot1(lol,"lf",rgb(255,0,0)); plot2(hil,"hf",rgb(0,255,0)); 즐거운 하루되세요 > 물고기 님이 쓴 글입니다. > 제목 : 안녕하세요 > //Variable: //cp = 2 (default) if high[cp] >= highest[2*cp+1](high) then LH = 1 else LH=0 endif if low[cp] <= lowest[2*cp+1](low) then LL= -1 else LL=0 endif if LH=1 then hil = high[cp] endif if LL = -1 then LOL=low[cp] endif return lol coloured(255,0,0) as "LF",hil coloured(0,255,0) as "HF" 수식 변환 문의드립니다. 감사합니다