TradingView
KivancOzbilgic
12 nov 2018 17:22

Auto Fibonacci Retracement Levels MTF 

XRP / DollarBitfinex

Descrizione

Multi Time Frame version of Auto Fibonacci Retracement Levels Indicator

Now you can see daily Fibo Retracement levels on any time frame

tr.tradingview.com/script/eMX3cQPk-Auto-Fibonacci-Retracament-Levels-by-KIVANÇ-fr3762/


This indicator/tool (Auto Fibo) draws Fibonacci Retracement Levels automatically on any chart.
The algorithm of the Indicator Plots the extreme points and puts the retracement levels in order by itself with 100% sensitivity.
The key point is that to arrange the length of the "lookback bars" to arrange the correct extreme points.
Like the other auto plotting tools, the levels can change when the time frame of the chart changes, in contrast with manually drawn Fibo levels.

In technical analysis , a Fibonacci retracement is created by taking two extreme points (usually a major peak and trough) on a stock chart and dividing the vertical distance by the key Fibonacci ratios of 23.6%, 38.2%, 50%, 61.8% and 100%.



Commenti
KivancOzbilgic
HERE'S THE CODE OF AUTO FIBO LEVELS:

//@version=3
study("Auto Fibo",overlay=true)
len=input(144, "Auto Fibo Length")


hl1272a=input(1.272, "Adjustable Fibo Level")

AFL = input(false, title="Show Adjustable Fibo Level?")
AFL1 = input(false, title="Show 1.618 Fibo Level?")
AFL2 = input(false, title="Show 2.618 Fibo Level?")
AFL3 = input(false, title="Show 3.618 Fibo Level?")

h1=highest(high,len)
l1=lowest(low,len)
fark=h1-l1

hl236=l1+fark*(0.236)
hl382=l1+fark*(0.382)
hl500=l1+fark*(0.5)
hl618=l1+fark*(0.618)
hl786=l1+fark*(0.786)
hl1272=l1+fark*(hl1272a)
hl1618=l1+fark*(1.618)
hl2618=l1+fark*(2.618)
hl3618=l1+fark*(3.618)


lh236=h1-fark*(0.236)
lh382=h1-fark*(0.382)
lh500=h1-fark*(0.5)
lh618=h1-fark*(0.618)
lh786=h1-fark*(0.786)
lh1272=h1-fark*(hl1272a)
lh1618=h1-fark*(1.618)
lh2618=h1-fark*(2.618)
lh3618=h1-fark*(3.618)

hbars=-highestbars(high,len)
lbars=-lowestbars(low,len)

f236=iff(hbars>lbars,hl236,lh236)
f382=iff(hbars>lbars,hl382,lh382)
f500=iff(hbars>lbars,hl500,lh500)
f618=iff(hbars>lbars,hl618,lh618)
f786=iff(hbars>lbars,hl786,lh786)
f1272=iff(hbars>lbars,hl1272,lh1272)
f1618=iff(hbars>lbars,hl1618,lh1618)
f2618=iff(hbars>lbars,hl2618,lh2618)
f3618=iff(hbars>lbars,hl3618,lh3618)




plot(l1,trackprice=true, offset=-9999 ,color=#4B0082 ,linewidth=3)
plot(h1,trackprice=true, offset=-9999, color=#4B0082 ,linewidth=3)

plot(f236,trackprice=true, offset=-9999 ,color=black,title="0.236")
plot(f382,trackprice=true, offset=-9999 ,color=blue,linewidth=1,title="0.382")
plot(f500,trackprice=true, offset=-9999 ,color=gray,linewidth=1,title="0.5")
plot(f618,trackprice=true, offset=-9999 ,color=#800000,linewidth=2,title="0.618")
plot(f786,trackprice=true, offset=-9999 ,color=black,title="0.786")
plot(AFL and f1272 ? f1272 : na, trackprice=true, offset=-9999 ,color=red,linewidth=2,title="1.272")
plot(AFL1 and f1618 ? f1618 : na, trackprice=true, offset=-9999 ,color=red,linewidth=2,title="1.618")
plot(AFL2 and f2618 ? f2618 : na, trackprice=true, offset=-9999 ,color=red,linewidth=2,title="2.618")
plot(AFL3 and f3618 ? f3618 : na, trackprice=true, offset=-9999 ,color=red,linewidth=2,title="3.618")
TkksnKdr
@KivancOzbilgic, Cok tsk ederim. ellerinize saglik
slimer0
@KivancOzbilgic, Hocam orjinal indikatör ayarlarında Length ile birlikte Time Frame de belirleyebiliyoruz, ama üstte yazmış olduğunuz kodu çalıştırdığımızda sadece Length girebiliyoruz. Eklememiz ya da değiştirmemiz gereken satır konusunda yardımcı olur musunuz? (Evet çoklu indikatör videonuzu izledik, denemeler yapıyoruz :).)
İyi çalışmalar
gophertrades23
@KivancOzbilgic, This is great. I was curious if you had the text for the MTF function of this. This one doesn't have the daily levels built into it.
vuongtran1
how can i set alert for this indicator ?
JohnnyCageWins
@vuongtran1, I just draw horizontal lines where the different levels are and set alerts on the lines
favoridizayn
Merhaba Kıvanç Bey, bu komutun kaynak kodlarını paylaşır mısınız? Mesajda vermiş olduğunuz kaynak kod içinde "Time Frame" eksik, bu kodlar sizin diğer Auto Fibo'nun. Teşekkürler elinize sağlık. :)
nobodyxxx
Kıvanc Bey selamlar... alarm kurmamıza rağmen çalışmamasının sebebi var mıdır? bizim ayarlarda birşey mi yapmamız lazım... teşekkürler..
sameerwagh409
This indicator not showing % for each line in mobile version
omshator
hey man , thanks for the source of this amazing script>>> how can i code the lable like ( Auto Fibo: plot ) right side price?!
Altro