Skip to content
Algo Trade Analytics Docs

array.percentrank() - Pine Script Function

Returns the percentile rank of the element at the specified index.

array.percentrank(id, index) → series float
NameTypeDescription
idarray<int/float>An array object.
  • Percentile rank is the number of elements in the array that are less than or equal to the reference value, expressed as a percentage.