All Trading Patterns
Breakout Pattern

Rectangle Pattern

Equal highs and equal lows forming a horizontal channel — a direction-neutral consolidation zone that builds energy for the next trend move. Trade the range inside, or the breakout when it comes.

YouTube Short · Pro-Scalper EA

What Is the Rectangle Pattern?

The Rectangle Pattern — also called a trading range or horizontal channel — forms when price consolidates between two clearly defined and parallel horizontal levels: a resistance ceiling above and a support floor below. Unlike triangles, the highs and lows are approximately equal rather than converging, creating a box-shaped zone of indecision.

The pattern is completely direction-agnostic until it breaks. This makes it uniquely versatile — you can trade the range interior by buying support and selling resistance, or wait for the breakout and trade the subsequent momentum move in whichever direction price escapes.

Breakout
Type
Neutral
Bias
H1 / H4
Best On

Key Traits

Equal highs creating a flat resistance ceiling — at least two clear touches
Equal lows creating a flat support floor — at least two clear touches
Price bounces predictably between the two levels multiple times
Volume contracts during range development; expands sharply on breakout

What the Rectangle Represents in the Market

A Rectangle Pattern is a pause — a period where the market reaches temporary equilibrium between buyers and sellers. Neither side has enough conviction to push price sustainably in one direction, so price oscillates between fixed upper and lower boundaries. This is not random noise; it is a structured standoff.

On XAUUSD, Rectangles commonly form after a strong trending move as the market consolidates gains (or losses) before the next leg. They can also form ahead of major news events when institutional participants step back and wait for clarity. In either case, the Rectangle is a coiled spring — the longer and tighter the consolidation, the more energy stored for the eventual breakout move.

The resistance ceiling represents a level where sell orders consistently appear — whether from institutional limit orders, prior support that is now resistance, or simply a price level that the market has collectively agreed is overvalued for the current moment. The support floor represents the opposite: a level where buy orders consistently appear, absorbing selling pressure.

Each bounce off these levels reinforces their significance. By the third or fourth touch of support or resistance, the market has clearly identified these as important boundaries — and when one finally gives way, the release of stored energy produces a move that is proportional to the height of the range and the duration of the consolidation.

Bullish Rectangle

A bullish Rectangle forms during an uptrend as a continuation pause. Price consolidates horizontally after a strong rally before resuming upward. The breakout above resistance is the entry trigger. The measured move target is the height of the rectangle added to the breakout level.

Context matters enormously here. A bullish Rectangle that forms after a sustained gold uptrend, with DXY weakening and real yields declining, is among the most reliable continuation setups in the market. The consolidation represents accumulation — large buyers holding their positions and allowing weak-handed longs to exit before the next leg.

Entry: candle close above resistance. Stop: below the most recent swing low inside the range. Target: height of rectangle projected upward from resistance breakout.

Bearish Rectangle

A bearish Rectangle forms during a downtrend as a continuation pause. Price consolidates after a sharp selloff, oscillates horizontally, and then breaks below support for the next downside leg. The breakdown is the entry for shorts.

For XAUUSD, bearish Rectangles that form with DXY strengthening above key resistance, rising real yields, or negative sentiment from central bank communications provide the strongest fundamental alignment. When macro and technical both point down, the breakdown from a bearish Rectangle can produce 100+ pip moves on gold.

Entry: candle close below support. Stop: above the most recent swing high inside the range. Target: height of rectangle projected downward from support breakdown.

Two Ways to Trade the Rectangle

Range
Oscillation Trading

Buy near support, sell near resistance. Repeat until the range breaks. Best when the range is wide (50+ pips on XAUUSD) and well-established over multiple touches.

Breakout
Momentum Entry

Wait for the range boundary to break with a confirmed candle close. Trade the subsequent momentum move. Higher reward, requires patience and discipline to wait for confirmation.

Retest
Secondary Entry

After the breakout, price commonly retests the broken boundary from the new side. This pullback to former support/resistance offers a lower-risk entry with a tighter stop.

On XAUUSD, the breakout trade is generally superior to range trading because gold's volatility means range boundaries are frequently tested with large wicks that stop out range traders before reversing. The breakout + retest approach filters these false breakouts and provides a cleaner entry with better risk management.

Trading the Rectangle on XAUUSD

Gold is one of the best markets for Rectangle trading because it forms clean, well-defined ranges around institutional price levels. Ranges often develop between adjacent round numbers — 2300 to 2350, for example — or between prior swing highs and lows that have established themselves as meaningful price memory levels.

Width matters: On XAUUSD, a Rectangle with less than 20 pip height is too narrow to trade profitably after accounting for spread, slippage, and stop placement. The sweet spot for range trades is 40–100 pip ranges. For breakout trades, even narrow ranges work — the measured move is simply smaller, so position size needs adjusting to maintain proper risk.

Session timing and false breaks: Gold's Asian session is notorious for false breakout spikes that push just outside the range boundary before reversing back inside. This is the classic stop-hunt — algorithms sweep stops that are placed just outside the range before pushing price back in the other direction. To avoid this, always require a candle close outside the boundary on the 15-minute or 1-hour chart, not just a wick penetration.

Prior trend context: A Rectangle that forms after a strong uptrend will most commonly break to the upside (continuation). A Rectangle that forms after a strong downtrend will most commonly break to the downside (continuation). Trading the breakout in the direction of the prior trend gives you the statistical edge. Counter-trend breakouts do occur but are less predictable and require additional confirmation.

News positioning: Rectangles that form before major economic releases — US CPI, Fed statements, NFP — tend to break sharply in one direction as the news provides the catalyst. Knowing which data is due and what consensus expects can help you anticipate which side is more likely to break. However, always wait for the confirmed break rather than pre-positioning based on news expectations.

Volume confluence: The best Rectangle breakouts on gold are accompanied by a clear spike in volume on the breakout candle. When a H1 breakout candle has volume 50–100% above average and closes cleanly outside the range, the move has institutional participation and is far less likely to reverse immediately.

Buying the top or selling the bottom of the range

The worst range trade entry is at the midpoint or the wrong boundary — buying resistance or selling support. Only enter range trades near the opposite boundary where the risk-to-reward is favourable. Entering in the middle of the range gives a 1:1 risk-reward at best.

Trading every wick outside the boundary as a breakout

Wick penetrations of the range boundary are extremely common on XAUUSD and do not constitute a breakout. Only a candle body close outside the boundary — ideally on the H1 timeframe or higher — is a valid breakout signal. Wick-only breaks are usually stop hunts.

Failing to account for the prior trend direction

A Rectangle breakout in the direction of the prior trend has a far higher probability of success than a counter-trend breakout. Always identify whether the Rectangle is a continuation or reversal setup. Treat counter-trend breakouts with additional skepticism until confirmed with follow-through.

Setting the stop on the wrong side

For a bullish breakout trade, the stop goes below the range support -- not just below the breakout candle's low. For a bearish breakout, the stop goes above range resistance. Setting it too tight inside the breakout candle's range means you get stopped on normal pullback volatility before the measured move begins.

Rectangle Pattern Trade Checklist

Two or more clearly defined equal highs forming a horizontal resistance ceiling
Two or more clearly defined equal lows forming a horizontal support floor
Price oscillates between the two levels at least twice before the breakout
The range width (support to resistance) is clearly defined and consistent
Volume tends to contract inside the range and expand on the breakout
Wait for a candle close outside the range boundary — not just a wick pierce
Direction of breakout determines trade direction — the pattern is neutral until then
Stop-loss inside the range from breakout direction: bull break stops below support, bear break stops above resistance
Target = height of the rectangle projected from the breakout point
Check the prior trend — breakout in trend direction has the highest probability
Retest of broken boundary is common — use it as a second entry with a tighter stop
Avoid entering range trades near the breakout zone — risk-reward degrades quickly