ScriptingReferenceFunctionstalibtalib.percentile_linear_interpolation

talib.percentile_linear_interpolation

The requested percentile of source over length bars, interpolating between the two values that straddle the rank. Because it interpolates, the result need not be a value that actually occurred in the window.

talib.percentile_linear_interpolation(series float source, series int length, series float percentile) → series float
ParameterTypeRequiredDescription
sourceseries floatyesThe series to take the percentile of.
lengthseries intyesHow many bars the window covers.
percentileseries floatyesThe percentile wanted. Int or float.

Returns series float — A series float.

indicator("75th percentile, interpolated")
plot(talib.percentile_linear_interpolation(close, 20, 75))

See also talib.alma · talib.atr · talib.barssince

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade