array.percentile_nearest_rank() - Pine Script Function
array.percentile_nearest_rank()
Section titled “array.percentile_nearest_rank()”Overview
Section titled “Overview”Returns the value for which the specified percentage of array values (percentile) are less than or equal to it, using the nearest-rank method.
Syntax
Section titled “Syntax”array.percentile_nearest_rank(id, percentage) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | array<int/float> | An array object. |
Remarks
Section titled “Remarks”- In statistics, the percentile is the percent of ranking items that appear at or below a certain score. This measurement shows the percentage of scores within a standard frequency distribution that is lower than the percentile rank you’re measuring.