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

Arrays / Reference

alerta.array.percentile_nearest_rank

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

Returns nearest-rank percentile from array values.

alerta.array.percentile_nearest_rank(id, percentage) → float

Parameters

NameTypeRequiredDefaultDescription
idArrayYes—Array handle.
percentagefloatYes—Percentile 0..100.

Returns

float

Example

alerta.array.percentile_nearest_rank
arr = array.from(1, 2, 3, 4)plot(array.percentile_nearest_rank(arr, 75), { title: "array 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.