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

Utilities / Reference

alerta.ta.percentile_nearest_rank

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

Returns rolling percentile using nearest-rank method.

alerta.ta.percentile_nearest_rank(source, length, percentage) → series float

Parameters

NameTypeRequiredDefaultDescription
sourceseriesYes—Source series.
lengthintYes—Lookback window.
percentagefloatYes—Percentile level between 0 and 100.

Returns

series float

Example

alerta.ta.percentile_nearest_rank
p75 = ta.percentile_nearest_rank(close, 20, 75)plot(p75, { title: "P75 NR", 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.