ta.percentrank() - Pine Script Function
ta.percentrank()
Section titled “ta.percentrank()”Overview
Section titled “Overview”Percent rank is the percents of how many previous values was less than or equal to the current value of given series.
Syntax
Section titled “Syntax”ta.percentrank(source, length) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | series int/float | Series of values to process. |
Returns
Section titled “Returns”Percent rank of source for length bars back.
Remarks
Section titled “Remarks”- na values in the source series are included in calculations and will produce an na result.