Functions
talib.bbw()
Bollinger Bands Width. The Bollinger Band Width is the difference between the upper and the lower Bollinger Bands divided by the middle band.
Syntax
talib.bbw(series float source, series int length, series int mult) → series float
Arguments
source required series float Series of values to process. length required series int Number of bars (length). mult required series int Standard deviation factor. Return Type
series float Example
indicator("Bollinger Band Width (BBW)", overlay=false)
length = input.int(20, title="Length")
mult = input.int(2, title="Multiplier")
[middle, upper, lower] = talib.bb(close, length, mult)
bbw = (upper - lower) / middle
plot(bbw, title="BBW", color=color.blue)
hline(0.5, "0.5 Line", color=color.gray)