Consolidation and Range Pattern
Consolidation and Range Pattern automatically detects rectangular trading ranges — consolidation zones where price bounces between horizontal support and resistance — in real-time on any TradingView chart. With Smart Breakout Detection, dual-size pattern recognition, and up to three take profit targets, the indicator delivers complete trade setups from range identification through breakout execution.

Key Features
Pattern Detection
Dual-size swing detection with configurable touch point validation and Smart Breakout filtering for high-quality range identification.
Risk Management
Three take profit targets, minimum RR ratio filter, optional position sizing calculator, and three trade visualization styles.
Statistics
Built-in performance tracking with TP1/TP2/TP3 hit rates, stop loss frequency, and timeout tracking by direction.
Quick Setup
- Add Consolidation and Range Pattern to your TradingView chart
- Default Pattern Size is Very Small (swing size 4) — adjust to match your timeframe
- Optionally enable Pattern 2 for a second detection layer at a larger scale
- Smart Breakout Detection is on by default — it filters false breakouts automatically
- Review the Statistics table to validate performance on your instrument

Start with the default settings (Pattern Size: Very Small, Accuracy: Medium, Min Touch Points: 4). The indicator will detect rectangular ranges and signal breakouts automatically. Use the Statistics table to validate before trading live.
FAQ
What is a consolidation or rectangle pattern?
A consolidation pattern (also called a rectangle pattern) forms when price moves between parallel horizontal support and resistance levels, creating a defined trading range. Consolidation patterns signal temporary market equilibrium and typically resolve with a directional breakout.
How does the Consolidation and Range Pattern indicator detect patterns?
The Consolidation and Range Pattern indicator uses swing-based boundary detection with configurable minimum touch points. Price must validate each boundary a minimum number of times (default 4) before the pattern qualifies. Smart Breakout Detection then filters false breakouts using an ATR-based tolerance threshold.
What is Smart Breakout Detection?
Smart Breakout Detection is a built-in filter that distinguishes between price briefly touching a boundary and genuinely breaking through it. The Consolidation and Range Pattern indicator uses a tolerance threshold to classify each boundary interaction, reducing false breakout signals that plague simpler range-break indicators.
How many take profit targets does the indicator provide?
The Consolidation and Range Pattern indicator provides up to three take profit targets (TP1 at 100%, TP2 at 150%, TP3 at 200% of the range height by default). TP2 and TP3 are optional and can be disabled independently. A minimum risk/reward ratio filter ensures only trades above your threshold generate signals.
Can I run two detection sizes simultaneously?
Yes, the Consolidation and Range Pattern indicator supports dual-size detection. Pattern 1 runs by default (Very Small size), and an optional Pattern 2 (Medium size) can be enabled for simultaneous multi-scale range identification on the same chart.
Next Steps
Pattern Detection
Learn how consolidation patterns are detected with touch point validation and Smart Breakout filtering.
Risk Management
Explore three TP targets, minimum RR filter, and position sizing features.
Settings
Configure detection sizes, accuracy, and visualization options.
Alerts
Set up real-time notifications for pattern detection and breakout signals.