Volatility / Reference
alerta.ta.bb
TradingView-compatible spelling: ta.bb, runs without warnings
Bollinger Bands: a simple moving average of source (the middle band) and the bands mult standard deviations above and below it. Returns the tuple [middle, upper, lower], as Pine's ta.bb does; ta.bbands and bbands are the same function.
alerta.ta.bb(source, length, mult) → [middle, upper, lower]Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Series of values to process. |
length | int | Yes | — | Number of bars. |
mult | float | Yes | — | Standard deviation multiplier. |
Returns
[middle, upper, lower]Example
alerta.ta.bb
[basis, upper, lower] = ta.bb(close, 20, 2.0)plot(basis, "Basis")plot(upper, "Upper")plot(lower, "Lower")Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.