Range Contraction Break
- Indicators
-
Ich Khiem Nguyen
🚀 TRADE WITH EXNESS — ACCESS ALPHAONCHART BENEFITS
Register with Exness through my partner link to become eligible for selected AlphaOnChart Membership benefits, including MT5 Indicators, XAUUSD Trading Plan, MT5 tools and direct support.
👉 REGISTER WITH EXNESS - Version: 1.0
- Activations: 10
Range Contraction Break MT5
Quantitative Volatility Compression & Structural Expansion Breakout Engine
The Range Contraction Break indicator for MetaTrader 5 provides an algorithmic price action framework designed to detect explosive breakout opportunities emerging from progressive volatility compression cycles. Financial markets constantly alternate between periods of contraction (energy coiling) and directional expansion (energy release). When consecutive candles form progressively narrower ranges, price builds substantial kinetic pressure like a compressed spring. This software systematically quantifies this narrowing sequence and triggers high-probability directional entries the moment price violently expands beyond the boundary of the compression zone.
Calculations operate strictly on completed candle bars. Once a signal candle closes and confirms the expansion, the visual markers, arrows, and projected management lines remain fixed on historical data and will never repaint, shift, or recalculate.
Algorithmic Logic and Setup Execution
The calculation engine evaluates consecutive bar ranges and verifies breakout clearance against current market volatility.
1. Multi-Bar Range Contraction Recognition
- The algorithm continuously monitors a sequence of preceding candles defined by Bars that must show shrinking range (default: 3 bars).
- Each consecutive candle's high-to-low range must be strictly smaller than the range of the candle preceding it ( Range[N] < Range[N+1] ).
- This ensures that only genuine, orderly volatility compression is qualified, filtering out messy or erratic consolidation bars.
2. Directional Expansion Breakout (BUY / SELL)
- Bullish Expansion (BUY): A qualifying candle closes decisively above the highest high of the contraction zone, clearing the boundary by an additional ATR buffer factor ( Close > Contraction High + Buffer ).
- Bearish Expansion (SELL): A qualifying candle closes decisively below the lowest low of the contraction zone, clearing the boundary by the ATR buffer factor ( Close < Contraction Low - Buffer ).
- Execution Reference: Confirmation occurs precisely at bar close. The opening of the immediate subsequent candle serves as the operational entry reference.
Integrated Risk Architecture and Asymmetric R:R Profile
Because the setup triggers immediately out of a narrow compression zone, the initial risk distance is inherently compact, unlocking exceptional reward-to-risk (R:R) potential:
- Tight Structural Stop Loss: Positioned at the opposite extreme of the contraction cluster (below the contraction low for BUY, above the contraction high for SELL), augmented with dynamic ATR padding. If price retraces back across the compression range, the setup is promptly invalidated with minimal loss.
- Standardized R-Multiple Targets: Four progressive Take Profit objectives calculated as exact multiples of the initial risk distance (TP1 through TP4).
- Visual Lifecycle Machine: Renders entry lines, protective stop levels, projected target ladders, and visual risk/reward zone shading directly on the active chart.
Core Modules and Analytical Features
- Multi-Symbol & Multi-Timeframe Scan Radar: A built-in dashboard monitors multiple instruments simultaneously across M5, M15, M30, H1, H4, and D1, providing instant visual alerts whenever a contraction-expansion cycle triggers across your watchlist.
- Dynamic ATR Breakout Buffer: Requires price to close beyond the contraction extreme by a defined fraction of the Average True Range, effectively eliminating deceptive wick rejections and false breaks.
- Trend Alignment Gate: Allows traders to restrict breakout signals to align strictly with the dominant market trend.
- Multi-Channel Alert Dispatcher: Native desktop pop-ups, acoustic alerts (.wav), and push notifications delivered directly to the MetaTrader mobile app.
Complete Input Parameters & Trader Manual
All parameters are organized below by functional groups exactly as they appear in your MetaTrader 5 Inputs tab. Use this guide to fine-tune the detection engine to your asset and trading horizon.
1. Range Contraction Signal Parameters
Governs the compression sequence requirements and breakout validation buffer.
| Setting Name (In MT5) | Default | How It Affects Your Trading & Setup Guide |
|---|---|---|
| Bars that must show shrinking range | 3 | Number of consecutive candles required to show diminishing high-to-low ranges. 3 bars provides balanced intraday setups; increasing to 4 or 5 bars requires extreme coil compression, producing fewer but highly explosive expansion setups. |
| Min close beyond contraction extreme (x ATR) | 0.05 | Minimum clearance required beyond the contraction high/low, scaled by ATR. Prevents premature triggers when price merely nudges the boundary by a fractional point without real expansion volume. |
| ATR period | 14 | Averaging period for measuring background volatility, used for breakout buffer validation and dynamic Stop Loss padding. |
| Protective swing lookback (bars) | 20 | Historical bar window scanned to determine structural invalidation and support/resistance context around the setup. |
2. Stop Loss & Take Profit Target Ladders
Defines protective risk boundaries and progressive reward-to-risk (R:R) exit targets.
| Setting Name (In MT5) | Default | How It Affects Your Trading & Setup Guide |
|---|---|---|
| Stop Loss distance (x ATR) | 3.0 | Maximum volatility ceiling for the protective Stop Loss. Prevents excessively wide stops during sudden spread expansion. |
| Early-exit SL (x R) | 1.0 | Fraction of initial risk distance where a trade is considered invalidated if price reverses before reaching target rungs. |
| Take Profit 1 (R:R) | 1.0 | First target level at 1.0x initial risk distance. Recommended for early partial profit-taking or adjusting stop to breakeven (0 = disabled). |
| Take Profit 2 (R:R) | 2.0 | Primary liquidity target (2.0x risk distance) capturing the initial momentum thrust of the expansion. |
| Take Profit 3 (R:R) | 3.0 | Extended target (3.0x risk distance) for strong trending expansion legs. |
| Take Profit 4 (R:R) | 4.0 | Maximum runner target (4.0x risk distance) designed to extract maximum yield from full trend continuations. |
| Enable TP1 ping-pong re-entry | true | When enabled, permits secondary re-entry tracking if price pulls back and expands again after securing TP1. |
3. Multi-Symbol & Multi-Timeframe Scan Radar
Controls watchlist monitoring across instruments and timeframes from a single screen.
| Setting Name (In MT5) | Default | How It Affects Your Trading & Setup Guide |
|---|---|---|
| Scan multiple symbols & timeframes | true | Master toggle for the on-chart scan table. Disable (false) if you want the indicator to focus exclusively on the active chart. |
| Scan all Market Watch symbols | false | When true, scans every instrument visible in your Market Watch. When false, scans only the symbols specified in the input field below. |
| Symbol list, comma separated | (Empty) | Custom list of pairs to monitor (e.g. EURUSD,GBPUSD,USDJPY,XAUUSD,BTCUSD ). Leaving this blank monitors the current chart symbol only. |
| Hard cap on the symbol list | 100 | Safety throttle to prevent terminal resource overload when working with extensive broker symbol lists. |
| Timeframes | M15,M30,H1,H4,D1 | Timeframe horizons evaluated by the scan radar matrix. |
| Only take signals in trend direction | false | Trend Filter Gate: When enabled, filters breakout signals to align strictly with the prevailing trend (BUY only in uptrends; SELL only in downtrends). |
4. Visual Chart Display & Historical Depth
Configures chart aesthetics, visual zones, and history depth.
| Setting Name (In MT5) | Default | How It Affects Your Trading & Setup Guide |
|---|---|---|
| Chart history to scan (bars) | 3000 | Number of historical candles loaded upon attachment. Lowering this value (e.g. to 1000) improves initial chart loading speed on slower VPS systems. |
| Show last N setups | 0 | Number of setups drawn on chart. Set to 0 to retain all historical setups, or specify a number (e.g. 5 ) to keep charts completely uncluttered. |
| Shade risk/reward zones | true | Draws visual semi-transparent color bands for the risk zone (red) and profit progression zones (green). |
| Draw ONLY recommended TP line | false | When enabled, hides intermediate TP lines and only renders the primary target line for clean chart aesthetics. |
| Show win-rate panel | true | Displays the floating summary dashboard showing historical distribution across TP1–TP4. |
5. Alert Notifications
Instant notification delivery when a setup confirms at candle close.
| Setting Name (In MT5) | Default | How It Affects Your Trading & Setup Guide |
|---|---|---|
| Enable alerts | false | Master toggle for alert notifications. Set to true to activate real-time signaling. |
| Popup window | true | Triggers a standard MetaTrader 5 dialog box with instrument, timeframe, and entry details. |
| Sound | false | Plays an audible terminal alert (.wav file) upon trigger confirmation. |
| Push to phone | false | Sends push notifications to your mobile MetaTrader 5 app (requires MetaQuotes ID configured in terminal settings). |
6. Automated Trading Integration (Companion EA)
Connection parameters for linking the indicator to an automated execution robot.
| Setting Name (In MT5) | Default | How It Affects Your Trading & Setup Guide |
|---|---|---|
| Send signals to the auto-trade EA | true | Transmits verified signal data into terminal GlobalVariables for automated execution by compatible EAs. |
| Signal ID (Magic Number) | 925890 | Unique identifier matching the indicator with your automated robot. Must match the Producer Magic setting in your EA. |
Operational Environment and Technical Notices
- Ideal Market Conditions: Contraction setups perform with optimal efficiency on active intraday horizons (M5, M15, M30, H1) across high-liquidity instruments including Spot Gold (XAUUSD) and Major FX pairs (EURUSD, GBPUSD, USDJPY).
- Low-Volatility Regimes: Avoid applying the indicator during holiday lulls or late bank rollover sessions when narrow candle ranges stem from low market participation rather than institutional coiling.
- Account Compatibility: Fully operational across both Netting and Hedging MetaTrader 5 account types with standard or ECN execution.
- Statistical Notice: Technical indicators are analytical decision-support tools. Historical or simulated backtest results do not constitute a guarantee of future operational performance. Always implement disciplined risk management and position sizing.
Technical Support and Demo Evaluation
- Traders are invited to evaluate functionality in the built-in MetaTrader 5 Strategy Tester using the official free demo version available directly on this page.
- For inquiries, feature explanations, or setup guidance, please communicate exclusively through the MQL5 Comments tab or via MQL5 Direct Messaging.
