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

Utilities / Reference

alerta.ta.percentrank

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

Returns the percentile rank (0..100) of the current value inside the rolling window.

alerta.ta.percentrank(source, length) → series float

Parameters

NameTypeRequiredDefaultDescription
sourceseriesYes—Source series.
lengthintYes—Lookback window.

Returns

series float

Example

alerta.ta.percentrank
pr = ta.percentrank(close, 50)plot(pr, { title: "PercentRank", 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.