Article

What Defines a Rectangle Pattern and How Can You Trade It?

A balance between buyers and sellers is reflected in a rectangle pattern, where price trades sideways between flat support and resistance levels. This chart formation usually signals a continuation of the prevailing trend: an uptrend produces a bullish rectangle, while a downtrend produces a bearish rectangle. To trade a rectangle pattern, traders use 2 main strategies: 1) range trading involves buying near support and selling near resistance; 2) breakout trading involves entering a trade once a candle closes outside the rectangle. For a breakout trade, the price target is calculated by projecting the rectangle’s vertical height from the breakout point.

Balanced buying and selling pressure keeps price moving sideways in a rectangle pattern, bounded by horizontal support and resistance. Usually classified as a continuation pattern, a rectangle is bullish when it develops within an uptrend and bearish when it develops within a downtrend.

There are 2 main approaches to trading rectangles: 1) range trading, involving purchases near support and sales near resistance, and 2) breakout trading, involving entry after a candle closes beyond the rectangle. For breakout trades, traders project the rectangle’s vertical height from the breakout point to establish a price target.

How Does a Rectangle Pattern Work in Trading?

When price remains between parallel, horizontal support and resistance levels for a period, it creates the technical chart formation known as a rectangle pattern. Sellers drive price lower whenever it reaches resistance, while buyers lift it whenever it reaches support.

Successive tests of these boundaries outline a rectangle on the chart, giving rise to alternative names such as trading range, consolidation zone and box pattern. The formation reflects indecision in the market. With buyers and sellers broadly matched, neither can force price beyond the range until one side gains control and a candle closes outside it, producing a breakout.

Among the classical price formations in technical analysis, the rectangle was described by Richard W. Schabacker and subsequently by Robert D. Edwards and John Magee. It appears across forex, stock, index and commodity charts, on timeframes ranging from intraday to weekly.

Which Features Identify a Rectangle Chart Pattern?

Before trading a rectangle’s range, traders look for 5 identifying features: 1) an earlier uptrend or downtrend, 2) at least 2 swing highs around the same price to establish resistance, 3) at least 2 swing lows around the same price to establish support, 4) horizontal, parallel support and resistance lines, and 5) trading volume that generally falls as price remains within the rectangle.

Identifying featureHow it appears on the chart
1) Preceding trendAn upward or downward trend preceding the rectangle
2) Resistance boundaryAt least 2 swing highs near the same price level
3) Support boundaryAt least 2 swing lows near the same price level
4) Formation shapeHorizontal support and resistance lines running parallel
5) Trading volumeGenerally falls as price remains within the rectangle

Swing highs and lows need not occur at identical prices; reasonably close levels are sufficient. Alternating tests of resistance and support also help make the formation recognisable. Support/Resistance (S/R) levels revisited repeatedly by price are known as major support and resistance levels. Traders mark them with horizontal lines rather than the diagonal trendlines associated with triangles and channels.

Rectangles may persist for a few weeks or extend over several months, with longer formations generally producing stronger breakouts. On daily charts, a horizontal range lasting less than about 3 weeks, preceded by a trend and followed by a breakout in that same direction, is generally classified as a flag instead. The distinctions between rectangle and flag patterns are examined in detail later in this article.

Trading volume typically contracts as price fluctuates within a rectangle. If volume is uneven instead, some traders assess activity during advances towards resistance against activity during declines towards support. Heavier volume on either side can offer a clue to the eventual breakout direction.

Key Point: Until both support and resistance have been touched at least 2 times, the rectangle remains unconfirmed. A breakout from an unconfirmed range is much more likely to become a fakeout, also called a fake breakout.

How Do Bullish and Bearish Rectangles Differ?

The preceding trend determines which of the 2 rectangle types has formed: 1) a bullish rectangle develops within an uptrend, while 2) a bearish rectangle develops within a downtrend.

When Does a Bullish Rectangle Pattern Form?

A bullish rectangle pattern develops as price consolidates in a horizontal range within an uptrend, with buyers pausing before another advance. An upward breakout is expected by traders, but confirmation requires a candle to close above resistance.

Trading a bullish rectangle involves 3 components: 1) placing a buy order above resistance, 2) setting a stop-loss below support or at the rectangle’s midpoint, and 3) calculating the price target by adding the rectangle’s vertical height to resistance.

When Does a Bearish Rectangle Pattern Form?

A bearish rectangle pattern develops as price consolidates in a horizontal range within a downtrend, with sellers pausing before another decline. Traders anticipate a downward breakout; a candle closing below support confirms the bearish rectangle.

Trading a bearish rectangle involves 3 components: 1) placing a sell order below support, 2) setting a stop-loss above resistance or at the rectangle’s midpoint, and 3) calculating the price target by subtracting the rectangle’s vertical height from support.

Does a Rectangle Signal Continuation or Reversal?

Most often, a rectangle serves as a continuation pattern, with price tending to break out in the direction of the preceding trend. It may instead become a reversal pattern if it develops towards the end of a prolonged trend and price breaks in the opposite direction.

Until a breakout occurs, the rectangle carries no directional bias. Buyers within the range may be adding long positions (accumulation), while sellers may be disposing of positions (distribution). The eventual breakout reveals which group has prevailed.

Continuation is more likely when the preceding trend is just a few months old, and less likely when that trend is well advanced. Since a breakout can occur either way, traders wait until a candle closes beyond the rectangle before deciding the direction of their trade.

Which Strategies Are Used to Trade Rectangle Patterns?

The 2 principal methods are: 1) trading the range within the rectangle, and 2) trading the breakout, using the rectangle’s vertical height projected from the breakout point to determine a price target.

1) How Is the Rectangle’s Internal Range Traded?

Range trading within a rectangle involves buying close to support and selling close to resistance for as long as the boundaries hold. Some traders also initiate short positions near resistance and cover them near support. A stop-loss just beyond the rectangle is necessary for every range trade: all rectangles eventually end in a breakout, which can move directly against a position taken within the range.

This approach has 2 additional risks: 1) spread costs absorb a substantial portion of a narrow range, and 2) fakeouts or wider spreads around news releases can trigger stop-losses placed just outside the rectangle. In a 30-pip rectangle, a 1.5-pip spread consumes about 5% of the support-to-resistance move, even before commission.

2) How Is a Rectangle Breakout Traded?

Breakout trading involves entering in the breakout direction only after a candle has closed beyond the rectangle. This is the more widely used approach to rectangle trading, as the price move following a confirmed breakout is often at least equal to the formation’s vertical height.

What Are the Steps for Trading a Rectangle Breakout?

There are 5 stages to a rectangle breakout trade: 1) verify the breakout, 2) enter at the breakout or retest, 3) position the stop-loss, 4) apply the measuring principle to establish a price target, and 5) manage the position if it moves beyond that target.

Step 1: How Is the Rectangle Breakout Confirmed?

Confirmation comes from a candle closing beyond the rectangle: above resistance for an upward breakout or below support for a downward breakout. If a candle briefly extends outside but finishes back within the range, it does not constitute a genuine breakout.

An alternative confirmation method is to delay entry until 3 candles have closed outside the rectangle. A third approach adds confirmation by considering only breakout candles accompanied by increased volume. The final method uses the relative strength index (RSI): a move above 50 during an upward breakout indicates that momentum is aligned with the breakout.

A fakeout occurs when a candle closes beyond the range but price subsequently moves back inside, trapping traders who entered at the breakout. Since spot forex lacks central exchange volume, MT4 and MT5 display tick volume, a count of price changes within each candle. Forex traders therefore use tick volume to assess breakout activity.

Trading Tip: Use tick volume to assess breakouts on MT4 and MT5. If a breakout candle’s tick volume is below the recent average, regard it as a likely fakeout.

Step 2: Should Entry Be at the Breakout or Retest?

A rectangle breakout offers 1 of 2 entry routes: 1) the breakout candle’s close, or 2) a retest, where price revisits the breached level after breaking out. Resistance that has been breached often becomes support following an upward breakout; support that has been breached often becomes resistance following a downward breakout.

Waiting for a retest offers a more favourable entry price and a tighter stop-loss. However, price may never revisit the breached level, leaving some trades untaken. Alternatively, traders may set a buy stop order a few pips above resistance or a sell stop order a few pips below support. These orders execute as soon as price leaves the rectangle, but they also execute during fakeouts and may incur slippage around news releases.

Step 3: Where Should the Rectangle Trade’s Stop-Loss Go?

For rectangle breakout trades, there are 3 common stop-loss locations: 1) a few pips back across the breakout level, just within the rectangle, 2) the rectangle’s midpoint, equally distant from support and resistance, and 3) a safer location a few pips beyond the rectangle’s opposite boundary.

Bringing the stop-loss closer to entry permits a larger position for the same account risk. The trade-off is that retests and ordinary price fluctuations can trigger these tighter stops.

A safer stop-loss placed beyond the opposite support/resistance boundary withstands retests and normal swings, but requires a smaller position to preserve the same risk-reward ratio. Price can gap past any stop-loss over weekends or around news releases, meaning a rectangle trade may close at a less favourable price than the specified stop-loss level.

Step 4: How Does the Measuring Principle Set the Price Target?

To apply the measuring principle, first calculate the rectangle’s vertical height, or the distance from support to resistance. Then project that distance from the breakout point along the breakout direction. Add the height to resistance for an upward breakout target; subtract it from support for a downward breakout target.

For instance, support of 1.1000 and resistance of 1.1050 create a rectangle 50 pips high. Its upward breakout target is therefore 1.1100, while its downward breakout target is 1.0950.

The measuring principle provides a minimum price target. Price frequently travels further, particularly when the rectangle has developed over several months. It can also fail to reach the target, since this principle indicates probability rather than guaranteeing an outcome.

Step 5: How Can the Trade Be Managed Beyond Its Target?

To retain exposure after the price target has been reached, traders commonly choose between 2 methods: 1) book part of the profit at the target and leave the remaining position open, or 2) trail the stop-loss behind successive swing highs and lows.

For long positions, traders remain invested as long as higher lows continue, exiting once a lower high and a lower low appear. For short positions, they remain invested as long as lower highs continue, exiting once a higher high and a higher low appear.

What Does a Rectangle Pattern Trade Look Like?

An unexpected upward breakout turned the rectangle on this EUR/USD 4-hour chart into a reversal formation. It developed through July, following a decline from about 1.1800 in May to about 1.1330 in late June. Although traders had anticipated a bearish rectangle and a downward breakout, price moved higher instead.

EUR/USD 4-hour chart showing a bullish rectangle pattern with support at 1.1378, an upside breakout above 1.1450 resistance and a price target of 1.1519.

EUR/USD 4-hour chart: a rectangle bounded by 1.1378 and 1.1450, an upward breakout at July-end, and a 1.1519 price target.

Before the lasting breakout, the EUR/USD rectangle generated 2 fakeouts: 1) several candles closed marginally above resistance in mid-July before dropping back into the range, and 2) candles closed below support near 1.1350 in July’s final week before rebounding into the range. Traders positioned for continuation of the downtrend were trapped by the downward fakeout.

At July-end, a large candle crossed resistance at 1.1450 and closed above it. This was accompanied by some of the month’s tallest tick volume bars, while the RSI (14) advanced from below 50 to above 70. By breaking against the May and June downtrend, the EUR/USD rectangle became a reversal pattern.

On the chart, the rectangle’s vertical height is about 70 pips (69.6 pips). The target calculation is therefore 1.1450 + 69.6 pips = 1.1519, labelled Take Profit on the chart. Within days of the breakout, price achieved that target, then eased towards 1.1455 to retest the breached resistance. By late August it had risen to about 1.1710, about 260 pips above resistance and more than 3 times the rectangle’s vertical height.

The following table evaluates the 3 stop-loss options for this EUR/USD trade. It assumes entry at 1.1460 when the breakout candle closes, a $10,000 account risking 1% ($100) on each trade, and a $10 pip value per standard lot.

Stop-loss locationStop-loss priceRisk in pipsReward at the targetRisk-to-reward ratioPosition sizing
1) Slightly within the rectangle1.144020 pips59 pips1:3.00.50 lots
2) At the rectangle’s midpoint1.141446 pips59 pips1:1.30.21 lots
3) Safer placement below support1.136892 pips59 pips1:0.60.10 lots

Placing the stop-loss just within the rectangle produces the most favourable risk-reward ratio, although a deeper resistance retest would have stopped out the trade at a loss. With the safer stop below support, the pips at risk exceed the reward available at the price target. That setup therefore works only if price exceeds the minimum target, as EUR/USD did in August.

From resistance, the midpoint stop is about 36 pips away, compared with a 70-pip price target, giving a risk-reward ratio of about 1:2. Entry at the breakout candle’s close, 10 pips higher, reduces the ratio to about 1:1.3. The entry price therefore influences risk-reward as much as the stop-loss location.

Before committing real money, traders can use a TMGM demo account on MT4 or MT5 to practise identifying and drawing rectangles and evaluate these 3 stop-loss options. CFD trading involves significant risk and is not suitable for all investors. You could lose more than your initial deposit.

How Does a Rectangle Differ From a Channel, Triangle or Flag?

Price fluctuates between 2 boundary lines in rectangles, channels, symmetrical triangles and flags alike. What distinguishes these 4 patterns is the slope of those boundaries and the time taken for each formation to develop.

Chart formationBoundary structureMarket indicationUsual duration
RectangleHorizontal, parallel linesSideways consolidation with no directional bias before breakoutSeveral weeks to several months
ChannelParallel lines inclined upwards or downwardsAn upward or downward trendVariable
Symmetrical triangleLines drawing together towards an apexA progressively tighter consolidation ahead of breakoutVariable
FlagShort, parallel lines, frequently inclined against the trendA short interruption within a strong trendGenerally under 3 weeks

A channel indicates a trend because its parallel boundaries slope upwards or downwards. By contrast, horizontal rectangle boundaries indicate a sideways range. A symmetrical triangle most closely resembles a rectangle: each represents consolidation and remains neutral ahead of a breakout. Their boundaries differ, however, with triangle lines converging and rectangle lines remaining horizontal and parallel.

A flag resembles a compact rectangle, frequently tilted against the prevailing trend. On daily charts, it generally lasts less than 3 weeks. Traders classify the same horizontal range as a rectangle when it extends beyond about 3 weeks.

Rectangle Pattern: Common Questions

How Much Time Does a Rectangle Need to Develop?

Formation generally takes a few weeks to several months, and rectangles that persist longer tend to generate stronger breakouts. A horizontal range lasting less than about 3 weeks on a daily chart is generally termed a flag rather than a rectangle.

How Does Price Behave Following a Rectangle Breakout?

Price frequently revisits the breached boundary following a rectangle breakout, then travels in the breakout direction by at least the rectangle’s vertical height. However, some breakouts become fakeouts as price re-enters the range, which is why traders always use a stop-loss.

Are Rectangle Patterns Tradable in Forex?

Yes. Forex charts display rectangles across every timeframe, and forex traders apply the same 2 approaches used in stocks: 1) trading the range and 2) trading the breakout. With no central exchange volume available for spot forex, they assess breakout activity through tick volume on MT4 and MT5.

Does a Rectangle Indicate a Bullish or Bearish Move?

No directional bias is established until the rectangle breaks out. Within an uptrend, a bullish rectangle generally breaks above resistance; within a downtrend, a bearish rectangle generally breaks below support.

How Does a Trading Range Compare With a Rectangle Pattern?

Both terms refer to identical price behaviour: sideways movement bounded by horizontal support and resistance. A trading range is termed a rectangle pattern once price has touched support more than a few times and resistance at least 2 times.

Trade Smarter Today

$10,000 Demo Funds
100+ Markets
Low Fees, Tight Spreads
Trading App
TMGM
Trade The World
The TMGM Academy and Market Insights Team is a collective of financial analysts and trading strategists. With access to real-time institutional data and over a decade of market operation, the team provides fact-based analysis on forex, gold, cryptocurrencies, stocks, commodities (like oil), and indices. Our content is strictly regulated, as outlined in our editorial policy page. TMGM adheres to ASIC and VFSC guidelines.
Join Over 1,000,000 clients on our award-winning trading platform
1
Apply for a Live
Account
2
Fund Your
Account
3
Start Trading
Instantly
Open Account