What is a rectangle pattern?

Draw a line across the highs and another across the lows. If both are roughly flat and each has at least two touches, you have a rectangle, also called a trading range or a box. Many traders treat each line as a zone a few cents wide rather than an exact price, since the touches rarely match.

Close relatives look similar: if the lows rise toward a flat top, it is an ascending triangle; if the range is short and comes right after a sharp move, it is usually treated as a flag; if both lines slope the same way, it is a channel.

Is a rectangle a continuation or a reversal pattern?

Either. A rectangle in an uptrend that breaks upward is a continuation; the same box breaking downward is a reversal, as in the drawing below. The prior trend can make one outcome feel more likely, but it is not a forecast, so plan both sides before the break.

In practice: set an alert just above the top and just below the bottom, and write down in advance what you will do on each.

Turn your phone sideways to read the drawing. Tap to close.

Two hand-drawn panels with the same grey box after a rise. Left: price closes above the box and climbs in green with a buy triangle, labeled continuation: breaks with the trend. Right: price closes below the box and falls in red with a sell triangle, labeled reversal: breaks against it.

Trading inside the rectangle vs trading the breakout

One pattern holds two different trades:

Mixing the two is the classic mistake: shorting the top of the box out of habit right as it breaks out. Pick one approach per chart and accept its failure mode.

  • Inside the range: buy near support and sell near resistance, with stops just outside the box, as in the drawing below. It works while the range holds and fails on the breakout. The range trading strategy covers the rules.
  • The breakout: do nothing inside, then enter on a close outside the box, with the stop back inside it. It fails on false breakouts. The breakout trading strategy covers entries and the retest.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn range between a support zone at the bottom and a resistance zone at the top, with price bouncing between them: buy triangles near support, sell triangles near resistance, the middle third lightly shaded as a no-trade zone, and dotted stops just outside the range.

Rectangle pattern target: the measured move and volume

The measured move adds the height of the box to the breakout level. Hypothetical, as in the drawing at the top of the page: a rectangle from $40.00 to $44.00 is $4.00 tall, so a close at $45.30 above $44.00 points to a guide near $48.00; a break below $40.00 would point to about $36.00. It is a reference for risk/reward, not a price the market owes you.

With a long at $45.30 and the stop back inside the box at $43.40, the risk is $1.90 against $2.70 to the guide. Size the trade from that stop with the position size calculator.

Volume usually contracts while price chops inside the box and expands on a genuine breakout. A break on volume well above normal, judged with relative volume, carries more weight than one on a quiet day.

False breakouts: the rectangle trap

Orders tend to cluster just outside the edges of an obvious range, so pokes beyond the box are common. A false breakout closes outside, then closes back inside within a bar or two. In the drawing below, a long bought on the close at $44.60 is stopped at $43.40, and price falls back to the bottom of the range.

Filters that help, without preventing every trap:

  • Wait for a close outside the box, not a wick.
  • Look for volume above normal on the break; the fake in the drawing came on an ordinary bar.
  • Consider the retest entry: buy only if price returns to the old top and holds it.
  • Treat a close back inside as the exit, not as a reason to hope.

Turn your phone sideways to read the drawing. Tap to close.

A hand-drawn range between resistance and support: a candle closes above the box on an ordinary, circled volume bar labeled weak volume, and a red ✗ marks it with the note back inside: the breakout failed. The next candle closes back in the box through a red dotted stop just inside the top, and price falls to support.

How to draw and trade a rectangle on TradingView

Use the Rectangle drawing tool from the highest high to the lowest low of the range, extend it to the right, and set TradingView alerts at both edges so the chart calls you when price gets there. Then let the close decide.

If you trade levels on 5-minute to 1-hour charts, UpTickFlow, our invite-only TradingView indicator, works on the same close-first idea, so weigh this mention accordingly: it waits for a candle to close at a level and draws the entry, stop and target before the trade. It does not label rectangles; it is a second check, not a pattern scanner.