All chart patterns
    SEBI Registered Research Analyst · INH000015297

    Rectangle Pattern

    रेक्टेंगल पैटर्न

    A rectangle is a sideways range bounded by a horizontal ceiling and a horizontal floor that price touches at least twice each — a bilateral pattern that tells you a decision is coming but not which way it will go, completing only on a close outside one of the two boundaries.

    By Rohit Singh (Mr. Chartist) · Updated 2026-08-25

    Bias
    Bilateral — no directional bias
    Type
    Resolves either way
    Timeframes
    Daily through weekly. On a daily chart a tradeable rectangle usually runs one to two years; on a weekly chart the same structure can run four to seven years. Below the daily, a 'rectangle' is just a few sessions of chop with no information in it.
    Real examples
    5 published NSE setups

    A rectangle is a stock arguing with itself in public. Buyers step in at one price and sellers step in at another, both defend their level repeatedly, and until one of them runs out the stock goes nowhere. Every touch of the floor and the ceiling is another data point that those two prices are real — which is exactly why the eventual break out of one of them matters.

    What a rectangle does not do is predict direction. This is the part most pattern guides get wrong by listing it as bullish. The shape is symmetric: a flat ceiling and a flat floor give you no reason to favour an upside break over a downside one. Any directional lean has to come from somewhere else — from the trend the range interrupted, from where inside the box price is spending its time, and ultimately from which boundary gets a close beyond it.

    That makes the rectangle two different trades depending on when you engage. Inside the box you can trade the edges — buy near the floor, sell near the ceiling, stop just outside — accepting small, repeatable moves and the certainty that the last one will fail. Outside the box you trade the breakout, with a measured target from the range height. Confusing the two is how people end up long at the floor of a range that is about to break down.

    How do you identify a rectangle?

    • A horizontal ceiling and a horizontal floor, roughly parallel. Both boundaries must be flat — the moment one of them starts sloping you are looking at a triangle, a channel or a wedge, and different rules apply.
    • At least two clean touches of each boundary — four reaction points as a minimum. Two touches of the top and one of the bottom is a pause, not a rectangle. This is the single condition that separates a real range from any stretch of sideways price action someone has drawn a box around.
    • Visible reactions at the levels, not just closes near them. Price should turn at the boundary — reject the ceiling and bounce off the floor — so that the levels are defined by the market's behaviour rather than by where the lines were drawn.
    • Boundaries treated as zones, not lines. ChartBook 280 published Cool Caps' breakout zone as ₹98–₹100 and Vaxfab's as ₹32, and read M&MFIN's range as support near ₹245 against resistance near ₹290. A rupee or two of overshoot at either edge is normal.
    • A prior trend that the range interrupts. The rectangle itself is neutral; the context supplies whatever lean exists. A range after a long decline is a possible base, a range after a strong advance is a possible continuation, and the shape looks identical in both cases.
    • A close outside a boundary on the pattern's own timeframe to complete it. Daily rectangle, daily close: M&MFIN's published trigger was a daily close above ₹293. Weekly rectangle, weekly close: Vaxfab's was a weekly close and follow-through above ₹33–₹34.

    What should volume be doing?

    • Volume normally contracts as the range matures — heaviest around the early boundary tests, drying out as the argument becomes routine and the stock loses its audience. A range that gets quieter is building energy; a range that stays noisy at both edges is still genuinely contested.
    • Volume must expand on the breakout close. Without it the break is most likely just another edge-to-edge swing that has overshot, and price returns into the box. This is why the ChartBook reads on Prime Urban and Vaxfab both asked for follow-through after the close rather than treating the first close beyond the boundary as sufficient.
    • Read the volume at the boundary touches while price is still inside. Rejections at the ceiling that come on progressively lighter volume, while the lows inside the range creep higher — the M&MFIN structure — say supply at the top is thinning. That is a pressure reading, not a signal: it tells you which way the box is leaning, and it still does not complete the pattern.

    How is the rectangle target calculated?

    Measure the height of the range — ceiling minus floor — and project that distance from the breakout point in the direction of the break. Upward from the ceiling on an upside break, downward from the floor on a downside break. The rule is direction-agnostic: it produces a target only after the market has chosen a direction, which is the clearest illustration of why a rectangle is bilateral.

    Worked from a real published setup

    Mahindra & Mahindra Financial Services, published in ChartBook 280 and marked at ₹289.55. The range ran between support near ₹245 and resistance near ₹290 — a height of roughly ₹45. The edition published ₹333–₹335 as the pattern target based on the height of the rectangle off the ₹290 breakout: ₹290 plus ₹45 lands at ₹335. Two details are worth noting. First, the measured move is taken from the boundary at ₹290, but the published entry trigger was a daily close above ₹293 — confirmation always costs you a few rupees of the move, and that cost belongs in the risk calculation. Second, run the identical rule downward and a break of the ₹245 floor would project ₹200. That figure was not published and is shown only to make the point: the same arithmetic serves both directions, and the shape alone gives you no reason to prefer one.

    What invalidates the pattern?

    • A close back inside the range after breaking out. The break has failed, and failed range breaks often run hard to the opposite boundary because everyone who positioned for the breakout is now offside and has to get out. M&MFIN's published stop below ₹278 sits back inside the ₹245–₹290 box for exactly this reason — the trade is wrong the moment price is back in the range.
    • A breakout on ordinary volume that stalls within a few candles. Treat that as a failed break in progress rather than waiting for the stop; a genuine resolution of a one-to-seven-year argument should not look tentative.
    • Repeated failed breaks in both directions. Once a range has thrown two or three false breaks either way, the boundaries have stopped being reliable and the structure has degraded into noise. Stand aside rather than keep paying for the next attempt.
    • Boundaries that stop being horizontal. If the lows inside the box keep rising across many touches, the structure is morphing into an ascending triangle, and if the highs keep falling it is becoming a descending triangle. Both are directional patterns with different implications — the rectangle's rules no longer describe what is on the chart.
    • For a trade taken inside the range: a close beyond the edge you are leaning against. Range trades have no room for interpretation, which is why their stops sit just outside the boundary and why they must be small enough that the inevitable failed one does not matter.

    Which way does a rectangle break?

    The shape cannot tell you. That is not a hedge, it is the definition of a bilateral pattern: a flat ceiling and a flat floor are symmetric, so there is nothing in the geometry that favours one side. Any source that lists the rectangle as a bullish pattern has quietly substituted its own assumption for the chart's information.

    What does carry information is context. The trend the range interrupted is the first thing to read — a range that formed after a multi-year decline is a potential base, and a range that formed after a strong advance is a potential continuation. Prime Urban and Vaxfab were published as base breakouts precisely because their ranges sat at the end of long sideways-to-down phases, and the break resolved upward.

    The second thing to read is the behaviour inside the box. M&MFIN in ChartBook 280 was making higher lows while repeatedly testing ₹290 — buyers stepping in earlier on each swing while sellers held the same price. That is a pressure buildup and it leans bullish, but the edition still published the entry as a condition, on a daily close above ₹293, because pressure is not a break. Ranges with visible upward pressure do break down sometimes, and the only thing that settles it is the close.

    So the practical answer is: form no directional opinion from the rectangle itself, take a lean from the trend and the internal behaviour, and let the close beyond a boundary make the decision. The target follows the direction, not the other way round.

    • A rectangle is bilateral — the shape predicts a resolution, not a direction.
    • The lean comes from the trend it interrupts and from behaviour inside the box.
    • Higher lows pressing into the ceiling are pressure, not a signal. Wait for the close.

    Can you trade a rectangle before it breaks out?

    Yes, and it is a genuinely different trade with genuinely different rules. Trading inside the range means buying near the floor, selling near the ceiling, and putting the stop just outside whichever boundary you are leaning on. The edge is that the boundaries have already held several times; the cost is that they will not hold forever, and the trade that fails is the one that coincides with the breakout.

    The maths of that is unforgiving on a wide range. M&MFIN's box was roughly ₹45 tall on a ₹290 stock — about 15% edge to edge — so a floor-to-ceiling trade is worth having. On a narrow range the same trade barely pays for the spread and the brokerage, and it will still be sitting there when the break comes.

    Two things reduce the damage. First, never hold a range position through the boundary: a close beyond the edge you are leaning on ends the trade, no interpretation. Second, size the range trade smaller than a breakout trade, because you are trading against the eventual resolution rather than with it.

    The alternative — the one the ChartBook reads use — is to write the trigger in advance and wait. Usha Martin was marked at ₹426.55 with an entry above ₹435 on a strong close. M&MFIN was marked at ₹289.55 with an entry on a daily close above ₹293. In both cases the stock was already at the interesting part of the chart and the entry was still written as a condition, because the pattern's whole purpose is to define the price at which the argument ends.

    • Range trades and breakout trades are different trades with different stops.
    • A range trade only pays if the box is wide enough to cover costs and risk.
    • Write the breakout trigger in advance so the boundary makes the decision, not you.

    Rectangle on real NSE charts

    Each setup below was published in a ChartBook edition on the date shown, at the price it was marked at — entry, stop and target exactly as they went out. Nothing here is back-fitted, and the edition each came from is linked so you can check it.

    ChartBook 280 · 21 September 2025

    Mahindra & Mahindra Financial Services Ltd.

    M&MFIN · Daily chart · 1 year to form

    Marked at₹289.55

    Oscillating between support near ₹245 and resistance near ₹290 for a year, and now testing the upper boundary with higher lows pressing into resistance. That is a bullish pressure buildup inside the range — supply at the top thinning while demand steps in earlier each time — but the breakout has not happened, so the trigger stays conditional.

    EntryOn daily close above ₹293
    StopBelow ₹278
    Target₹305 → ₹333–₹335
    Read the full edition this was published in
    ChartBook 280 · 21 September 2025

    Cool Caps Industries

    COOLCAPS · Daily chart · 1 year to form

    Marked at₹103.20

    Breakout from a long-term base. ₹98–₹100 is the rectangle breakout zone and now the key immediate support — the old ceiling doing the job the floor used to do, which is the cleanest confirmation a range break gives you.

    Entry₹98–₹100 on a bullish reversal candle
    StopBelow ₹92
    Target₹110 → ₹120
    Read the full edition this was published in
    ChartBook 280 · 21 September 2025

    Usha Martin Ltd.

    USHAMART · Daily chart · 2 years to form

    Marked at₹426.55

    Pressing the top of a two-year range, with ₹385–₹390 as immediate support from the recent consolidation. Marked at ₹426.55 against a trigger above ₹435 — the stock is at the boundary, not through it, and the entry is written as a condition rather than a level to buy at.

    EntryAbove ₹435 on a strong close
    StopBelow ₹385
    Target₹470 → ₹495 → ₹510
    Read the full edition this was published in
    ChartBook 280 · 21 September 2025

    Prime Urban Development India Ltd.

    PRIMEURB · Weekly chart · 7 years to form

    Marked at₹18.19

    Base breakout after seven years of sideways action on the weekly chart. ₹17.00–₹17.50 must now be defended for the shift to be confirmed — a seven-year ceiling either becomes the new floor or the break was noise.

    EntryOn a close above ₹18.00 with a strong follow-through candle
    StopBelow ₹15.00
    Target₹22.00 → ₹27.00 → ₹35.00
    Read the full edition this was published in
    ChartBook 280 · 21 September 2025

    Vaxfab Enterprises Ltd.

    VAXFAB · Weekly chart · 4.5 years to form

    Marked at₹35.15

    Breakout from long-term accumulation on the weekly chart. ₹32 is the rectangle breakout zone and is now immediate support — the level to watch on any pullback, since losing it puts price back inside four and a half years of range.

    EntryOn a weekly close and follow-through above ₹33–₹34
    StopBelow ₹28
    Target₹41 → ₹50 → ₹60
    Read the full edition this was published in

    What is often mistaken for a rectangle?

    Ascending Triangle

    An ascending triangle has the same flat ceiling but rising lows, so its floor slopes upward and the range narrows. That makes it directional — buyers are paying more on every swing while sellers hold one price. A rectangle's floor is horizontal, and it is neutral. If the lows inside your box keep climbing, redraw it as an ascending triangle.

    Descending Triangle

    The mirror case: a flat floor with falling highs. Sellers accept less on every swing while buyers defend one level, which leans bearish. Again, the tell is the sloping boundary — a rectangle needs both lines horizontal.

    Consolidation or base (generic)

    Any quiet stretch can be called a consolidation. A rectangle is the subset with at least two clean touches of both boundaries — four reaction points — so the levels are proven rather than drawn. Without those touches you have sideways price action, no defined trigger and no range height to measure a target from.

    Bull Flag

    A bull flag is a short, shallow pause of a few candles inside a fast advance, usually drifting slightly against the trend. A rectangle is a structural range lasting months to years, with repeated tests of both edges. The flag is a pause in a move; the rectangle is the absence of one.

    Can you screen for the rectangle?

    A screener cannot see a box, but it can see the two things a box produces: a compressed price range, and the fresh high or low that ends it. For ranges still forming, scan for stocks whose highest and lowest closes over the last six to twelve months differ by less than about 20%, with price currently within a few percent of that period's high or low — that returns candidates sitting at a boundary. For completed patterns, scan for a close above the highest high of the last six to twelve months on volume above its recent average. On Chartink-style tools match the timeframe to the range: daily scans for the one-to-two-year boxes, weekly for the multi-year ones. Either way the screener only produces candidates — the two touches of each boundary still have to be counted by eye.

    How reliable is the rectangle?

    A rectangle's reliability is really two separate questions, because it is two separate trades. The breakout trade depends on the number of boundary touches, the length of the range and the volume on the resolving close — a two-year daily range breaking out on heavy volume is a materially different proposition from a two-month one. The range trade depends on the boundaries continuing to hold, which by definition ends in a loss at some point, so it only works with position sizing that assumes the last trade fails. Published win-rate percentages for chart patterns circulate widely online but almost none disclose their sample, market or timeframe, so no figure is quoted here — and for a bilateral pattern such figures are close to meaningless anyway, since a 'success' for the pattern includes breaks in the direction opposite to whatever you were expecting.

    Frequently asked questions

    Measure the height of the range — ceiling minus floor — and project it from the breakout point in the direction of the break. In ChartBook 280, M&MFIN's range ran from about ₹245 to about ₹290, a height of roughly ₹45, and the edition published ₹333–₹335 as the pattern target off the ₹290 breakout. The same rule applied to a downside break of the floor would project the range height below ₹245.

    Neither. It is bilateral — the pattern says a range will eventually resolve, not which way. A flat ceiling and a flat floor are symmetric and carry no directional information. Whatever lean exists comes from the trend the range interrupted and from the behaviour inside the box, and it is only settled by a close beyond one of the boundaries.

    The floor. An ascending triangle has a flat ceiling with rising lows, so the range narrows and the structure leans bullish — buyers are paying up on every swing. A rectangle has a horizontal floor as well as a horizontal ceiling, so it narrows nowhere and leans neither way. If the lows inside your rectangle keep climbing across several touches, you are drawing the wrong pattern.

    Months to years, depending on the timeframe it is read on. The five NSE cases published in ChartBook 280 on 21 September 2025 ran one year (M&MFIN and Cool Caps) and two years (Usha Martin) on daily charts, and four and a half years (Vaxfab) and seven years (Prime Urban) on weekly charts. A few sideways sessions on an intraday chart is not a rectangle.

    At least two of the ceiling and two of the floor — four reaction points. That is the condition that turns a stretch of sideways price action into a pattern with proven levels, a defined trigger and a measurable height. With fewer touches you have a consolidation, and there is nothing to trade against.

    Yes, but treat it as a separate trade: buy near the floor, sell near the ceiling, stop just outside the boundary you are leaning on, and size it smaller than a breakout trade. It only makes sense on a range wide enough to cover costs — M&MFIN's box was about 15% edge to edge — and it comes with the certainty that the last one fails, because the range trade is a bet against the resolution the pattern exists to produce.

    The breakout is as reliable as its evidence: how many times each boundary was tested, how long the range ran, and whether the resolving close carried volume expansion. Averaged win-rate figures are especially unhelpful for this pattern, because it is bilateral — a break that 'works' can go the opposite way to whatever you expected. Circulated percentages also rarely disclose their sample, market or timeframe, so they should not be relied on.

    Rohit Singh — Mr. Chartist

    Written By

    Rohit Singh

    Mr. Chartist

    With 14+ years of experience in Indian financial markets, Rohit Singh (Mr. Chartist) is a SEBI Registered Research Analyst, Amazon #1 bestselling author, and the founder of Investology — a premium trading ecosystem trusted by a 1.5 Lakh+ strong community across India.

    INH000015297Full Bio

    Educational content only. This page explains a chart pattern and cites setups previously published in the Weekend ChartBook; it is not investment advice and not a recommendation to buy or sell any security. Registration granted by SEBI, membership of BASL and certification from NISM in no way guarantee performance or assure returns. Markets carry risk — read all related documents carefully before investing.