Home → Learn → Range trading
MARKET STRUCTURE

Trading a sideways range

Most losing streaks do not come from a broken system. They come from using trend tools in a market that has no trend.

Why trend systems fail in a range

Almost every trend-following system contains a version of this condition: the fast average above the slow means up, below means down. When the two averages converge to within a fraction of a percent, ordinary noise flips that condition back and forth.

The system declares an uptrend and buys, declares a downtrend two bars later and sells, and both positions are stopped. That is not a fault in the system — it is a system being asked a question it was not built to answer.

Knowing you are in a range before it costs you

The visual method arrives late: you recognise the range after it has taken several stops from you. There is an earlier measure — the distance between two moving averages, expressed as a percentage of price.

|EMA(fast) − EMA(slow)| ÷ close × 100

It expands in a trend and collapses toward zero in a range. Expressing it as a percentage rather than in points is what makes it comparable across instruments at different prices.

Three states, not two

A single threshold produces constant flipping at its boundary — the very problem you are trying to solve. Two thresholds are needed, creating three zones: range, trend, and a transition band where neither condition holds.

A state should also have to hold for several bars before it is accepted. That adds lag, but removes most of the false signals — a deliberate trade-off.

What to do once you are sure

The practical tool. We built an indicator that measures this automatically and classifies the state on the chart — Range Compression Detector. Free, open-source, with its limits written on its page.