A rectangle can be used as an entry pattern for the continuation of an established trend. The formation usually occurs after a sharp price movement when price flows into a period of consolidation between 2 horizontal support and resistance
levels, each of which is tested at least twice. Bullish rectangles can form after an uptrend, bearish rectangles can form after a downtrend. The pattern has completed when price breaks out in the direction of the prevailing trend, at which point it will likely continue in this direction.
Conservative traders may look for additional confirmation. There are 2 common techniques to estimate the target: either the height of the rectangle or the length of the preceding leg can be extended in the direction of the breakout. Some traders use both techniques and aim for 2 targets. Common stop levels are at the midpoint of the rectangle or just outside of it on the opposite side of the breakout. TradingView has a smart drawing tool that allows users to visually identify this pattern on a chart.