ta.bb
Bollinger Bands: returns [middle, upper, lower] with middle = sma(series, length) and bands at mult standard deviations.
ta.bb(series: float, length: simple int, mult: float) -> series [float, float, float]
Parameters
seriesfloat: The values to use, usually close or another price; a series that may change on every bar.lengthsimple int: Number of bars, a whole number from 1 to 5000 (a fraction is cut off). Known before the first bar: a literal or an input, never a series. Outside 1 to 5000 the script stops with a runtime error. Bars of the middle line (an SMA) and of the standard deviation.multfloat: How many standard deviations (population) the bands sit from the middle line.
Example
[mid, up, lo] = ta.bb(close, 20, 2)