Back to Patterns Guide

Chart Patterns — Continuation

Rectangle

A trading range with a flat ceiling and a flat floor. Price bounces between the two levels until it eventually closes beyond one of them.

Structure

Resistance and support run horizontally. Price touches the top, falls to the bottom, and repeats. Classically a continuation pattern (Edwards & Magee), though breakouts can go either way (Bulkowski); LuminaAnalysis labels its signal neutral.

What it shows

A rectangle marks a balance between buyers and sellers at defined prices. The longer and cleaner the box, the more meaningful a close outside it becomes.

Reading the box

A rectangle is easiest to trust when it is long relative to its height and every touch is a clear swing high or swing low. Price that merely drifts inside a band, without sharp rejections at the edges, shows less evidence that either level matters. This is why LuminaAnalysis counts touches, checks that they alternate between the two sides, and rejects a box where too many closes fall outside it.

Detection Criteria

At least three touches per side

Both the upper and lower boundaries need at least three confirmed touches. Two points always form a line; three show the level was tested.

Flat boundaries

The spread of touches on each side is limited by timeframe: 0.75% on 15m and 1h, 1.2% on 4h, 2.25% on 1d and 3.75% on 1w. In addition, each line may move at most 25% of the rectangle height across the formation.

Reasonable range

The box must be at least 2% tall. The maximum height also depends on timeframe: 6% on 15m, 8% on 1h, 12% on 4h, 18% on 1d, 25% on 1w.

Parallel and contained

The height at the end must stay within 0.7 to 1.4 times the height at the start, and at least 70% of candle closes must be inside the boundaries.

Interleaved touches

Touches have to alternate between top and bottom at least twice, proving price actually bounced across the range. A rectangle whose breakout has already happened, five consecutive recent closes outside, is rejected.

Rectangle scenarios

Confirm: A candle closes above the upper boundary or below the lower boundary and holds outside the box.

Invalidation: Price closes outside but returns inside the rectangle, a failed breakout.

Technical analysis scenarios. Not investment advice.

Usage Tips

1. Count the touches honestly

A wick that overshoots a line and closes back inside is still a touch. Closing beyond it is a break.

2. Mind the time spent

The longer a range holds, the more orders accumulate at both edges, and the more noticeable a break will be.

3. Distinguish it from a channel

If both lines tilt in the same direction, the structure is a channel, not a rectangle. See the Price Channels guide.

4. Look for a failed break

Quick moves outside the box that reverse back in are common and tend to trap participants on the wrong side.

Cautions

  • 1A rectangle's shape alone gives no hint of direction. It is classically a continuation pattern (Edwards & Magee), but breakouts can go either way (Bulkowski), so LuminaAnalysis labels it neutral.
  • 2Wide-ranging chop can look like a rectangle to the eye but fail the flatness or closes-inside tests. That is intentional.
  • 3Boundaries are zones, not exact prices; touches within the allowed tolerance count as the same level.
  • 4See the Track Record page for resolved outcomes of detected patterns. Open Track Record.

Rectangle questions

What is a rectangle pattern?

A rectangle is a trading range between flat support and flat resistance, where price repeatedly bounces between the two levels.

How many touches does a rectangle need?

LuminaAnalysis requires at least three touches on both the upper and lower boundary.

Is a rectangle bullish or bearish?

Classically a rectangle is a continuation pattern (Edwards & Magee), though breakouts can go either way (Bulkowski). LuminaAnalysis labels it neutral for that reason.