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

Utilities / Reference

alerta.max_bars_back

TradingView-compatible spelling: max_bars_back, runs without warnings

Declares the historical-buffer budget for a series. Accepted for Pine compatibility and has no effect: every bar of a series' history can already be referenced.

alerta.max_bars_back(var, num) → void

Parameters

NameTypeRequiredDefaultDescription
varseriesYes—Series whose history budget is being declared.
numintYes—Requested history depth.

Returns

void

Example

alerta.max_bars_back
v = closemax_bars_back(v, 500)plot(v)

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.