Advertisement IC Markets

Range Detection Rules You Can Write Down: ATR Ratio, MA Slope and Touch Count

Discuss 1-minute to 15-minute price action setups, fading intraday momentum, key support/resistance zones, and proven short-term trading methodologies.
Post Reply
FXS Prop Desk
Posts: 1693
Joined: Wed Oct 07, 2026 9:52 am

Range Detection Rules You Can Write Down: ATR Ratio, MA Slope and Touch Count

Post by FXS Prop Desk »

"The market is ranging" is easy to say after the fact. For scalping, a written definition that can be checked in real time is more useful. Three measures cover most cases.
  • 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.
A simple rule: treat the market as a range when at least two of the three are met, and switch back to trend rules as soon as price closes outside the range on M15.

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?
FXS Official Team | The Idea Lab & Strategy
Recommended broker for automated trading & scalping IC Markets
Shadow Trader
Posts: 5594
Joined: Wed Sep 09, 2026 5:19 pm

Re: Range Detection Rules You Can Write Down: ATR Ratio, MA Slope and Touch Count

Post by Shadow Trader »

I use the ATR ratio as the first gate and touch count as the second. When M15 ATR(14) sits under 0.75 of its 50 period mean and I have two clear rejections at both edges, I allow mean reversion size; otherwise I stay in breakout mode.

MA slope alone lied to me on USDJPY during a slow drift week. Slope near zero while ATR was expanding produced fake range trades that got run over.

Two of three conditions is my switch, same idea as the thread, but I exit range mode on the first M15 close outside rather than waiting for a second confirmation. Waiting cost me the clean part of two breaks.

I log which condition fired for every range trade. After eighty samples the ATR plus touches combo carried almost all the expectancy; slope was mostly decoration.

What threshold on ATR ratio do you actually use per pair? Mine is tighter on EURGBP than on GBPJPY because the baselines differ so much.
Shadow Trader
Posts: 5594
Joined: Wed Sep 09, 2026 5:19 pm

Re: Range Detection Rules You Can Write Down: ATR Ratio, MA Slope and Touch Count

Post by Shadow Trader »

One distortion in the ATR ratio that took me a while to spot is the hangover after a news bar. A single huge M15 candle sits inside the 50 period average for well over twelve hours, so perfectly normal bars afterwards look compressed.
img_13584_r2.png
img_13584_r2.png (112.85 KiB) Viewed 102 times
The chart is a made up EURUSD session with one 70 pip NFP bar and three 24 pip bars after it, against a typical M15 ATR of about 8 pips. Five hours later the ratio reads 0.79 while the bars are back to their usual size, so it passes the 0.8 gate with nothing actually compressing.

My fix was to use the median of the last 50 ATR readings as the baseline instead of the mean. The median barely notices a few outliers, so the same reading comes out at 0.99 and the ratio only drops once the market really goes quiet.

Touch count needs a similar guard. I only count a rejection if it comes at least six bars after the previous touch at that edge, otherwise one messy cluster of wicks counts as three touches and the range gets declared far too early.

How do others define near the edge for a touch? I use 20 percent of the current ATR, which on EURGBP is often less than a pip.
Shadow Trader
Posts: 5594
Joined: Wed Sep 09, 2026 5:19 pm

Re: Range Detection Rules You Can Write Down: ATR Ratio, MA Slope and Touch Count

Post by Shadow Trader »

Scandinavian crosses look fine at 09:00 London and quite different at 21:00. Here's a small test anyone can run.

Pick EURNOK or EURSEK, whichever your broker offers. Log the spread every 15 minutes for a week, noting the time. Add the average 1-minute candle range for each slot. Then divide spread by range.

During London hours the ratio is often modest. In late New York and around rollover, spreads tend to widen and candles get jumpy on fewer ticks, so the ratio can double or more depending on the broker. In those hours a tight target is mostly spread.

The Norwegian krone has some link to oil, while the Swedish krona tends to follow euro-area sentiment more closely, so the two don't always move together even though both are small markets.

If the numbers show the ratio blowing out in a certain window, that window is the one to skip or size down in.

What does the ratio look like on your feed, and at which hour does it turn ugly?
Post Reply