- ATR ratio: current M15 ATR(14) divided by its 50-period average. Below about 0.8 suggests compression.
- MA slope: change in the M15 20 EMA over the last 10 bars, in pips. Near zero means no direction.
- Touch count: at least two rejections near both the high and the low of the current range.
Thresholds should be tuned per pair; EURGBP and USDJPY have very different typical ATR values. Logging which condition was met for each trade quickly shows whether the definition actually separates good range trades from bad ones.
What measure do you rely on to decide that a market is ranging?