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 floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Source series. |
length | int | Yes | — | Lookback window. |
Returns
series floatExample
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.