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

Volatility / Reference

alerta.ta.atrp

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

Calculates ATR as a percentage of price.

alerta.ta.atrp(high, low, close, length) → series float

Parameters

NameTypeRequiredDefaultDescription
highseriesYes—High series.
lowseriesYes—Low series.
closeseriesYes—Close series.
lengthintNo—Length (default 14).

Returns

series float

Example

alerta.ta.atrp
plot(atrp(high, low, close, 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.