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

Volatility / Reference

alerta.ta.atr

TradingView-compatible spelling: ta.atr, runs without warnings

Calculates the Average True Range, a measure of market volatility.

alerta.ta.atr(length) → series float

Parameters

NameTypeRequiredDefaultDescription
lengthintYes—Number of bars (length).

Returns

series float

Example

alerta.ta.atr
plot(atr(14), { pane: "oscillator" })

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.