All indicators

Percentile Nearest Rank Using Arrays

By LuxAlgoSep 10, 2020

Static chart image

Percentile Nearest Rank Using Arrays computes a rolling percentile rank the direct way: gather the last Length values, sort them, and return the value below which Percentage% of the window sits. Created with Alex Grover, it is less a signal generator than a statistical primitive from the order-statistic filters family: one input turns the same engine into a rolling median, a quartile envelope, or a rolling extreme.

How to Trade the Percentile Nearest Rank Using Arrays?

  • Percentage 50: plots the rolling median, a robust read of trend direction that a single outlier can't drag around.
  • Percentage 100 or 0: returns the rolling maximum or minimum, the statistic underneath stochastic normalization and Donchian-style channels.
  • Percentage 75 / 25: the upper and lower rolling quartiles, bracketing the middle half of recent values.

Run two instances to frame a channel. The original release demonstrates a 75/25 interquartile band computed over a 100-bar window.

Percentile Nearest Rank Using Arrays Settings

  • Length: the rolling window: how many past data points are ranked.
  • Percentage: the 0-100 threshold; the output is the value with Percentage% of the window below it.
  • Src: the series the percentile is computed on.

Frequently Asked Questions

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.