Short description:
Shows how the current volatility (ATR as a % of price) ranks against the previous N bars, on a 0-100 scale.
Full description:
- ATR% Percentile Rank measures where the current volatility sits relative to the instrument's own recent history, instead of using a fixed ATR% threshold.
- ATR% is Wilder's ATR divided by close x 100, which makes volatility comparable across price levels and instruments.
- The rank is the percentage of the previous N bars (current bar excluded) whose ATR% is strictly below the current ATR%.
- 100 means volatility is higher than every one of the last N bars, 50 means it is at the median, 0 means it is the lowest in the window.
- The Min Percentile line is an adjustable reference level (default 40). The rank line is green at or above it and red below it.
- Two signals are available for alerts and scanners: rank crosses above Min Percentile, and rank crosses below Min Percentile.
- Because the rank is relative to each instrument's own history, one setting works on calm and volatile symbols alike, while a fixed ATR% floor often never triggers on low-volatility symbols.
- Inputs: ATR Length (default 14), Rank Bars (default 200), Min Percentile (default 40), and colors for the rank above/below the minimum and for the Min Percentile line.
- Works on any timeframe and symbol. Early bars use a shorter window (minimum 20 values) so the line shows even when few candles are loaded. For a full N-bar rank, load at least Rank Bars + ATR Length candles.