About the 2-Day Breakout Expert Advisor
The 2-Day Breakout Metatrader 4 Expert Advisor automates a time-based breakout strategy that targets range expansion following two-day consolidation periods.
Designed for traders who prefer rule-based entries and mechanical risk control, the EA identifies tight price ranges, places breakout orders above/below the range, and manages trades with configurable stops, targets, and trailing logic.
It is suitable for major currency pairs and can operate across multiple time frames, though it performs best when paired with low-spread brokers and stable liquidity.
Free Download
Download the “2DLimits_EA_v2.mq4” MT4 robot
Key Features
Two-Day Range Detection
Automatically detects two-day consolidation boxes and calculates breakout trigger levels using high/low pivots to reduce false signals from intraday noise.
Configurable Order Types
Supports market, buy stop, and sell stop breakout orders with adjustable buffer offsets and optional limit-entry re-test logic for conservative entries.
Dynamic Money Management
Risk-based lot sizing, fixed lots, or equity percentage sizing options are available to match different risk tolerance and account sizes.
Robust Trade Management
Built-in stop loss, take profit, partial close, and trailing stop rules allow the EA to capture large breakouts while limiting downside on failed moves.
Session & Spread Filters
Avoids trading during low-liquidity sessions and enforces a max-spread threshold to prevent entries during unfavorable execution conditions.
Strategy Tester Report
Find below the 2-Day Breakout robot strategy tester report for the USD/JPY forex pair on the Daily chart.
Overall Performance
The EA made a total profit of $2019.96 from a total of 379 trades.
The largest winning trade generated $168.65 in profits, while the largest losing trade generated a loss of $125.25.
Statistics:
Bars in test: 3594 ticks modelled
Initial deposit: $10000.00
Total net profit: $2019.96
Total trades: 379
Largest profit trade: $168.65
Largest loss trade: -$125.25
Consecutive wins: 2
Consecutive losses: 2
How the EA Works
- Scans daily candles to detect a two-day consolidation range using a configurable lookback.
- Calculates breakout thresholds above the high and below the low with an optional offset buffer.
- Places pending orders (buy stop/sell stop) or waits for market confirmation, depending on settings.
- Applies stop loss and take profit levels immediately upon entry.
- Moves stop to break even after a user-defined profit in pips or ATR multiples.
- Applies trailing stop or partial close rules to lock profits as the move develops.
- Respects time filters and disables trading during specified news or session windows.
Download Now
Download the “2DLimits_EA_v2.ex4” Metatrader 4 robot
Parameters & Settings
- Range Lookback (days) — set to 2 by default
- Breakout Offset (pips) — buffer to reduce false triggers
- Order Type — pending (buy/sell stop) or market confirmation
- Stop Loss & Take Profit (pips) — fixed or ATR-based
- Lot Sizing — fixed lot, risk percent per trade, or dynamic
- Break-even Trigger (pips) & Trailing Stop (pips)
- Max Spread Filter and Trading Sessions
- Magic Number, Slippage Tolerance, Logging Level
Recommended Trading Setup
- Use ECN/low-spread brokers on EURUSD, GBPUSD, USDJPY for the best execution.
- Host the EA on a VPS close to your broker for reliable 24/5 operation.
- Start with 0.5% to 1% risk per trade while calibrating settings.
- Test across multiple years and different market regimes before going live.
- Combine with a higher-time-frame trend filter to avoid fade trades against major swings.
FAQ
Can I run the EA on multiple currency pairs simultaneously?
Yes — assign a unique magic number per chart and ensure your account balance and VPS can handle concurrent positions.
Does the EA trade during major news events?
By default, it will avoid trading if the news/session filters are enabled; you can customize these windows to suit your risk tolerance.
What time frame is required?
The EA calculates ranges from daily candles but can be attached to intraday charts for visualization; execution is based on daily-range levels.
How often should I optimize parameters?
Quarterly or when market structure changes, use out-of-sample forward testing to confirm any optimized set before using live funds.
Is this strategy suitable for beginners?
Yes, but beginners must use demo accounts first and apply conservative risk controls while learning how breakouts behave in different market conditions.
Summary
The 2-Day Breakout MT4 Expert Advisor offers a mechanical, time-based approach to capture volatility expansion after short consolidations.
With configurable filters, risk management, and visual trade markers, it is built for systematic traders who prefer transparent rules and repeatable performance.
Test extensively, refine the parameters to your broker and account, and monitor live behavior closely to ensure the EA performs as expected in real market conditions.

