Skip to content
All library documents

Ranking Current ATR Against Its Historical Values

Article ProRealCode

Summary

The document explains an indicator that expresses current Average True Range as a percentile rank within its own recent history. It calculates ATR using a 20 period window, compares that reading with readings from the preceding 200 periods, counts how many historical values are lower, and converts that count to a percentage. The resulting value gives a relative context for current volatility on the same instrument: a higher rank means current ATR exceeds more of the observations in the lookback window.

This is a descriptive volatility measure, not a directional signal or a standalone trading rule. Its interpretation depends on the ATR period, comparison window, instrument, and data frequency. The example counts only historical values strictly below the current ATR, so ties do not increase the rank; it also does not specify how missing observations or initialization are handled. The document notes that percentile ranking can be applied to other series, though it provides no tested trading results or guidance for selecting thresholds.

Key ideas

  • The indicator ranks current ATR against ATR readings from a fixed historical lookback.
  • The example uses a 20 period ATR and compares it with the preceding 200 periods.
  • A high percentile rank indicates that current volatility is elevated relative to that instrument’s recent history.
  • The rank describes volatility conditions but does not by itself forecast price direction.
  • Lookback choices and treatment of tied values can affect the resulting rank.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.