커뮤니티
문의드립니다.
2019-06-07 16:36:22
371
글번호 129239
///////////
//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 "Low Fractal",hil coloured(0,255,0) as "High Fractal"
/////////////end
Yes로 변환이 가능할 까요?
답변 1
예스스탁 예스스탁 답변
2019-06-07 09:32:44
안녕하세요
예스스탁입니다.
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(hil,"High Fractal",rgb(0,255,0));
plot2(lol,"Low Fractal",rgb(255,0,0));
즐거운 하루되세요
> 키드 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> /////////// FRACTALS BILL WILLIAMS
//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 "Low Fractal",hil coloured(0,255,0) as "High Fractal"
/////////////end
빌윌리엄 지표인데.. Yes로 변환이 가능할 까요?