Identify the box before assigning a direction
StockCharts describes rectangles using at least two comparable reaction highs and two comparable reaction lows. Its discussion allows continuation and reversal outcomes. TradingView also describes the rectangle as directionally uncertain. This page concerns recognition and breakout classification; buying and selling repeatedly inside the range requires a separate entry and exit model.
| Feature | Rectangle requirement | Reason to reject or relabel |
|---|---|---|
| Upper and lower edges | Two horizontal price levels, R > S | Parallel sloping edges describe a channel; converging edges describe a different shape |
| Independent touches | At least two highs and two lows from distinct swings | Adjacent candles during one visit are not separate swings |
| Tolerance | Every selected high is near R and every selected low is near S | Increasing tolerance after a failed touch changes the detector |
| Containment | A stated closing-price rule holds until the candidate is available | A breakout already occurred before the last anchor could be known |