ta.percentile_nearest_rank

The value at percentage (0-100) of the last length values sorted, by the nearest rank: the smallest value with at least percentage percent of the values at or below it.

ta.percentile_nearest_rank(source: float, length: simple int, percentage: float) -> series float

Parameters

Example

ta.percentile_nearest_rank(close, 50, 90)