Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.ta.bb
On this pageSignatureParametersReturnsExample

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

NameTypeRequiredDefaultDescription
sourceseriesYes—Series of values to process.
lengthintYes—Number of bars.
multfloatYes—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.

AlertaScript

No results found.

Search by name, alias, or keyword.