ta.percentile_linear_interpolation
The value at percentage (0-100) of the last length values sorted, interpolated between the two nearest values (position percentage / 100 * (length - 1)).
ta.percentile_linear_interpolation(source: float, length: simple int, percentage: float) -> series float
Parameters
sourcefloat: The values to use, usually close or another price; a series that may change on every bar. An na value in the window gives na.lengthsimple int: Number of bars, a whole number from 1 to 5000 (a fraction is cut off). Known before the first bar: a literal or an input, never a series. Outside 1 to 5000 the script stops with a runtime error.percentagefloat: The percentile, 0 to 100 (values outside are clamped); may change on every bar.
Example
ta.percentile_linear_interpolation(close, 50, 90)