//@version=3
study("Fibonacci Zone", overlay=true)
per=input(21, "calculate for last ## bars")
hl=highest(high,per) //High Line (Border)
ll=lowest(low,per) //Low Line (Border)
dist=hl-ll //range of the channel
hf=hl-dist*0.236 //Highest Fibonacci line
cfh=hl-dist*0.382 //Center High Fibonacci line
cfl=hl-dist*0.618 //Center Low Fibonacci line
lf=hl-dist*0.764 //Lowest Fibonacci line
fill(plot(hl, title="high border"), plot(hf), color = #00FFFF) //up trend zone
fill(plot(cfh), plot(cfl), color = gray) // ranging zone
fill(plot(ll, title="low border"), plot(lf), color=orange) //down trend zone
위수식을 예스트레더로 변경하고자 합니다,수식변경부탁드립니다~
답변 1
예스스탁
예스스탁 답변
2021-10-05 14:48:26
안녕하세요
예스스탁입니다.
input : per(21);
var : hl(0),ll(0),dist(0),hf(0),cfh(0),cfl(0),lf(0);
hl=highest(high,per);
ll=lowest(low,per);
dist=hl-ll;
hf=hl-dist*0.236;
cfh=hl-dist*0.382;
cfl=hl-dist*0.618;
lf=hl-dist*0.764;
plot1(hl,"high border");
plot2(cfh,"cfh");
plot3(ll,"low border");
즐거운 하루되세요
> 장군 님이 쓴 글입니다.
> 제목 : 문의드립니다
> //@version=3
study("Fibonacci Zone", overlay=true)
per=input(21, "calculate for last ## bars")
hl=highest(high,per) //High Line (Border)
ll=lowest(low,per) //Low Line (Border)
dist=hl-ll //range of the channel
hf=hl-dist*0.236 //Highest Fibonacci line
cfh=hl-dist*0.382 //Center High Fibonacci line
cfl=hl-dist*0.618 //Center Low Fibonacci line
lf=hl-dist*0.764 //Lowest Fibonacci line
fill(plot(hl, title="high border"), plot(hf), color = #00FFFF) //up trend zone
fill(plot(cfh), plot(cfl), color = gray) // ranging zone
fill(plot(ll, title="low border"), plot(lf), color=orange) //down trend zone
위수식을 예스트레더로 변경하고자 합니다,수식변경부탁드립니다~