What is range trading?

A trading range is a stretch of time when price moves sideways between a ceiling and a floor instead of trending. Buyers step in near the floor, sellers near the ceiling, and neither side pushes through. Range trading means trading that back-and-forth: buy near support, sell or short near resistance, and take profits on the way back across.

It is a form of mean reversion: you bet that price returns toward the middle rather than running away. That makes it the opposite of a breakout trading strategy, and the two meet at the same place, the edge of the range. Ranges appear on every timeframe, from a 5-minute chart in a quiet session to a daily chart that drifts sideways for months.

Trading range (sideways market)
A period when price swings between a horizontal support and resistance instead of making higher highs or lower lows.
Range high and range low
The resistance zone at the top and the support zone at the bottom. Treat each as a zone, not a single price.
Midpoint
Halfway between the range high and the range low: a common first target and the center of the no-trade zone.
False breakout (fakeout)
A move beyond an edge that fails: a wick through it that closes back inside, or a close outside that is quickly reversed.

How to identify a sideways market: three checks

Many losing range trades start with a range that was never there. Before you trade the edges, run the three checks in the list below on your trading timeframe. All three should agree.

ADX comes from J. Welles Wilder Jr., who introduced it with his directional movement system in his 1978 book New Concepts in Technical Trading Systems. On TradingView, the built-in Directional Movement Index (DMI) plots ADX with +DI and −DI, and both lengths default to 14. The drawing below shows the switch: ADX climbs above 25 while price trends, then sinks below 20 once price chops sideways.

Hypothetical: over three sessions on a 15-minute chart, a stock tops out at $49.92, $49.85 and $50.00 and bottoms at $48.05, $48.12 and $47.98. Its 20 and 50 EMAs are flat and crossed, and ADX reads 16. That is a range from about $48.00 to $50.00. One caution: ADX lags and also reads low in the first bars of a new trend, so it confirms a range; it does not predict one.

  1. At least two touches on each side: two highs that stall near the same price and two lows that hold near the same price. One high and one low is just a swing; the range exists once both edges have been tested twice.
  2. Flat moving averages: a 20 and a 50 EMA that run sideways and tangle, with price crossing them back and forth. In a trend they slope and fan apart; see the EMA trading strategy.
  3. A low ADX: the ADX indicator measures trend strength, not direction. A common reading is above 25 for a strong trend, below 20 for no trend, and 20 to 25 as a gray zone.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn chart: price trends steadily up on the left half, then chops sideways on the right half. Below, a panel with the ADX line, a green +DI, a red −DI and a dashed 25 line; ADX climbs above 25 during the trend (trending) and sinks below 20 in the chop (no trend).

How to mark the range: zones, the midpoint and the no-trade middle

Draw each edge as a zone that holds the wicks and closes of the touches, not as one line. In the example, support runs from $48.00 to $48.20 and resistance from $49.80 to $50.00. On TradingView, the Rectangle drawing tool does this, and the Middle line checkbox on the Style tab of its settings adds the midpoint, here $49.00. The support and resistance strategy guide covers zones in detail.

Then split the range into thirds. The bottom third is where you look for longs, the top third for shorts, and the middle third, shaded in the drawing at the top of this page, is the no-trade zone: here, roughly $48.67 to $49.33.

Why skip the middle? Because the stop does not move with you. Buy at $49.00 and the stop still belongs below the range at $47.85, $1.15 away, while resistance caps the move near $49.75, $0.75 away: you risk more than you can make. A tight stop inside the range fixes the ratio on paper, but it sits in the noise and routine swings hit it.

How to trade the edges of a range: wait for confirmation

Touching an edge is not a signal, because price can slide straight through. Wait for a candle on your timeframe to close back away from the edge: a long lower wick or a bullish engulfing candle at support, a long upper wick or a bearish engulfing candle at resistance. The candlestick patterns guide shows these shapes, and the drawing below shows the long side: price dips into support, rejects it, and the signal comes on the close.

Hypothetical long: price dips to $48.10, inside the support zone, and a 15-minute candle closes at $48.35 with a long lower wick. You buy at $48.35. On the other side, price pushes to $49.95 and a candle closes at $49.70 with a long upper wick; you short at $49.70.

The failure case looks the same at first. If price never prints a rejection and closes inside the zone, then below it, there is no trade, while a limit order resting at $48.05 “because it is support” is already filled and losing. Confirmation costs a few cents of entry price and keeps you out of a breakdown.

UpTickFlow, our invite-only TradingView indicator, works on the same confirmation-first principle, so weigh this accordingly. It waits for a candle to close at a level, draws an entry, a stop and a target before the trade, scores the setup from 0 to 100, and stays quiet in chop or when there is no room to the target. It is a second check, not a range scanner.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn chart with a resistance zone above and a support zone below: price dips into support, rejects it and prints a buy signal.

Stops, targets and position size in a range

The stop goes just outside the range, beyond the zone plus a small buffer for noise, because a move outside means the range idea is wrong. For the long at $48.35, that is $47.85, $0.15 below the $48.00 floor: $0.50 of risk per share. For the short at $49.70, it is $50.15: $0.45 of risk.

Two targets are common: the midpoint, and the opposite edge, aimed just in front of the far zone rather than at its extreme. For the long, the midpoint at $49.00 is $0.65 away, about 1.3R, and $49.75, just under resistance, is $1.40 away, about 2.8R. For the short, the midpoint pays $0.70, about 1.6R, and $48.25, just above support, pays $1.45, about 3.2R. Many traders take part of the position off at the middle and let the rest run to the far edge.

Size from the stop: risking 1% of a hypothetical $10,000 account ($100) on the long allows 200 shares ($100 ÷ $0.50). A stop-out costs about $100, or 1R, plus costs, and a gap or a fast move can fill a stop beyond its price. The position size calculator does the math, and the risk-reward ratio guide explains R.

The drawing below shows the plan in R: the red box is the risk down to the stop, the green box the reward up to the target. If the midpoint pays less than 1R from your entry, the entry is too far from the edge.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn trade plan: an entry line, a red box down to the stop labeled risk = 1R, a green box up to the target labeled reward = 2R, and a note reading R:R = 1:2.

False breakouts: the trap at the edge

Ranges are full of false breakouts. Stop orders cluster just beyond each edge, from range traders’ stop losses and from breakout traders’ entry orders. Price often pokes through to fill them, then snaps back inside.

Hypothetical: price drops to $47.70, under support, and the 15-minute candle closes back inside at $48.15. That wick is a failed breakdown, and the traders who sold the break are now trapped. Some range traders buy the close back inside, with the stop under the wick at $47.60: $0.55 of risk for $0.85 to the midpoint, about 1.5R. If the next candle closes at $47.55 instead, the breakdown was real and the trade is a −1R loss.

The same wick shows the cost of a stop just outside: it would have stopped out the earlier long, with its stop at $47.85, before price came back. A wider buffer survives more wicks but buys fewer shares for the same dollar risk, and no stop dodges every false breakout. That is why each loss has to be small.

When to stop range trading: a close outside, then the retest

A candle that closes outside the range on your timeframe ends the range. Cancel any orders at that edge and stop fading that side. In the drawing below, the earlier short at the top is crossed out: a close above resistance means the sellers lost.

Hypothetical: a candle closes at $50.40, above the $50.00 top. The short from $49.70 was already stopped at $50.15 for −1R. Price then drifts back to $50.05, holds, and a candle closes at $50.25. Old resistance has become new support, and the retest is now a breakout trade with its own plan; see the breakout trading strategy.

If price instead closes back inside within a bar or two, the breakout failed, and the range is back in play with that push as its new extreme. Volume helps you weigh the break: one on above-normal volume deserves more respect than one on thin volume. See relative volume.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn end of a range: a candle closes above resistance, price comes back to it (retest, old resistance = new support) and a buy triangle prints; an earlier short at the top of the range is crossed out, with a note reading “a close outside ends the range”.

When range trading fails

Range trading fails often, and losses tend to bunch up when a range finally breaks. Same hypothetical long at $48.35, another day: no wick, no bounce, a candle closes at $47.60 and the stop at $47.85 takes you out for about $100. Planned and survivable. The trader who skips the stop, or buys more at $47.50 to “average down”, turns one small loss into a large one.

The usual causes, and what to do about each:

  • News: earnings, economic data or a headline can break a range in one candle. Avoid holding a range trade into scheduled news.
  • The bigger trend: a sideways stretch on a 5-minute chart can be a pause inside a strong daily trend. Check the higher timeframe and be wary of fading its direction.
  • Chop, not a range: overlapping candles with wicks on both sides and no clean rejections at the edges. If you cannot point to the touches, there is no range.
  • A coil, not a range: lows that keep rising into a flat top show pressure building against one edge, the shape of an ascending triangle. See triangle patterns.
  • Too narrow: if the distance from a sensible entry near an edge to the midpoint is smaller than your risk, costs and noise decide the result.