Rectangle Pattern: the Rule, the Levels, a Real Example
The rule we use to find it in about 2,000 stocks after every close, the levels, and one real example.
A rectangle is a stretch where price runs back and forth between a flat ceiling and a flat floor. Sellers keep supplying at the same high and buyers keep stepping in at the same low, until one side runs out. This page is the rule we use to find it in about 2,000 US stocks after every close, and one real example from the scan.
The rule
What has to be there
Read on weekly bars. A horizontal ceiling touched at least three times, and a floor that price keeps returning to, visited on at least two separate occasions with a rally back into the upper half of the box in between. The box runs 8 to 104 weeks and is 8 to 30% tall relative to the ceiling. The stock has to be above its 200-day average, and moving enough to reach a target: a weekly range of at least 2.5%.
What disqualifies it
- The floor is one dip. A single slide to a low and straight back is a dip, not a floor; the bottom quarter of the box has to be visited on separate occasions.
- The touches belong to different formations. Highs from a rally a year ago and highs from a recent pullback are not one ceiling; a run more than 8% above the line splits them.
- It is too tall or too flat. Taller than 30% is a chart, not a box; shorter than 8% is noise.
- The ceiling has to be tilted to make the breakout happen sooner. We draw it horizontal or not at all.
- It already broke out once. A close past the trigger earlier in the box, before the current run, means this is a second trip through old resistance, not a fresh breakout.
- The stock is under its 200-day average.
The four levels
Every rectangle in the letter is published with the same four numbers.
- Line. The ceiling, horizontal, at the level the highs keep stopping at.
- Trigger. A daily close at least half an average true range (10-day) above the ceiling. A fixed 3% treats a utility and a biotech the same; half an ATR scales with how the stock moves.
- Stop. Under the low of the last day that traded entirely inside the box before the first close over the ceiling, Peter Brandt's Last Day Rule. The day does not exist until the breakout happens, so a name that is still approaching shows no stop.
- Target. The measured move: the height of the box, ceiling minus floor, added to the ceiling. The shaded band on each chart is 80 to 100 percent of that move.
The fifth number is failure level: a close under the floor ends the setup, whether or not it ever triggered.
A real one: Republic Services, October 2026
This is how the scan read Republic Services at Wednesday's close, October 14, the first night the rectangle scan ran. The ceiling at 229.80 held the highs of late summer 2025 and again in March 2026; the floor at 195.81 was visited in November 2025 and again from May to June 2026. The box is sixty weeks wide.

The box is 15% tall, so the target sits at 263.79. RSG closed at 224.44, 2.3% under the ceiling. There is no stop yet because it has not closed over the line; it appears the night it does.

Whether RSG breaks out is not the point of this page. The point is that every rectangle in the letter is measured exactly this way, the same night, with the same rule, and the list remembers what it said: a confirmation, a target hit or a failure is reported the night it happens.
Where the rule comes from
Edwards and Magee described the rectangle in 1948 as one of the classic consolidation patterns. Bulkowski measured it. Rectangle bottoms with upward breakouts in bull markets reached their measured target 79% of the time, with a 15% break-even failure rate and a 64% throwback rate (source). Rectangle tops, the same box after a rise, came in at 78%, 15% and 66% (source). The separate visits to the floor and the height limits are our own. The full list of rules, with each author credited, is on the How the scan works page.
Questions
Is a rectangle bullish or bearish?
Neither until it breaks. We only list upward breakouts: a close past the trigger over the ceiling. A close under the floor ends the setup.
How many touches does it need?
At least three on the ceiling, and a floor visited on at least two separate occasions. The RSG example has six touches across the box.
How is this different from a breakout over a prior high?
A breakout over a prior high needs only one high to clear. A rectangle needs a tested ceiling and a tested floor, and that floor is what gives it a measured target. Breakouts over a prior high carry no target in the letter for that reason.
How is it different from an ascending triangle?
In a triangle the lows rise toward the ceiling instead of holding a flat floor. The ascending triangle page has that rule.
Daily or weekly chart?
Weekly to find it, daily to time the entry. The letter shows both for every name.
Can I see tonight's list?
The full list is for paid members, $10 a month. The free Sunday recap shows what fired, what reached its target and what failed during the week, and the three names closest to a breakout.