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) → floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | Array | Yes | — | Array handle. |
percentage | float | Yes | — | Percentile 0..100. |
Returns
floatExample
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.