CapnOscar

Fibonnacci Bollinger Bands

This Bollinger Bands with additional Fib levels. Swing Trader Edition :) .. thats all really
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
study(shorttitle="FibBB", title="Fibonnacci Bollinger Bands", overlay=true)
Max = input(1.414, minval=0.127, maxval=2)
length = input(100, minval=1)
src = input(close, title="Source")
mult = input(2.0, minval=0.001, maxval=50)
basis = sma(src, length)
dev = mult * stdev(src, length)
upper = basis + dev
lower = basis - dev
diff = upper - lower 
fib382 = diff*0.382 
fib618 = diff*0.618
fib118 = diff*0.118 
fib886 = diff*0.886
fib1414 = diff*Max
fib382line = lower+fib382 
fib618line = lower+fib618
fib118line = lower+fib118 
fib886line = lower+fib886
takeprofitbuy = lower+fib1414 
takeprofitsell = upper-fib1414


plot(basis, color=red)
p1 = plot(upper, color=silver)
p2 = plot(lower, color=silver)
p3 = plot(fib382line, color=green)
p4 = plot(fib618line, color=blue)
p5 = plot(fib118line, color=green)
p6 = plot(fib886line, color=blue)
p7 = plot(takeprofitbuy, color=green)
p8 = plot(takeprofitsell, color=blue)

fill(p3, p4, transp=98)