ta.percentile_linear_interpolation() - Pine Script Function
ta.percentile_linear_interpolation()
Section titled “ta.percentile_linear_interpolation()”Overview
Section titled “Overview”Calculates percentile using method of linear interpolation between the two nearest ranks.
Syntax
Section titled “Syntax”ta.percentile_linear_interpolation(source, length, percentage) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | series int/float | Series of values to process (source). |
Returns
Section titled “Returns”P-th percentile of source series for length bars back.
Remarks
Section titled “Remarks”- Note that a percentile calculated using this method will NOT always be a member of the input data set.