Rectangle Pattern: How to Trade a Range Breakout

A rectangle pattern is a pause in which the price moves sideways between flat support and flat resistance, like a box on the chart. It can break either way. A close outside the box is the signal: trade in the direction of that close, put the stop back inside the range near its middle, and aim for the height of the range added to the breakout point.
TL;DR
- Look for at least three touches of one flat line and two of the other, with the price crossing the range from side to side.
- Trade the first close outside the range, with the stop near the middle of the box and the target one range height from the break.
- In the data of Thomas Bulkowski, a researcher who tested thousands of chart patterns on US stocks, rectangles with an upward breakout reached their target 78% to 79% of the time, and those with a downward breakout 54% to 55%.
What Is a Rectangle Pattern in Trading?
A rectangle is a range with clear edges. Buyers step in at the same low again and again, sellers take profit at the same high, and the price travels between the two lines until one side gives way. It is also called a trading range or a horizontal channel. Bulkowski splits it into rectangle tops, where the price enters the box from below after a rise, and rectangle bottoms, where it enters from above after a fall. The name tells where the pattern sits, and either kind can break in both directions.
A small rectangle after a sharp move often works as a continuation pattern: it is a flag with flat lines, and the breakout usually follows the earlier move. A wide rectangle that lasts weeks is closer to an ordinary sideways market, and the breakout direction is open.
A rectangle shows its direction only when the price closes outside the range
Schematic of a rectangle, no real prices, upside break shown. h is the height of the range.
Resistance Support Breakout h h
- Entry
- Stop loss
- Take profit
- Expected move
- Measured move h
- Flat resistance on top, flat support below: the price swings between them.
- The first close outside the range sets the direction.
- The target is h from the breakout; the stop sits back inside the range, near its middle.
RoboForex schematic of the pattern rules, not drawn from a real chart. roboforex.com/blog
Is a Rectangle Pattern Bullish or Bearish?
It can be either, and the close outside the box decides. Upward breaks were more common and more reliable in Bulkowski’s data: 63% of rectangle tops broke upward, and upward breakouts reached their target 78% of the time for tops and 79% for bottoms. Downward breakouts reached it 54% to 55% of the time. A bullish rectangle pattern is simply one that breaks up; a bearish rectangle pattern is one that breaks down.
How Do You Identify a Rectangle?
Four checks, from Bulkowski’s pages on rectangle tops and rectangle bottoms:
- Two flat lines. The highs stop near one price and the lows near another, so both lines run close to horizontal and parallel.
- Five touches. At least three touches of one line and two of the other, on separate peaks and valleys. Treat the count as a guide and allow a little flexibility.
- Price fills the box. The swings cross the range from side to side. Two peaks and a dip with empty space around them are a double top, which has rules of its own.
- Volume falls. On stocks, volume declined inside the rectangle in 70% of Bulkowski’s cases. Currency pairs and CFDs show tick volume, so rely on the candle close there.

How Do You Trade a Rectangle Breakout?
The card in the chart patterns cheat sheet trades the breakout:
Price bounces between flat support and flat resistance. It can break either way; an upside break is shown.
- Forms after
- A trend or a sideways market
- Entry
- Trade in the direction of the first close outside the range.
- Stop loss
- Back inside the range, near its middle.
- Take profit
- Height of the range, projected from the break.
- Warning and failure
- A close back inside the range is a warning. Beyond the opposite side the pattern has failed.
- Draw both lines and measure hDraw the horizontal line through the highs and the one through the lows. h is the height of the range, from resistance to support.
- Trade the first close outside the rangeBuy after a candle closes above resistance or sell after one closes below support. A wick that pokes through and closes back inside the box is no signal.
- Put the stop near the middle of the rangeThe card places the stop back inside the box, near its middle. A close there means the breakout has failed. A stop just behind the broken line is tighter, but Bulkowski counted a return to the line in about two thirds of breakouts, so it is hit more often.
- Set the target and size the positionAdd h to the breakout point for a buy, or subtract it for a sell. Divide the money you accept to lose, for example 1% of the account, by the distance from entry to stop to get the position size.


Set the Breakout Order Before You Step Away
RoboForex MobileTrader lets you place buy stop and sell stop orders with a stop loss and take profit, so the trade waits for the price.
Rectangle Pattern Example: An Upward Breakout
The chart below shows a real rectangle on XAG/USD, H4, silver quoted in USD per ounce. The levels are read off the chart and rounded, so treat them as approximate.

- RangeAfter a strong rise the price swung between about 56.63 and 58.85 USD for about two weeks. The height of the range is 2.22 USD.
- False breakOne candle poked above the resistance and closed back inside the box. That is no signal.
- Entry at 59.26A later candle closed above the resistance, and the buy came at about 59.26.
- Stop loss at 57.35Back inside the range, just under its middle at 57.74. A close there means the breakout has failed and the price is back in the box. The risk is 1.91 USD per ounce.
- Take profit at 61.18The height of the range added to the resistance: 58.85 + 2.22 = 61.07, and the chart line sits at 61.18. It is 1.92 USD from the entry, about the same as the risk.
- ResultThe price reached the target within a few candles, dipped back towards the entry and then kept rising.
- Risk: 59.26 − 57.35 = 1.91 USD per ounce.
- Reward: 61.18 − 59.26 = 1.92 USD per ounce.
- Reward to risk: 1.92 / 1.91 = 1 to 1.
- Position size for a 5,000 USD account and a 1% risk: 1% is 50 USD, and 50 / 1.91 = 26.18, rounded down to 26 ounces. To convert ounces into lots, divide by the contract size shown in the platform’s symbol specification.
- Loss at the stop: 26 × 1.91 = 49.66 USD, about 50. Gain at the target: 26 × 1.92 = 49.92 USD, about 50.
At 1 to 1 the trade breaks even if the target is reached in half of the cases, before costs, and Bulkowski’s rectangle tops with an upward breakout reached it 78% of the time. The stop near the middle of the box is what keeps the ratio at 1 to 1: it sits about half a range away from the line, and the target a full range.
Can You Trade Inside the Rectangle?
Yes, when the range is tall enough to leave room for profit after costs. Bulkowski describes the intrapattern trade: buy near support and sell near resistance, then reverse. The stop goes just beyond the line you traded from, slightly past the last local high or low, and the target is the opposite line. The risk is that this time the price does not turn and breaks out instead, so the stop is essential. In a narrow rectangle after a sharp move, waiting for the breakout in the direction of that move is usually the better choice.

What Happens After a False Breakout?
A close back inside the range after the breakout is the first warning. A move beyond the opposite side means the pattern has failed, and the stop near the middle has already closed the trade by then. Bulkowski adds two cautions from his charts: a breakout on one very tall candle or a gap is often followed by a retrace, and a breakout that comes late, after the price has hovered at the edge of the box for a long time, fails more often. In both cases a smaller position or a wait for the retest keeps the cost of a mistake low.
Rectangle vs Flag and Triangle
A rectangle has two flat lines. A bull flag has two parallel lines that slope against the earlier move, and it follows a sharp pole; a short rectangle after such a pole trades much like a flag. A symmetrical triangle has converging lines, so its swings shrink before the break, while a rectangle keeps the same width from start to finish. All three are traded on a close outside their lines.
Conclusion
A rectangle pattern gives a breakout trade with clear levels: the edges of the box set the entry, its middle sets the stop and its height sets the target. Wait for a close outside the range, check the reward to risk before the entry and size the position from the stop. Practise both the breakout and the trade inside the box on a demo account before you use real money.
FAQ
What is a rectangle pattern in trading?
It is a chart pattern where the price moves sideways between flat support and flat resistance. The first close outside the range shows the direction, and the height of the range gives the target.
Is a rectangle pattern bullish or bearish?
It can break either way. In Thomas Bulkowski’s data on US stocks, 63% of rectangle tops broke upward, and upward breakouts reached their target 78% to 79% of the time against 54% to 55% for downward ones.
Where do you put the stop loss in a rectangle trade?
The cheat sheet card puts it back inside the range, near its middle. A close there means the breakout has failed. A stop just behind the broken line is tighter but is reached more often, because the price returns to the line after many breakouts.
How do you calculate the rectangle pattern target?
Measure the height of the range from resistance to support and add it to the breakout point for a buy, or subtract it for a sell. With resistance at 58.85 and support at 56.63, the height is 2.22 and the target after an upward break is about 61.07.
What is the difference between a rectangle and a flag?
A rectangle has two flat lines; a flag has two parallel lines that slope against the earlier move and forms right after a sharp pole. A short rectangle after a strong move often behaves like a flag and breaks in the direction of that move.
- Bull Flag Pattern: a short pause after a sharp rise, with the lines sloping down.
- Megaphone Pattern: a range whose swings keep getting wider.
- Symmetrical Triangle Pattern: a range whose swings shrink before the break.
Any information provided in articles on this website is based solely on the personal opinions of the authors. These articles should not be construed as trading recommendations or a call to action. The authors and RoboForex accept no responsibility for the results of any trades made on the basis of these recommendations and reviews. Past performance is not indicative of future results. Trading stocks and CFDs involves a high risk of capital loss.