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.
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)
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
On this page
- What is the rectangle chart pattern?
- How to identify a rectangle pattern on a chart
- Bullish vs. bearish rectangle patterns
- How to trade the rectangle pattern effectively
- How to calculate price targets and stop losses
- Common mistakes to avoid when trading rectangles
- Rectangle pattern vs. other technical patterns
- Reliability and success rate of rectangle patterns
- Real examples from our test bench
- Tools to find and draw rectangles
- Frequently asked questions about the rectangle pattern
- 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.
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.
- First touch of the top
- First touch of the bottomswing points alternate between the two lines
- Second touch of the top
- Second touch of the bottom
- Third touch of the topfifth swing point, both lines flat
- Breakout
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.
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.
- 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)
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.
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
- FlagBullish or bearishBullish, Upward breakout, 10-bar move, daily No clear edgeBearish, Downward breakout, 10-bar move, daily No clear edge
- Cup and HandleBullish10-bar move, daily No clear edge
- ChannelNeutralFalling channel, Upward breakout, 10-bar move, daily No clear edgeFalling channel, Downward breakout, 10-bar move, daily No clear edgeRising channel, Upward breakout, 10-bar move, daily Weak, below chanceRising channel, Downward breakout, 10-bar move, daily No clear edge
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.
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 edgeOn 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 edgeRectangle against random bars on the same assets, by market, on daily candles. Bars of almost the same length mean no edge.
- All markets
- Crypto
- US stocks
- ETFs
- Indices
- All markets
- Crypto
- US stocks
- ETFs
- Indices
- All markets
- Crypto
- US stocks
- ETFs
- Indices
- All markets
- Crypto
- US stocks
- ETFs
- Indices
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.
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
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?
| Market | Occurrences | Pattern | Random bars | Excess | 10-bar move verdict |
|---|---|---|---|---|---|
| Crypto · 1-hour · Upward breakout | 3,534 | 47.0% | 48.3% | −0.14% | No clear edge |
| Crypto · 1-hour · Downward breakout | 3,764 | 51.2% | 50.8% | +0.16% | Promising |
| Forex · 1-hour · Upward breakout | 616 | 50.3% | 50.6% | +0.01% | No clear edge |
| Forex · 1-hour · Downward breakout | 635 | 46.8% | 49.3% | −0.01% | No clear edge |
| All markets · 1-hour · Upward breakout | 4,150 | 47.5% | 48.6% | −0.12% | No clear edge |
| All markets · 1-hour · Downward breakout | 4,399 | 50.6% | 50.6% | +0.14% | Promising |
| Crypto · 4-hour · Upward breakout | 779 | 47.0% | 47.5% | −0.34% | No clear edge |
| Crypto · 4-hour · Downward breakout | 828 | 56.2% | 52.3% | +0.33% | No clear edge |
| Forex · 4-hour · Upward breakout | 193 | 49.7% | 50.6% | −0.05% | No clear edge |
| Forex · 4-hour · Downward breakout | 212 | 44.1% | 49.6% | −0.12% | Weak, below chance |
| All markets · 4-hour · Upward breakout | 972 | 47.6% | 48.1% | −0.28% | No clear edge |
| All markets · 4-hour · Downward breakout | 1,040 | 53.7% | 51.7% | +0.24% | No clear edge |
| Crypto · Daily · Upward breakout | 99 | 52.5% | 45.4% | −0.08% | No clear edge |
| Crypto · Daily · Downward breakout | 111 | 59.3% | 55.8% | +1.68% | No clear edge |
| US stocks · Daily · Upward breakout | 2,661 | 53.3% | 54.2% | −0.11% | No clear edge |
| US stocks · Daily · Downward breakout | 2,099 | 47.2% | 45.8% | +0.24% | No clear edge |
| ETFs · Daily · Upward breakout | 109 | 70.6% | 57.0% | +0.41% | No clear edge |
| ETFs · Daily · Downward breakout | 79 | 44.3% | 42.9% | +0.35% | No clear edge |
| Indices · Daily · Upward breakout | 58 | 70.7% | 57.4% | +0.10% | No clear edge |
| Indices · Daily · Downward breakout | 48 | 54.2% | 42.4% | +0.51% | No clear edge |
| Forex · Daily · Upward breakout | 28 | 25.0% | 50.4% | −0.86% | Not enough data |
| Forex · Daily · Downward breakout | 29 | 44.8% | 49.4% | +0.10% | Not enough data |
| Commodities · Daily · Upward breakout | 26 | 73.1% | 51.6% | +2.70% | Not enough data |
| Commodities · Daily · Downward breakout | 20 | 35.0% | 47.5% | −1.50% | Not enough data |
| All markets · Daily · Upward breakout | 2,981 | 54.1% | 54.0% | −0.07% | No clear edge |
| All markets · Daily · Downward breakout | 2,386 | 47.6% | 46.1% | +0.30% | No clear edge |
| Crypto · Weekly · Upward breakout | 4 | 25.0% | 42.1% | +8.76% | Not enough data |
| Crypto · Weekly · Downward breakout | 15 | 46.7% | 58.6% | +5.78% | Not enough data |
| US stocks · Weekly · Upward breakout | 510 | 53.8% | 57.6% | +1.24% | No clear edge |
| US stocks · Weekly · Downward breakout | 278 | 44.5% | 43.4% | +0.56% | No clear edge |
| ETFs · Weekly · Upward breakout | 21 | 71.4% | 64.0% | +0.04% | Not enough data |
| ETFs · Weekly · Downward breakout | 10 | 80.0% | 37.8% | +1.24% | Not enough data |
| Indices · Weekly · Upward breakout | 13 | 69.2% | 60.7% | +1.36% | Not enough data |
| Indices · Weekly · Downward breakout | 6 | 16.7% | 36.5% | −3.06% | Not enough data |
| Forex · Weekly · Upward breakout | 6 | 50.0% | 53.5% | +0.32% | Not enough data |
| Forex · Weekly · Downward breakout | 6 | 50.0% | 55.9% | +1.40% | Not enough data |
| Commodities · Weekly · Upward breakout | 9 | 37.5% | 55.1% | +0.04% | Not enough data |
| Commodities · Weekly · Downward breakout | 1 | 100.0% | 45.3% | +10.82% | Not enough data |
| All markets · Weekly · Upward breakout | 563 | 54.3% | 57.7% | +1.22% | No clear edge |
| All markets · Weekly · Downward breakout | 316 | 45.5% | 44.1% | +0.82% | No clear edge |
2:1 trade: target hit and average result
| Market | Trades | Target hit | Same trade, random dates | Per trade | 2:1 trade verdict |
|---|---|---|---|---|---|
| Crypto · 1-hour · Upward breakout | 3,521 | 22.6% | 21.9% | +0.05 R vs +0.01 R | No clear edge |
| Crypto · 1-hour · Downward breakout | 3,738 | 19.5% | 17.7% | +0.11 R vs +0.03 R | No clear edge |
| Forex · 1-hour · Upward breakout | 615 | 13.3% | 14.8% | +0.01 R vs −0.02 R | No clear edge |
| Forex · 1-hour · Downward breakout | 632 | 13.1% | 13.1% | −0.01 R vs −0.04 R | No clear edge |
| All markets · 1-hour · Upward breakout | 4,136 | 21.2% | 20.9% | +0.04 R vs +0.01 R | No clear edge |
| All markets · 1-hour · Downward breakout | 4,370 | 18.6% | 17.0% | +0.09 R vs +0.02 R | No clear edge |
| Crypto · 4-hour · Upward breakout | 777 | 26.9% | 25.0% | +0.13 R vs +0.06 R | No clear edge |
| Crypto · 4-hour · Downward breakout | 758 | 16.9% | 15.3% | +0.16 R vs +0.04 R | No clear edge |
| Forex · 4-hour · Upward breakout | 188 | 13.8% | 15.0% | +0.03 R vs −0.02 R | No clear edge |
| Forex · 4-hour · Downward breakout | 210 | 12.4% | 15.5% | −0.16 R vs −0.01 R | No clear edge |
| All markets · 4-hour · Upward breakout | 965 | 24.4% | 23.1% | +0.11 R vs +0.04 R | No clear edge |
| All markets · 4-hour · Downward breakout | 968 | 15.9% | 15.4% | +0.09 R vs +0.03 R | No clear edge |
| Crypto · Daily · Upward breakout | 97 | 43.3% | 31.3% | +0.44 R vs +0.12 R | No clear edge |
| Crypto · Daily · Downward breakout | 47 | 12.8% | 15.4% | +0.09 R vs +0.04 R | No clear edge |
| US stocks · Daily · Upward breakout | 2,619 | 20.4% | 22.7% | +0.16 R vs +0.22 R | No clear edge |
| US stocks · Daily · Downward breakout | 1,956 | 13.6% | 12.6% | −0.21 R vs −0.24 R | No clear edge |
| ETFs · Daily · Upward breakout | 108 | 19.4% | 24.7% | +0.36 R vs +0.40 R | No clear edge |
| ETFs · Daily · Downward breakout | 77 | 23.4% | 19.4% | 0.00 R vs −0.08 R | No clear edge |
| Indices · Daily · Upward breakout | 58 | 17.2% | 20.3% | +0.35 R vs +0.26 R | No clear edge |
| Indices · Daily · Downward breakout | 47 | 8.5% | 21.8% | −0.38 R vs −0.06 R | No clear edge |
| Forex · Daily · Upward breakout | 28 | 7.1% | 28.0% | −0.36 R vs +0.18 R | Not enough data |
| Forex · Daily · Downward breakout | 28 | 21.4% | 20.2% | +0.18 R vs +0.12 R | Not enough data |
| Commodities · Daily · Upward breakout | 24 | 37.5% | 17.7% | +0.51 R vs +0.03 R | Not enough data |
| Commodities · Daily · Downward breakout | 20 | 20.0% | 15.0% | +0.04 R vs −0.08 R | Not enough data |
| All markets · Daily · Upward breakout | 2,934 | 21.0% | 23.1% | +0.18 R vs +0.22 R | No clear edge |
| All markets · Daily · Downward breakout | 2,175 | 14.0% | 13.2% | −0.19 R vs −0.22 R | No clear edge |
| Crypto · Weekly · Upward breakout | 4 | 25.0% | 50.0% | −0.25 R vs +0.58 R | Not enough data |
| Crypto · Weekly · Downward breakout | 0 | n/a | n/a | n/a vs n/a | Not enough data |
| US stocks · Weekly · Upward breakout | 471 | 33.1% | 35.7% | +0.36 R vs +0.45 R | No clear edge |
| US stocks · Weekly · Downward breakout | 182 | 10.4% | 11.5% | −0.35 R vs −0.38 R | No clear edge |
| ETFs · Weekly · Upward breakout | 20 | 35.0% | 30.4% | +0.70 R vs +0.58 R | Not enough data |
| ETFs · Weekly · Downward breakout | 9 | 33.3% | 11.1% | +0.59 R vs −0.52 R | Not enough data |
| Indices · Weekly · Upward breakout | 12 | 41.7% | 29.2% | +1.12 R vs +0.45 R | Not enough data |
| Indices · Weekly · Downward breakout | 6 | 0.0% | 20.8% | −1.00 R vs −0.29 R | Not enough data |
| Forex · Weekly · Upward breakout | 5 | 40.0% | 23.3% | +0.34 R vs +0.46 R | Not enough data |
| Forex · Weekly · Downward breakout | 5 | 40.0% | 35.0% | +0.69 R vs +0.67 R | Not enough data |
| Commodities · Weekly · Upward breakout | 7 | 42.9% | 28.6% | +0.49 R vs +0.05 R | Not enough data |
| Commodities · Weekly · Downward breakout | 1 | 0.0% | 0.0% | +1.20 R vs −0.49 R | Not enough data |
| All markets · Weekly · Upward breakout | 519 | 33.5% | 35.3% | +0.39 R vs +0.45 R | No clear edge |
| All markets · Weekly · Downward breakout | 203 | 11.8% | 12.3% | −0.30 R vs −0.36 R | No clear edge |
After the breakout
| Market | Occurrences | False starts | Same, random dates | Throwbacks |
|---|---|---|---|---|
| Crypto · 1-hour · Upward breakout | 3,534 | 28.3% | 31.5% | 71.1% |
| Crypto · 1-hour · Downward breakout | 3,764 | 27.4% | 31.0% | 69.9% |
| Forex · 1-hour · Upward breakout | 616 | 31.3% | 34.3% | 71.7% |
| Forex · 1-hour · Downward breakout | 635 | 29.6% | 31.9% | 73.1% |
| All markets · 1-hour · Upward breakout | 4,150 | 28.8% | 31.9% | 71.2% |
| All markets · 1-hour · Downward breakout | 4,399 | 27.7% | 31.1% | 70.4% |
| Crypto · 4-hour · Upward breakout | 779 | 27.0% | 30.3% | 71.6% |
| Crypto · 4-hour · Downward breakout | 828 | 26.2% | 31.1% | 71.8% |
| Forex · 4-hour · Upward breakout | 193 | 31.4% | 34.2% | 68.8% |
| Forex · 4-hour · Downward breakout | 212 | 39.0% | 29.4% | 70.5% |
| All markets · 4-hour · Upward breakout | 972 | 27.8% | 31.0% | 71.1% |
| All markets · 4-hour · Downward breakout | 1,040 | 28.8% | 30.8% | 71.5% |
| Crypto · Daily · Upward breakout | 99 | 19.8% | 29.8% | 74.2% |
| Crypto · Daily · Downward breakout | 111 | 23.5% | 31.0% | 62.4% |
| US stocks · Daily · Upward breakout | 2,661 | 26.9% | 25.7% | 73.4% |
| US stocks · Daily · Downward breakout | 2,099 | 39.0% | 37.0% | 70.2% |
| ETFs · Daily · Upward breakout | 109 | 19.0% | 21.6% | 74.5% |
| ETFs · Daily · Downward breakout | 79 | 39.0% | 31.4% | 62.0% |
| Indices · Daily · Upward breakout | 58 | 18.2% | 28.0% | 67.9% |
| Indices · Daily · Downward breakout | 48 | 33.3% | 35.9% | 91.7% |
| Forex · Daily · Upward breakout | 28 | 42.9% | 31.3% | 53.6% |
| Forex · Daily · Downward breakout | 29 | 25.0% | 31.3% | 79.3% |
| Commodities · Daily · Upward breakout | 26 | 33.3% | 38.1% | 75.0% |
| Commodities · Daily · Downward breakout | 20 | 30.0% | 22.5% | 70.0% |
| All markets · Daily · Upward breakout | 2,981 | 26.5% | 25.9% | 73.2% |
| All markets · Daily · Downward breakout | 2,386 | 38.0% | 36.3% | 70.1% |
| Crypto · Weekly · Upward breakout | 4 | 0.0% | 20.8% | 0.0% |
| Crypto · Weekly · Downward breakout | 15 | 100.0% | 45.8% | 50.0% |
| US stocks · Weekly · Upward breakout | 510 | 27.0% | 23.6% | 66.5% |
| US stocks · Weekly · Downward breakout | 278 | 36.7% | 44.8% | 63.9% |
| ETFs · Weekly · Upward breakout | 21 | 21.1% | 19.4% | 70.0% |
| ETFs · Weekly · Downward breakout | 10 | 0.0% | 37.5% | 70.0% |
| Indices · Weekly · Upward breakout | 13 | 8.3% | 33.3% | 58.3% |
| Indices · Weekly · Downward breakout | 6 | 83.3% | 45.8% | 66.7% |
| Forex · Weekly · Upward breakout | 6 | 40.0% | 25.0% | 40.0% |
| Forex · Weekly · Downward breakout | 6 | 0.0% | 20.8% | 40.0% |
| Commodities · Weekly · Upward breakout | 9 | 42.9% | 33.3% | 75.0% |
| Commodities · Weekly · Downward breakout | 1 | 0.0% | 33.3% | 0.0% |
| All markets · Weekly · Upward breakout | 563 | 26.6% | 23.8% | 66.1% |
| All markets · Weekly · Downward breakout | 316 | 36.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 timeframe | Breakouts | Moved with the breakout 10 bars later | Random bars | Closed trades | 2:1 target hit | Same setup, random dates | Expectancy |
|---|---|---|---|---|---|---|---|
| Up, all markets, daily | 2,981 | 54.1% | 54.0% | 2,934 | 21.0% | 23.1% | +0.18 R |
| Down, all markets, daily | 2,386 | 47.6% | 46.1% | 2,175 | 14.0% | 13.2% | −0.19 R |
| Up, US stocks, daily | 2,661 | 53.3% | 54.2% | 2,619 | 20.4% | 22.7% | +0.16 R |
| Up, ETFs, daily | 109 | 70.6% | 57.0% | 108 | 19.4% | 24.7% | +0.36 R |
| Up, crypto, hourly | 3,534 | 47.0% | 48.3% | 3,521 | 22.6% | 21.9% | +0.05 R |
| Down, crypto, hourly | 3,764 | 51.2% | 50.8% | 3,738 | 19.5% | 17.7% | +0.11 R |
| Down, crypto, 4-hour | 828 | 56.2% | 52.3% | 758 | 16.9% | 15.3% | +0.16 R |
| Up, forex, hourly | 616 | 50.3% | 50.6% | 615 | 13.3% | 14.8% | +0.01 R |
| Up, all markets, weekly | 563 | 54.3% | 57.7% | 519 | 33.5% | 35.3% | +0.39 R |
| Down, all markets, weekly | 316 | 45.5% | 44.1% | 203 | 11.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.
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.
