Chart patternNeutral

Rectangle Pattern: How to Trade the Range and Its Breakout

Flat support, flat resistance and a close outside the box: how to trade both breakouts, and how they compared with the same trade on random dates across our markets.

· Founder of PatternsWizard
Updated Statistics updated 14 min read
TPSLEntryBearish breakout

How we tested this pattern

Sample
5,367 occurrences on 6 markets (crypto, forex, US stocks, ETFs, indices and commodities), 1973 to 2026.
Detection
Found by code, never picked by hand: every match of the rule on full price history, winners and losers alike.Four to six alternating swing points (four need a fifth touch of a line): both lines flat (each moves less than 15% of the height) and parallel (within 20%). Every swing point lies within 10% of the pattern height of its line, no close strays more than 10% outside the lines while the pattern forms, the pattern is at least 3 ATR tall with at least 3 bars between swing points, and the breakout comes within half the pattern duration after the last point. The standard grade, which accepts most counted occurrences, adds a looser pass: at least 2 ATR tall, swing points within 15% of their lines.
Benchmark
Each occurrence is compared with the same assets on random bars: the move 10 bars later, and a 2:1 reward-to-risk trade.
Checks
Block bootstrap and a correction for the thousands of tests we run, plus a random-walk self-test that the bench passes: on random prices, no pattern should win.
Updated
Data updated November 5, 2026, code version c2a1683f. Read the methodology · Raw data (JSON)

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

One email with the PDF, then a note when a result changes. Unsubscribe anytime. Privacy.

At a glance: what textbooks say, what we measured
Direction
Neutral
Occurrences tested
5,367 occurrences, all markets, daily
Upward breakouts: Textbook: price should rise after it
Too close to call · −0.07% vs the market, 10 bars
Downward breakouts: Textbook: price should fall after it
Too close to call · +0.30% vs the market, 10 bars
Textbook: target reached most of the time
58.6% vs 58.5% on random dates, all markets, daily, upward breakouts
Where it did best
Crypto, 1-hour, downward breakouts: +0.08 R 2:1 trade vs random dates, not proven
Verdict
Upward breakouts, 10-bar move: No clear edge2:1 trade: No clear edge
Downward breakouts, 10-bar move: No clear edge2:1 trade: No clear edge

See the statistics

On this page
  1. What is the rectangle chart pattern?
  2. How to identify a rectangle pattern on a chart
  3. Bullish vs. bearish rectangle patterns
  4. How to trade the rectangle pattern effectively
  5. How to calculate price targets and stop losses
  6. Common mistakes to avoid when trading rectangles
  7. Rectangle pattern vs. other technical patterns
  8. Reliability and success rate of rectangle patterns
  9. Real examples from our test bench
  10. Tools to find and draw rectangles
  11. Frequently asked questions about the rectangle pattern
  12. Summary of key points

The rectangle pattern is a chart pattern in which price moves sideways between two horizontal lines: resistance across similar highs and support across similar lows, with at least two touches on one line and three on the other. It ends when price closes outside the box, and traders follow the direction of the breakout.

This guide explains how to identify a rectangle, how to trade the breakout with an entry, a stop loss and a price target, and what happened next. Our test bench detected 2,981 upward and 2,386 downward rectangle breakouts on daily charts of stocks, ETFs, indices, commodities, forex and crypto, plus 8,549 on hourly charts, and compared each one with the same setup on random dates.

What is the rectangle chart pattern?

A rectangle pattern is a trading range drawn on a price chart. Buyers defend a support level, sellers defend a resistance level, and price bounces between the two until one side gives way. Traders also call it a consolidation zone or a congestion area. It belongs to the family of classical chart patterns described by Edwards and Magee in Technical Analysis of Stock Trends (1948), next to triangles, flags and the double top.

The pattern consists of at least five alternating touches of two levels, two on one boundary and three on the other, denoting a balance between supply and demand. Inside the pattern the price can bounce for weeks, and the pattern is considered complete only once a candle closes beyond one of the two lines.

The rectangle pattern is neutral while it forms: nothing in the shape tells you which way it will break. Textbooks call it a continuation pattern when it forms during a trend and price leaves it in the direction of the current trend, and a reversal pattern when price leaves it on the opposite side. Our bench does not require a prior trend: it records every rectangle pattern and publishes the upward and downward breakouts separately.

TPSLEntryBullish breakout
Bullish setup on the median shape of 721 daily occurrences drawn at random from all markets, with entry, stop loss (SL) and 2:1 target (TP)

The chart above is not drawn by hand. It is the median shape of the rectangle patterns our bench detected on daily charts across all markets with an upward breakout: three lows and two highs at nearly the same levels, then a close above the top.

How to identify a rectangle pattern on a chart

To identify a rectangle pattern, look for a sideways market where price touches the same high and the same low several times. Look left on the chart as well: previous highs and lows can mark where a range will start. Our bench uses a rule a computer can apply without judgment: four to six alternating swing points (four need a fifth touch of a line), each one a local extreme, with both horizontal lines flat.

123456
  1. First touch of the top
  2. First touch of the bottomswing points alternate between the two lines
  3. Second touch of the top
  4. Second touch of the bottom
  5. Third touch of the topfifth swing point, both lines flat
  6. Breakout
Median shape of 728 daily occurrences drawn at random from all markets (this direction: 45% of all occurrences). Kept: setups with regular legs when enough exist, with the most common number of swing points and no two swing points on the same bar.

Defining support and resistance levels

Draw one horizontal line at the price level of the highs and another across the lows. The highs do not need to be identical: on our bench, a line counts as flat if it moves less than 15% of the height of the range across the pattern, and each swing point must sit within 10% of that height from its line on a textbook pattern, 15% on the looser standard grade. A swing point only counts once price has moved away from it by at least twice the average true range (ATR), so small price movements do not create false touches. The minimum is two touches on one side and three on the other: five touches in all, and the fifth does not have to be a confirmed swing point.

The pattern is completed when a candle closes outside the rectangle. An intraday attempt above resistance that ends back inside is a failed breakout, not a signal. On daily charts, only 59.0% of the rectangles we found produced a valid breakout within the time our rule allows; on hourly charts, 48.7%. A large share of the boxes our bench found never gave a clean signal.

Analyzing volume during the consolidation phase

Classical analysis expects volume to shrink inside the range and to increase on the breakout. We measured the second half of that idea on hourly charts: upward breakouts on volume above 1.5 times the average reached the 2:1 target 22.1% of the time, against 23.6% on normal volume. High volume did not improve the result. Treat volume as information, not as a filter that changes the odds.

Bullish vs. bearish rectangle patterns

The two versions have the same shape. Only the trend around the box and the direction of the breakout are different.

TPSLEntryBearish breakout
Bearish setup on the median shape of 728 daily occurrences drawn at random from all markets, with entry, stop loss (SL) and 2:1 target (TP)

Understanding the bullish rectangle continuation

A bullish rectangle pattern forms during an uptrend: price pauses, moves sideways, then closes above resistance. The breakout indicates that buyers have absorbed the supply at the top of the range. The classic setup buys that close, with a stop under the bottom line.

Understanding the bearish rectangle continuation

A bearish rectangle pattern forms during a downtrend and ends with a fall below support, sometimes called a breakdown. The setup sells that close, with a stop above the top line. On our data, downward breakouts did worse than upward ones in absolute terms, but random dates on the same assets did just as badly: shorting stocks loses on average because stocks rise over time, with or without a pattern.

How to trade the rectangle pattern effectively

There are two ways to trade a rectangle pattern: trade the breakout, or trade the range while it lasts. Both need a stop loss defined before the entry.

TPSLEntryBearish breakout
Entry
Close outside the lines, in the direction of the breakout
Stop loss (SL)
On the opposite line, at its level on the breakout bar
Target (TP)
Twice the risk (2:1)
The trade our bench tests, drawn on the typical shape. Both breakout directions are traded; this drawing shows downward breakouts. Median shape of 728 daily occurrences drawn at random from all markets (this direction: 45% of all occurrences). Kept: setups with regular legs when enough exist, with the most common number of swing points and no two swing points on the same bar.

A clean case from our bench: US stocksChosen on its shape alone, never on the outcome. Stock prices are adjusted for splits and dividends, so they can differ from the prices quoted at the time.

PatternAfter193.9119.0+10 barsTPSLEntry2021-10
TextbookAMAT December 27, 2021Daily chart8.1% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R

Setting up your breakout entry

Retest entries (not tested)

A more patient entry waits for price to come back to the broken line and enters on the retest, when old resistance acts as support. Our data shows why this happens: on hourly charts, the bar after an upward breakout ended higher only 44.6% of the time, against 48.2% for random bars. Within 20 bars, price came back to the breakout level after 71.2% of these hourly upward breakouts. A retest entry gives a closer stop, but some breakouts never come back and the move is missed. We have not tested a retest entry: the choice is a matter of preference.

Range trading strategies within the boundaries

Before the breakout, a range trade buys near support and sells near resistance, with a stop just beyond the box. This works only while the range remains intact, and it is the opposite bet of the breakout trade. Keep the size small: the move that ends a range trader is the breakout itself.

How to calculate price targets and stop losses

Measuring the height of the rectangle

The measured move takes the height of the pattern (resistance minus support) and projects it from the breakout point. A range between 20 and 24 that breaks upward gives an objective at 28. This is a rough guide, not a promise: the move after the breakout can exceed it or fall short. Our bench uses twice the risk instead, which is farther away: the stop sits at the opposite side of the pattern, so the risk is close to the height of the box and the target about twice that height.

Placing stop loss orders to manage risk

The classic stop is beyond the opposite side of the box: below support for a long position, above resistance for a short. Given that distance, the stop is wide, so size each position on it: the maximum loss is then 1 R by design. A tighter stop at the middle point of the range cuts that distance in half, accepting more stopped trades. On daily charts, losing trades hit our stop after a median of 31 bars on upward breakouts and 28 bars on downward ones, and of the upward trades that hit their stop, 14.3% had first been up 1 R.

Common mistakes to avoid when trading rectangles

  • Entering on an intraday break before the candle has closed beyond the box. Our bench requires a close beyond the line, whatever the color of the candle.
  • Drawing a rectangle on fewer than five touches, or on lines that slope: with sloping lines it is a channel or a triangle.
  • Assuming the breakout will follow the prior trend. On daily charts, the break followed the prior trend in fewer than half the cases: after a rise, 1,429 rectangles broke up and 1,300 broke down; after a decline, 1,084 broke down and 1,544 broke up. The side of the break is no signal by itself.
  • Using a stop inside the range that is too tight to survive the step back after the breakout described in the retest section.
  • Choosing tall rectangles for the bigger move: on hourly charts, tall ones reached the 2:1 objective less often (12.9% for downward breakouts, against 24.2% for short ones), because the stop and the target are farther away.

Rectangle pattern vs. other technical patterns

Differences between rectangles and flags

A flag is a small range that slopes against a sharp move, called the pole. A rectangle is flat and needs no pole. On daily charts, the bull flag reached its 2:1 objective 31.8% of the time against 33.7% on random dates: like the rectangle, no clear edge. The handle of a cup and handle can also look like a small rectangle.

Rectangles versus channels and triangles

A channel has two parallel lines that slope up or down; a rectangle has two flat ones. A symmetrical triangle has converging lines, an ascending triangle has a flat top and rising lows, and a rising wedge has two rising lines that converge. On daily charts, the ascending triangle with an upward breakout reached its objective 33.0% of the time against 33.6% on random dates. A rectangle with three tops or three bottoms looks like a triple top or a triple bottom: the name depends on the trend before it and on the side that breaks.

Reliability and success rate of rectangle patterns

The rectangle pattern is not reliable on its own: on every market and timeframe we tested, the average result per trade of the breakout trade did not differ from the same trade on random dates by a margin that survives our correction. The best lead, the 10-bar move after downward breakouts on hourly charts, passes a simple test but not our correction. Here are the numbers.

21.0%vs 23.1% at random

On upward breakouts: hit the 2:1 target, compared with the same trade on random dates.

Measured on 2,934 closed trades on 2,981 daily rectangle occurrences with upward breakouts across 1,314 assets. The same trade on random dates on the same assets is the honest baseline.

No clear edge
14.0%vs 13.2% at random

On downward breakouts: hit the 2:1 target, compared with the same trade on random dates.

Measured on 2,175 closed trades on 2,386 daily rectangle occurrences with downward breakouts across 1,260 assets. The same trade on random dates on the same assets is the honest baseline.

No clear edge

Rectangle against random bars on the same assets, by market, on daily candles. Bars of almost the same length mean no edge.

Moved the expected way 10 bars later, with upward breakoutsRectangleRandom bars
  • All markets
    All markets, Rectangle: 54.1%
    All markets, Random bars: 54.0%
  • Crypto
    Crypto, Rectangle: 52.5%
    Crypto, Random bars: 45.4%
  • US stocks
    US stocks, Rectangle: 53.3%
    US stocks, Random bars: 54.2%
  • ETFs
    ETFs, Rectangle: 70.6%
    ETFs, Random bars: 57.0%
  • Indices
    Indices, Rectangle: 70.7%
    Indices, Random bars: 57.4%
2:1 trade hit its target, with upward breakoutsRectangle tradeSame trade, random dates
  • All markets
    All markets, Rectangle trade: 21.0%
    All markets, Same trade, random dates: 23.1%
  • Crypto
    Crypto, Rectangle trade: 43.3%
    Crypto, Same trade, random dates: 31.3%
  • US stocks
    US stocks, Rectangle trade: 20.4%
    US stocks, Same trade, random dates: 22.7%
  • ETFs
    ETFs, Rectangle trade: 19.4%
    ETFs, Same trade, random dates: 24.7%
  • Indices
    Indices, Rectangle trade: 17.2%
    Indices, Same trade, random dates: 20.3%
Moved the expected way 10 bars later, with downward breakoutsRectangleRandom bars
  • All markets
    All markets, Rectangle: 47.6%
    All markets, Random bars: 46.1%
  • Crypto
    Crypto, Rectangle: 59.3%
    Crypto, Random bars: 55.8%
  • US stocks
    US stocks, Rectangle: 47.2%
    US stocks, Random bars: 45.8%
  • ETFs
    ETFs, Rectangle: 44.3%
    ETFs, Random bars: 42.9%
  • Indices
    Indices, Rectangle: 54.2%
    Indices, Random bars: 42.4%
2:1 trade hit its target, with downward breakoutsRectangle tradeSame trade, random dates
  • All markets
    All markets, Rectangle trade: 14.0%
    All markets, Same trade, random dates: 13.2%
  • Crypto
    Crypto, Rectangle trade: 12.8%
    Crypto, Same trade, random dates: 15.4%
  • US stocks
    US stocks, Rectangle trade: 13.6%
    US stocks, Same trade, random dates: 12.6%
  • ETFs
    ETFs, Rectangle trade: 23.4%
    ETFs, Same trade, random dates: 19.4%
  • Indices
    Indices, Rectangle trade: 8.5%
    Indices, Same trade, random dates: 21.8%
All statistics

Full results for the rectangle pattern, market by market

Every occurrence our rule finds on full price history, compared with what the same assets did on random bars. A pattern only earns an edge if it beats random entries after correcting for the thousands of tests we run.

Our verdict

Not a reliable signal on its own here. Use it as context, not as a trigger.

10-bar move No clear edge2:1 trade No clear edge

Downward breakouts (2,386 occurrences): 10-bar move No clear edge 2:1 trade No clear edge. Its figures are in the tables below.

Rectangle: 2,981 occurrences tested

Neutral pattern · All markets · Daily · Upward breakout · 1,314 assets · 1973-06 to 2026-10

Moved the way of the breakout after 10 bars
54.1%
vs 54.0% on random bars
Excess return vs its market, 10 bars
−0.07%
95% interval −0.31% to +0.20%
its market−3%+3%
2:1 trade hit the target
21.0%
vs 23.1% for the same trade on random dates
Average result per trade
+0.18 R
vs +0.22 R on random dates

What this means. No measurable difference from the rest of its market over the next 10 bars.

Timeline, upward breakout

Pattern length, first swing to breakout
59 days · middle half 37 to 114 · on 2,981 occurrences
Breakout, after the last swing
8 days · middle half 4 to 18 · on 2,981 occurrences
Time to the 2:1 target, when hit
51 days · middle half 29 to 72 · on 617 trades that hit it
Time to the stop, when hit
31 days · middle half 15 to 57 · on 1,164 trades that hit it
Time in the trade, all exits
73 days · middle half 30 to 100 · on 2,934 trades
Measured-move target reached, when hit
23 days · middle half 10 to 46 · on the occurrences that reached it
Pattern height projected from the breakout

Size and trade path, upward breakout

Pattern height
12.2% · middle half 8.1% to 18.5% · on 2,981 occurrences
Best open profit during the trade
0.87 R · middle half 0.34 R to 1.80 R · on 2,934 trades
Stopped trades that were first up 1 R
14.3% · on 1,164 stopped trades
Trades a stop moved to breakeven at +1 R would have closed flat instead of at a loss

Medians, each on the cases named on its line; "middle half" spans the 25th to 75th percentile; no value under 30 cases.

Timeline, downward breakout

Pattern length, first swing to breakout
53 days · middle half 36 to 100 · on 2,386 occurrences
Breakout, after the last swing
7 days · middle half 3 to 16 · on 2,386 occurrences
Time to the 2:1 target, when hit
36 days · middle half 19 to 63 · on 304 trades that hit it
Time to the stop, when hit
28 days · middle half 15 to 49 · on 1,188 trades that hit it
Time in the trade, all exits
50 days · middle half 22 to 100 · on 2,175 trades
Measured-move target reached, when hit
16 days · middle half 7 to 34 · on the occurrences that reached it
Pattern height projected from the breakout

Size and trade path, downward breakout

Pattern height
13.6% · middle half 8.7% to 23.2% · on 2,386 occurrences
Best open profit during the trade
0.61 R · middle half 0.25 R to 1.31 R · on 2,175 trades
Stopped trades that were first up 1 R
9.3% · on 1,188 stopped trades
Trades a stop moved to breakeven at +1 R would have closed flat instead of at a loss

Medians, each on the cases named on its line; "middle half" spans the 25th to 75th percentile; no value under 30 cases.

How we detect it. Four to six alternating swing points (four need a fifth touch of a line): both lines flat (each moves less than 15% of the height) and parallel (within 20%). Every swing point lies within 10% of the pattern height of its line, no close strays more than 10% outside the lines while the pattern forms, the pattern is at least 3 ATR tall with at least 3 bars between swing points, and the breakout comes within half the pattern duration after the last point. The standard grade, which accepts most counted occurrences, adds a looser pass: at least 2 ATR tall, swing points within 15% of their lines.

All measurements (40 rows)

10-bar move: did price go the expected way?

Figures in gray: fewer than 30 occurrences, not interpreted. Excess return is signed so that positive favors the pattern. The test uses the bootstrap’s standard error and the interval its percentiles: near the 0.05 line, or on a few extreme moves, an interval can leave out zero while the test does not pass, and the test decides. Stock data misses most delisted companies, a survivorship bias we have not sized, which can flatter stock rows.
MarketOccurrencesPatternRandom barsExcess10-bar move verdict
Crypto · 1-hour · Upward breakout3,53447.0%48.3%−0.14%No clear edge
Crypto · 1-hour · Downward breakout3,76451.2%50.8%+0.16%Promising
Forex · 1-hour · Upward breakout61650.3%50.6%+0.01%No clear edge
Forex · 1-hour · Downward breakout63546.8%49.3%−0.01%No clear edge
All markets · 1-hour · Upward breakout4,15047.5%48.6%−0.12%No clear edge
All markets · 1-hour · Downward breakout4,39950.6%50.6%+0.14%Promising
Crypto · 4-hour · Upward breakout77947.0%47.5%−0.34%No clear edge
Crypto · 4-hour · Downward breakout82856.2%52.3%+0.33%No clear edge
Forex · 4-hour · Upward breakout19349.7%50.6%−0.05%No clear edge
Forex · 4-hour · Downward breakout21244.1%49.6%−0.12%Weak, below chance
All markets · 4-hour · Upward breakout97247.6%48.1%−0.28%No clear edge
All markets · 4-hour · Downward breakout1,04053.7%51.7%+0.24%No clear edge
Crypto · Daily · Upward breakout9952.5%45.4%−0.08%No clear edge
Crypto · Daily · Downward breakout11159.3%55.8%+1.68%No clear edge
US stocks · Daily · Upward breakout2,66153.3%54.2%−0.11%No clear edge
US stocks · Daily · Downward breakout2,09947.2%45.8%+0.24%No clear edge
ETFs · Daily · Upward breakout10970.6%57.0%+0.41%No clear edge
ETFs · Daily · Downward breakout7944.3%42.9%+0.35%No clear edge
Indices · Daily · Upward breakout5870.7%57.4%+0.10%No clear edge
Indices · Daily · Downward breakout4854.2%42.4%+0.51%No clear edge
Forex · Daily · Upward breakout2825.0%50.4%−0.86%Not enough data
Forex · Daily · Downward breakout2944.8%49.4%+0.10%Not enough data
Commodities · Daily · Upward breakout2673.1%51.6%+2.70%Not enough data
Commodities · Daily · Downward breakout2035.0%47.5%−1.50%Not enough data
All markets · Daily · Upward breakout2,98154.1%54.0%−0.07%No clear edge
All markets · Daily · Downward breakout2,38647.6%46.1%+0.30%No clear edge
Crypto · Weekly · Upward breakout425.0%42.1%+8.76%Not enough data
Crypto · Weekly · Downward breakout1546.7%58.6%+5.78%Not enough data
US stocks · Weekly · Upward breakout51053.8%57.6%+1.24%No clear edge
US stocks · Weekly · Downward breakout27844.5%43.4%+0.56%No clear edge
ETFs · Weekly · Upward breakout2171.4%64.0%+0.04%Not enough data
ETFs · Weekly · Downward breakout1080.0%37.8%+1.24%Not enough data
Indices · Weekly · Upward breakout1369.2%60.7%+1.36%Not enough data
Indices · Weekly · Downward breakout616.7%36.5%−3.06%Not enough data
Forex · Weekly · Upward breakout650.0%53.5%+0.32%Not enough data
Forex · Weekly · Downward breakout650.0%55.9%+1.40%Not enough data
Commodities · Weekly · Upward breakout937.5%55.1%+0.04%Not enough data
Commodities · Weekly · Downward breakout1100.0%45.3%+10.82%Not enough data
All markets · Weekly · Upward breakout56354.3%57.7%+1.22%No clear edge
All markets · Weekly · Downward breakout31645.5%44.1%+0.82%No clear edge

2:1 trade: target hit and average result

R = initial risk of the trade. Entry at the close of the signal bar. Exit at the stop or the target, or at the open when a bar opens beyond either one; otherwise at the close after 100 bars. When one bar touches both the stop and the target, the loss is counted. No fees or slippage. n/a = not measured. Per trade: average result, against the same trade on random dates. Figures in gray: fewer than 30 closed trades, not interpreted.
MarketTradesTarget hitSame trade, random datesPer trade2:1 trade verdict
Crypto · 1-hour · Upward breakout3,52122.6%21.9%+0.05 R vs +0.01 RNo clear edge
Crypto · 1-hour · Downward breakout3,73819.5%17.7%+0.11 R vs +0.03 RNo clear edge
Forex · 1-hour · Upward breakout61513.3%14.8%+0.01 R vs −0.02 RNo clear edge
Forex · 1-hour · Downward breakout63213.1%13.1%−0.01 R vs −0.04 RNo clear edge
All markets · 1-hour · Upward breakout4,13621.2%20.9%+0.04 R vs +0.01 RNo clear edge
All markets · 1-hour · Downward breakout4,37018.6%17.0%+0.09 R vs +0.02 RNo clear edge
Crypto · 4-hour · Upward breakout77726.9%25.0%+0.13 R vs +0.06 RNo clear edge
Crypto · 4-hour · Downward breakout75816.9%15.3%+0.16 R vs +0.04 RNo clear edge
Forex · 4-hour · Upward breakout18813.8%15.0%+0.03 R vs −0.02 RNo clear edge
Forex · 4-hour · Downward breakout21012.4%15.5%−0.16 R vs −0.01 RNo clear edge
All markets · 4-hour · Upward breakout96524.4%23.1%+0.11 R vs +0.04 RNo clear edge
All markets · 4-hour · Downward breakout96815.9%15.4%+0.09 R vs +0.03 RNo clear edge
Crypto · Daily · Upward breakout9743.3%31.3%+0.44 R vs +0.12 RNo clear edge
Crypto · Daily · Downward breakout4712.8%15.4%+0.09 R vs +0.04 RNo clear edge
US stocks · Daily · Upward breakout2,61920.4%22.7%+0.16 R vs +0.22 RNo clear edge
US stocks · Daily · Downward breakout1,95613.6%12.6%−0.21 R vs −0.24 RNo clear edge
ETFs · Daily · Upward breakout10819.4%24.7%+0.36 R vs +0.40 RNo clear edge
ETFs · Daily · Downward breakout7723.4%19.4%0.00 R vs −0.08 RNo clear edge
Indices · Daily · Upward breakout5817.2%20.3%+0.35 R vs +0.26 RNo clear edge
Indices · Daily · Downward breakout478.5%21.8%−0.38 R vs −0.06 RNo clear edge
Forex · Daily · Upward breakout287.1%28.0%−0.36 R vs +0.18 RNot enough data
Forex · Daily · Downward breakout2821.4%20.2%+0.18 R vs +0.12 RNot enough data
Commodities · Daily · Upward breakout2437.5%17.7%+0.51 R vs +0.03 RNot enough data
Commodities · Daily · Downward breakout2020.0%15.0%+0.04 R vs −0.08 RNot enough data
All markets · Daily · Upward breakout2,93421.0%23.1%+0.18 R vs +0.22 RNo clear edge
All markets · Daily · Downward breakout2,17514.0%13.2%−0.19 R vs −0.22 RNo clear edge
Crypto · Weekly · Upward breakout425.0%50.0%−0.25 R vs +0.58 RNot enough data
Crypto · Weekly · Downward breakout0n/an/an/a vs n/aNot enough data
US stocks · Weekly · Upward breakout47133.1%35.7%+0.36 R vs +0.45 RNo clear edge
US stocks · Weekly · Downward breakout18210.4%11.5%−0.35 R vs −0.38 RNo clear edge
ETFs · Weekly · Upward breakout2035.0%30.4%+0.70 R vs +0.58 RNot enough data
ETFs · Weekly · Downward breakout933.3%11.1%+0.59 R vs −0.52 RNot enough data
Indices · Weekly · Upward breakout1241.7%29.2%+1.12 R vs +0.45 RNot enough data
Indices · Weekly · Downward breakout60.0%20.8%−1.00 R vs −0.29 RNot enough data
Forex · Weekly · Upward breakout540.0%23.3%+0.34 R vs +0.46 RNot enough data
Forex · Weekly · Downward breakout540.0%35.0%+0.69 R vs +0.67 RNot enough data
Commodities · Weekly · Upward breakout742.9%28.6%+0.49 R vs +0.05 RNot enough data
Commodities · Weekly · Downward breakout10.0%0.0%+1.20 R vs −0.49 RNot enough data
All markets · Weekly · Upward breakout51933.5%35.3%+0.39 R vs +0.45 RNo clear edge
All markets · Weekly · Downward breakout20311.8%12.3%−0.30 R vs −0.36 RNo clear edge

After the breakout

False start: the stop was hit before price moved half the pattern's height in the breakout direction, within twice the pattern's length. Random dates: the same entry, stop and length on the same asset at random dates. Throwback: price came back within a quarter of an average bar (ATR) of the breakout level, after at least one whole bar beyond it, within the pattern's length.
MarketOccurrencesFalse startsSame, random datesThrowbacks
Crypto · 1-hour · Upward breakout3,53428.3%31.5%71.1%
Crypto · 1-hour · Downward breakout3,76427.4%31.0%69.9%
Forex · 1-hour · Upward breakout61631.3%34.3%71.7%
Forex · 1-hour · Downward breakout63529.6%31.9%73.1%
All markets · 1-hour · Upward breakout4,15028.8%31.9%71.2%
All markets · 1-hour · Downward breakout4,39927.7%31.1%70.4%
Crypto · 4-hour · Upward breakout77927.0%30.3%71.6%
Crypto · 4-hour · Downward breakout82826.2%31.1%71.8%
Forex · 4-hour · Upward breakout19331.4%34.2%68.8%
Forex · 4-hour · Downward breakout21239.0%29.4%70.5%
All markets · 4-hour · Upward breakout97227.8%31.0%71.1%
All markets · 4-hour · Downward breakout1,04028.8%30.8%71.5%
Crypto · Daily · Upward breakout9919.8%29.8%74.2%
Crypto · Daily · Downward breakout11123.5%31.0%62.4%
US stocks · Daily · Upward breakout2,66126.9%25.7%73.4%
US stocks · Daily · Downward breakout2,09939.0%37.0%70.2%
ETFs · Daily · Upward breakout10919.0%21.6%74.5%
ETFs · Daily · Downward breakout7939.0%31.4%62.0%
Indices · Daily · Upward breakout5818.2%28.0%67.9%
Indices · Daily · Downward breakout4833.3%35.9%91.7%
Forex · Daily · Upward breakout2842.9%31.3%53.6%
Forex · Daily · Downward breakout2925.0%31.3%79.3%
Commodities · Daily · Upward breakout2633.3%38.1%75.0%
Commodities · Daily · Downward breakout2030.0%22.5%70.0%
All markets · Daily · Upward breakout2,98126.5%25.9%73.2%
All markets · Daily · Downward breakout2,38638.0%36.3%70.1%
Crypto · Weekly · Upward breakout40.0%20.8%0.0%
Crypto · Weekly · Downward breakout15100.0%45.8%50.0%
US stocks · Weekly · Upward breakout51027.0%23.6%66.5%
US stocks · Weekly · Downward breakout27836.7%44.8%63.9%
ETFs · Weekly · Upward breakout2121.1%19.4%70.0%
ETFs · Weekly · Downward breakout100.0%37.5%70.0%
Indices · Weekly · Upward breakout138.3%33.3%58.3%
Indices · Weekly · Downward breakout683.3%45.8%66.7%
Forex · Weekly · Upward breakout640.0%25.0%40.0%
Forex · Weekly · Downward breakout60.0%20.8%40.0%
Commodities · Weekly · Upward breakout942.9%33.3%75.0%
Commodities · Weekly · Downward breakout10.0%33.3%0.0%
All markets · Weekly · Upward breakout56326.6%23.8%66.1%
All markets · Weekly · Downward breakout31636.8%44.1%63.2%

Data updated November 5, 2026 · code version c2a1683f · Read the methodology. We measure every pattern on crypto and forex (1-hour, 4-hour, daily and weekly charts) and US stocks, ETFs, indices and commodities (daily and weekly charts). A market or timeframe from that list missing from the tables above had no occurrence.

What you often read

“A rectangle pattern breakout is a reliable trade signal.”

What our data shows

On 2,934 daily closed trades with upward breakouts, the 2:1 trade hit its target 21.0% of the time, against 23.1% for the same trade on random dates: no clear edge, since the average result per trade is not statistically significant.

On 2,175 daily closed trades with downward breakouts, the 2:1 trade hit its target 14.0% of the time, against 13.2% for the same trade on random dates: no clear edge, since the average result per trade is not statistically significant.

Table quoted in the text (verdicts and every market: see All measurements)
Breakout, market and timeframeBreakoutsMoved with the breakout 10 bars laterRandom barsClosed trades2:1 target hitSame setup, random datesExpectancy
Up, all markets, daily2,98154.1%54.0%2,93421.0%23.1%+0.18 R
Down, all markets, daily2,38647.6%46.1%2,17514.0%13.2%−0.19 R
Up, US stocks, daily2,66153.3%54.2%2,61920.4%22.7%+0.16 R
Up, ETFs, daily10970.6%57.0%10819.4%24.7%+0.36 R
Up, crypto, hourly3,53447.0%48.3%3,52122.6%21.9%+0.05 R
Down, crypto, hourly3,76451.2%50.8%3,73819.5%17.7%+0.11 R
Down, crypto, 4-hour82856.2%52.3%75816.9%15.3%+0.16 R
Up, forex, hourly61650.3%50.6%61513.3%14.8%+0.01 R
Up, all markets, weekly56354.3%57.7%51933.5%35.3%+0.39 R
Down, all markets, weekly31645.5%44.1%20311.8%12.3%−0.30 R

Read the table in pairs of columns. On daily charts, 54.1% of upward breakouts were higher 10 days later, against 54.0% for random days on the same assets. The 2:1 setup reached its target 21.0% of the time against 23.1% for the same entry, stop and objective on random dates, with an expected value of +0.18 R per trade before costs against +0.22 R. A positive expectancy that random dates match or beat is not an edge: it is the upward drift of stocks. Downward breakouts had an expectancy of −0.19 R, against −0.22 R for random dates. On daily crypto, only 47 of the 111 downward breakouts became closed trades: almost all the others were so tall that a 2:1 target would sit at or below a zero price, so no trade was opened. On daily upward breakouts, the maximum favorable move had a median of 0.87 R.

Upward breakouts on ETFs look like an exception at first: 70.6% were higher 10 days later against 57.0% for random days, an excess return of +0.41% (95% confidence interval −0.06% to +0.88%). Zero is inside that interval, so the gap does not pass even a simple test. It rests on 109 breakouts on 39 funds, and the average result per trade of the 2:1 setup itself (+0.36 R against +0.40 R on random dates) is no better than chance: the row reads No clear edge. Upward breakouts on indices showed a similar raw tendency (70.7% against 57.4%, for an average excess return of +0.10% over the rest of the market), with the same verdict, no clear edge. The closest thing to a lead is downward breakouts on hourly crypto: the 2:1 short reached its target 19.5% of the time against 17.7% on random dates, for +0.11 R against +0.03 R, rated No clear edge: the gap is within the margin of error. Their 10-bar move reads promising: an excess return of +0.16% over the rest of the market that passes a simple test, not our correction for multiple testing. That is a lead to test, not a system. On direction, daily downward breakouts, all markets together, are rated No clear edge: 47.6% were lower 10 days later against 46.1% for random days, an excess return of +0.30% (95% interval +0.01% to +0.61%), a gap too fragile to count: it does not hold in both halves of the history.

How often does the pattern occur?

The pattern appears rarely once both lines must be flat: one upward breakout every 2,844 daily bars and one downward breakout every 3,553 across all markets. On daily charts, winning trades took a median of 51 bars to reach the target on upward breakouts and 36 bars on downward ones.

Does the larger trend help?

On hourly charts, downward breakouts below the 200-period moving average had an expectancy of +0.12 R, against −0.01 R above it. This breakdown is descriptive and not corrected for the number of tests, so treat it as a hint to test, not as a rule.

Real examples from our test bench

The gallery in this section shows real rectangle patterns picked by our bench (best and worst results, textbook shapes, most recent, random draws), with their actual outcome. The cases written up below are on daily crypto charts.

Real occurrences from our test bench, each on its market's main timeframe. Crypto and US stock examples come from liquid assets only (the largest coins, the most traded stocks). Best and Worst are the best and worst 2:1 trade results, Textbook the cleanest shapes (chosen on geometry alone, never on the outcome), Most recent the latest detections among the assets the gallery draws from, Typical a random draw. Shaded area: the pattern. Dashed lines: entry, stop loss (SL) and 2:1 target (TP) of the tested trade. Dotted line: 10 bars after the signal. A result above +2 R or below −1 R means a bar opened past the target or the stop, and the trade was closed at that open. Stock prices are adjusted for splits and dividends, so they can differ from the prices quoted at the time. We left out 5 cards with a shape that does not read as the definition on this page. They still count in the statistics, and are not replaced: our bench picks a fixed number of cards per category.

Market
Examples
Crypto overallAcross 3,534 rectangle occurrences with upward breakouts on 1-hour charts (3,521 closed trades), the 2:1 trade hit its target 22.6% of the time, against 21.9% for the same trade on random dates. The average result per trade does not pass our significance test.No clear edgeAcross 3,764 rectangle occurrences with downward breakouts on 1-hour charts (3,738 closed trades), the 2:1 trade hit its target 19.5% of the time, against 17.7% for the same trade on random dates. The average result per trade does not pass our significance test.No clear edgeThe examples below are single cases, from both breakout sides.
PatternAfter4.392.20+10 barsTPSLEntry2021-05
Best tradeNEAR May 23, 20211-hour chart22.6% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter363.7250.0+10 barsTPSLEntry2018-08
Best tradeETH August 13, 20181-hour chart14.5% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter134.1100.2+10 barsTPSLEntry2024-08
Worst tradeAAVE August 30, 20241-hour chart10.4% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R
PatternAfter63.5232.00+10 barsTPSLEntry2021-04
Worst tradeDOT April 17, 20211-hour chart9.6% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R
PatternAfter1,8701,835+10 barsTPSLEntry2023-08
TextbookETH August 13, 20231-hour chart0.4% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R
PatternAfter60.2255.09+10 barsTPSLEntry2026-10
Most recentLTC October 27, 20261-hour chart2:1 trade: in progress
PatternAfter150.2122.9+10 barsTPSLEntry2026-10
Most recentAAVE October 27, 20261-hour chart2:1 trade: in progress
PatternAfter98.2089.58+10 barsTPSLEntry2024-07
TypicalAAVE July 16, 20241-hour chart0.9% against the expected direction after 10 bars2:1 trade: closed at +0.30 R, 100 bars after entry, past this chart
PatternAfter0.98500.8740+10 barsTPSLEntry2022-04
TypicalADA April 17, 20221-hour chart6.1% in the expected direction after 10 bars2:1 trade: target hit, +2.00 R
PatternAfter35.8332.12+10 barsTPSLEntry2021-12
TypicalFIL December 31, 20211-hour chart0.7% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R, 30 bars after entry, past this chart
Examples
US stocks overallAcross 2,661 daily rectangle occurrences with upward breakouts (2,619 closed trades), the 2:1 trade hit its target 20.4% of the time, against 22.7% for the same trade on random dates. The average result per trade does not pass our significance test.No clear edgeAcross 2,099 daily rectangle occurrences with downward breakouts (1,956 closed trades), the 2:1 trade hit its target 13.6% of the time, against 12.6% for the same trade on random dates. The average result per trade does not pass our significance test.No clear edgeThe examples below are single cases, from both breakout sides.
PatternAfter69.0754.92+10 barsTPSLEntry2018-02
Best tradeNKE April 4, 2018Daily chart3.2% against the expected direction after 10 bars2:1 trade: target hit, +2.14 R, 61 bars after entry, past this chart
PatternAfter51.6136.08+10 barsTPSLEntry2019-10
Best tradeORCL February 25, 2020Daily chart4.7% in the expected direction after 10 bars2:1 trade: target hit, +2.11 R
PatternAfter74.9746.57+10 barsTPSLEntry2019-03
Worst tradeCitigroup (C) October 21, 2019Daily chart5.4% in the expected direction after 10 bars2:1 trade: stopped out, −1.42 R, 95 bars after entry, past this chart
PatternAfter109.7985.35+10 barsTPSLEntry2020-102021-06
Worst tradeNKE March 25, 2021Daily chart5.3% against the expected direction after 10 bars2:1 trade: stopped out, −1.39 R, 64 bars after entry, past this chart
PatternAfter193.9119.0+10 barsTPSLEntry2021-10
TextbookAMAT December 27, 2021Daily chart8.1% against the expected direction after 10 bars2:1 trade: stopped out, −1.00 R
PatternAfter472.8342.5TPSLEntry2026-082026-10
Most recentTSLA October 26, 2026Daily chart2:1 trade: in progress
PatternAfter167.8139.3+10 barsTPSLEntry2026-06
Most recentPG October 8, 2026Daily chart2:1 trade: in progress
PatternAfter20.1013.60+10 barsTPSLEntry2003-12
TypicalAMD March 25, 2004Daily chart7.1% in the expected direction after 10 bars2:1 trade: stopped out, −1.00 R, 36 bars after entry, past this chart
PatternAfter16.5710.27+10 barsTPSLEntry2004-032004-09
TypicalAMAT July 6, 2004Daily chart4.2% in the expected direction after 10 bars2:1 trade: closed at +0.56 R, 100 bars after entry, past this chart

Case study: a breakout that reached its target

BNB/USDT traded between about 257 and 300 from early September to mid-October 2022, forming a rectangle with two highs (300 on September 12 and 298.2 on October 4) and three lows (258.6 on September 7, 256.7 on September 19 and 256.8 on October 13). The top line drawn through those highs had eased to about 296.2 by October 28, 2022, when price closed above it at 297.9: entry there, stop at 255.89, the bottom line that day, 2:1 objective at 381.93. It was hit on November 8, 2022, 11 sessions later, and BNB stood 13.1% higher 10 days after the breakout.

Case study: a breakout that failed

AVAX/USDT formed a rectangle between about 29.2 and 39.9 from mid-April to early May 2024. Its bottom line rose while its top line eased slightly: by May 20, 2024 the top line stood at about 39.82 and the bottom line at 31.34, and price closed above the top line at 40.13. Entry there, stop at 31.34, objective at 57.72. Price drifted back into the box and hit the stop on June 7, 2024, a full 1 R loss; ten days after the breakout, AVAX was down 10.3%.

Case study: a breakdown that ran out of time

TRX/USDT ranged between about 0.031 and 0.044 from late June to late July 2018. By August 2, 2018 the support line stood at about 0.03198 and the resistance line at 0.04476, and price closed below support at 0.03128. Short entry there, stop at 0.04476, objective at 0.00432. Ten days later TRX was 28.1% lower, in favor of the position. Neither the stop nor the objective was hit within 100 days, and the trade was closed at the time limit with a gain of 0.61 R: a winner, but well short of the planned move.

Tools to find and draw rectangles

No indicator is needed: any charting platform lets you draw two horizontal lines or a box. Some also search for chart patterns automatically. TradingView, for example, documents its automatic chart pattern rectangle in its support pages: the pattern is displayed on the chart with a label once it is detected. Whatever the tool, check its definition (number of touches, how flat the lines must be), and set alerts on both lines. An alert that triggers on a close beyond the box is closer to a real breakout than one that triggers on a touch, and a trigger on both sides keeps you neutral until the market finds its direction.

Frequently asked questions about the rectangle pattern

Is a rectangle pattern bullish or bearish?

Neither while it forms. It becomes bullish with a close above resistance and bearish with a close below support.

Is the rectangle a continuation or a reversal pattern?

Both. Textbooks call it a continuation pattern when price leaves it in the direction of the prior trend, and a reversal pattern when price leaves it on the other side. Our bench does not require a prior trend and tests both breakouts, so wait for the close beyond the box.

What is the success rate of the rectangle pattern?

On daily charts, upward breakouts reached a 2:1 target 21.0% of the time and downward breakouts 14.0%, about the same as the same trades on random dates.

How long does a rectangle last?

There is no fixed duration. On daily charts, the median rectangle with an upward breakout lasted 59 bars from its first swing point to the breakout, and half of them lasted between 37 and 114 bars. In the daily crypto case studies of the Real examples section, that span ran from about five weeks (AVAX, TRX) to about seven weeks (BNB).

Summary of key points

  • A rectangle pattern is a sideways range between flat support and flat resistance, touched at least twice on one line and three times on the other.
  • The breakout is the first close beyond the box; the stop goes at the opposite side.
  • On 2,981 upward and 2,386 downward daily breakouts, the 2:1 trade did about as well as the same trade on random dates.
  • No result passed our correction; the closest lead, the 10-bar move after downward breakouts on hourly crypto, passes a simple test but not our correction and is not an established edge.

Trading involves risk. Treat the rectangle as a way to define where you are wrong, not as a reason to trade. Size each position on the distance to the stop, and keep the risk small. This page is education provided for information only, not investment advice or a recommendation to buy or sell.

About the author and the data. Written by Amaury, founder of PatternsWizard, who is passionate about finance, quantitative trading and data analysis. He built the PatternsWizard test bench, which detects each setup with fixed, published rules on full market history: crypto, forex, US stocks, ETFs, indices and commodities. Trades and win rates are compared with random bars on the same assets, excess returns with the rest of the market, with error margins and a correction for multiple testing, and the whole pipeline is checked on random-walk prices, where nothing can be predicted. Statistics on this page were generated on November 5, 2026. The full methodology explains every step.

, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

Statistics on this page come from our open methodology: every occurrence our rule finds on full history, compared with chance. How we test patterns.

179 patterns testedRandom-walk self-test passed