Ether

3BBands (3 Spirolinas)

The script combines 3 single Bollinger bands into one script for easy plotting and range modification. It can be used for analyzing a market with multiple time frames and ranges using Fibonacci series as the range.

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?
//
// @author Ether/Spirolina/JavaHut/Krill
study(shorttitle="3BBands", title="3 Spirolinas(3BBands)", overlay=true)
source = close
length = input(13, minval=1), mult = input(2.0, minval=0.001, maxval=50)
basis = sma(source, length)
dev = mult * stdev(source, length)
upper = basis + dev
lower = basis - dev
plot(basis, color=red)
p1 = plot(upper, color=blue)
p2 = plot(lower, color=blue)
fill(p1, p2)
// bband2
length2 = input(21, minval=1), mult2 = input(2.0, minval=0.001, maxval=50)
basis2 = sma(source, length2)
dev2 = mult2 * stdev(source, length2)
upper2 = basis2 + dev2
lower2 = basis2 - dev2
plot(basis2, color=purple)
p3 = plot(upper2, color=green)
p4 = plot(lower2, color=green)
fill(p3, p4)
// bband3
length3 = input(34, minval=1), mult3 = input(2.0, minval=0.001, maxval=50)
basis3 = sma(source, length3)
dev3 = mult3 * stdev(source, length3)
upper3 = basis3 + dev3
lower3 = basis3 - dev3
plot(basis3, color=lime)
p5 = plot(upper3, color=fuchsia)
p6 = plot(lower3, color=fuchsia)
fill(p5, p6)