Home / Technical Analysis / Chart patterns / Rectangle

Chart pattern · Continuation · Neutral

Rectangle

What is it, in one line

Price oscillates between two roughly parallel support and resistance lines before breaking out.

Neutral · Continuation · verdict: Traditional claim, not yet measured here

Neutral Continuation Traditional claim
Rectangle - 60 closing prices ending on the bar where the Rectangle confirms, marked with a dot. Confirmation lags the shape: the last swing it needs is only known once the bars that confirm it have printed.
Verified example · fires the Rectangle rule, quality 1 · not a schematic

Measured result

What happens after a rectangle?

This is being measured and the result is not published yet. It appears here, with its sample and a plain verdict, once it has been replicated on a second data source. Last tested: not yet published.

  • How often price moved the claimed way over 1 to 200 bars, in pips and in units of volatility
  • The same for every bar, and for bars of the same size and direction
  • Each timeframe and each market, and the most recent two years held back as a separate test
  • Whether a target or a stop was reached first, and the measured spread cost

How a formation is tested → All formations →

Size the trade before you take it

The size of a position follows from the loss you accept and the distance to the stop, not from how the pattern looks. Risking 1% of a $10,000 account ($100) with a stop 20 pips away allows $5 a pip, which is 0.5 of a standard lot on a pair where a lot is $10 a pip.

Position size calculator →Risk and reward calculators →ATR against fixed stops →

Formation rule

Price oscillates between two roughly parallel support and resistance lines before breaking out.

Target and invalidation

Conventional target: A breakout projects a move equal to the rectangle’s height.

Invalidated by: A close back inside the range after a breakout invalidates that break.

Rectangle is a continuation chart pattern read from 7 swing points, and this site publishes its rule, its target and the 1 condition that invalidates it.

What the engine tests

The last two swing highs sit within a tolerance band of each other AND the last two swing lows do too, with the ceiling at least minSepAtr above the floor.

Family
Chart formation
Lookback
120 bars
Direction
Neutral
Class
Continuation
Prior context
None required

The traditional claim

Read as a continuation, resolving in the direction of the break.

How this detection is wrong

Filed neutral deliberately. A rectangle that 'predicts' the prior trend is the prior trend being measured.

The thresholds the detector uses

Published so the count can be reproduced. Every figure below is a parameter of the rule, not a preference: change one and the occurrence count changes with it.

Detection parameters for the Rectangle
ParameterMeaningDefault
pivotLeftbars to the left of a swing3
pivotRightbars to the right before a swing is confirmed3
lookbackbars searched for the swings120
atrPeriodbars of ATR used to size everything below14
flatTolhow level two points must be0.02
minSepAtrseparation required between swings, in ATR1
strict
Tighter thresholds. Fewer detections, each a cleaner example.
flatTol 0.008 · minSepAtr 2 · pivotLeft 4 · pivotRight 4
loose
Wider thresholds. More detections, more marginal ones.
flatTol 0.05 · minSepAtr 0.3 · pivotLeft 2 · pivotRight 2

Easily mistaken for

These share enough geometry that a detector can return more than one of them on the same bar. The engine reports every match rather than picking a winner.

Every pair on the site that can be mistaken for another, and what separates each: the look-alikes index.

Common questions

What is a Rectangle chart pattern?

The last two swing highs sit within a tolerance band of each other AND the last two swing lows do too, with the ceiling at least minSepAtr above the floor.

Is the Rectangle bullish or bearish?

It is read as neutral. Read as a continuation, resolving in the direction of the break.

When is a Rectangle not a Rectangle?

Filed neutral deliberately. A rectangle that 'predicts' the prior trend is the prior trend being measured.

How is a Rectangle detected?

As an executable rule over open, high, low and close, with 6 named parameters - including bars to the left of a swing 3, bars to the right before a swing is confirmed 3, bars searched for the swings 120 - all published on this page so the count can be reproduced. Strict and loose variants are defined as well, so the sensitivity of the count to those thresholds is visible rather than assumed.

No measured results yet

We have not published a hit rate for this pattern yet. Our first measurement counted a candle that had not finished forming, so we set it aside and are measuring again before showing any number. The definition above is unaffected: it is what the detector tests, and measuring again does not change it.

All 20 chart patterns →

Other continuation chart patterns

All 20 →
Bearish Pennant A sharp decline followed by a small converging consolidation.
Bullish Pennant A sharp advance followed by a small converging consolidation.
Cup and Handle A rounded cup followed by a shorter shallow pullback, the handle, before the prior advance resumes.
Ascending Triangle A flat resistance line with a rising support line, compressing toward the top.

See also: Bull Flag.

Create your account to see the custom crypto strategies and indicators.

Crypto strategies, crypto indicators, breakout signals and custom bots, in one account.

Create your account