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 floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
length | int | Yes | — | Number of bars (length). |
Returns
series floatExample
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.