Skip to content
Algo Trade Analytics Docs

array.percentile_linear_interpolation() - Pine Script Function

Returns the value for which the specified percentage of array values (percentile) are less than or equal to it, using linear interpolation.

array.percentile_linear_interpolation(id, percentage) → series float
NameTypeDescription
idarray<int/float>An array object.
  • 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 being measured. Linear interpolation estimates the value between two ranks.