Breakout Signals
This EA detects breakout signals when price moves beyond dynamically calculated range boundaries and provides trading signals or opens positions accordingly. It monitors price consolidation phases and identifies potential explosive moves when price breaks through support or resistance levels formed during ranging periods.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | -1.35% | -1.17% | 3.79% | 104 | 49.50% | -0.34 | -0.36 | 6 | −$0.98 | Reliable |
| GBPUSD | +2.22% | +1.92% | 4.17% | 105 | 50.50% | 0.43 | 0.53 | 7 | +$2.11 | Reliable |
| USDJPY | +1.03% | +0.90% | 5.80% | 94 | 51.10% | 0.25 | 0.18 | 6 | +$1.10 | Reliable |
| XAUUSD | -47.53% | -41.31% | 65.39% | 100 | 50.50% | -0.11 | -0.73 | 4 | −$45.51 | Reliable |
Profitable on 2 of 4 markets with reliable results.
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Against the other Breakout EAs with a reliable result on the same market: EURUSD: better than 28% of 18 · GBPUSD: better than 72% of 18 · USDJPY: better than 59% of 17 · XAUUSD: better than 21% of 19
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 46% | +2.40% 2026-04 | -1.29% 2026-02 |
| GBPUSD | 54% | +2.79% 2026-04 | -1.96% 2026-01 |
| USDJPY | 38% | +2.99% 2026-04 | -1.94% 2026-03 |
| XAUUSD | 46% | +29.19% 2026-04 | -37.59% 2026-08 |
From the backtest equity curve, sampled about every two days; only reliable results.
Blow-up risk: No blow-up pattern found
None of the usual blow-up patterns were found in the code, and the account was not stopped out in our backtests. That is not a guarantee: any EA can lose money.
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
The core strategy concept is breakout trading after price consolidation, generating signals when price breaches the upper or lower boundary of a range formed over a defined lookback period. Entry conditions trigger a buy when price breaks above the highest high of the preceding N bars, and a sell when price breaks below the lowest low. Exit conditions typically rely on reverse signals or fixed stop-loss and take-profit levels, with some versions incorporating trailing stop mechanisms. Position sizing allows user-defined lot sizes, with some parameters potentially supporting equity-based dynamic calculation. Money management depends on user-configured fixed stop-loss points and risk parameters, though no automatic equity-proportional adjustment mechanism is evident. The overall strategy logic is clear and represents a classic breakout trading approach, but it is vulnerable to false breakouts during choppy or ranging markets which can lead to consecutive losses.
Strengths
- Strategy logic is simple and clear, based on classic breakout trading principles that are easy to understand and verify
- Provides risk management parameters including stop-loss, take-profit, and trailing stop, offering some capital protection
- Allows customization of the range lookback period to adapt to different market volatilities and timeframes
Weaknesses
- Vulnerable to false breakout signals in choppy or ranging markets, which can lead to consecutive losses
- Lacks equity-proportional position sizing, relying on fixed lot sizes which may lead to uneven risk exposure
- No multi-timeframe confirmation mechanism, reducing the reliability of single-timeframe breakout signals
Possible improvements
- Add multi-timeframe confirmation, such as requiring H4 trend direction alignment before executing H1 breakout signals
- Incorporate a volatility filter (e.g., ATR) to dynamically adjust stop-loss distances during high-volatility periods, avoiding premature stop-outs
Risk assessment
Overall risk: Medium
- False breakouts in ranging markets can cause consecutive stop-loss hits
- Fixed lot sizing lacks equity-proportional control, creating excessive risk for small accounts or underutilization for large accounts
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
InpLotSize | 0.1 | Lot size per trade |
InpRangePeriod | 20 | Lookback bars for breakout range calculation |
InpStopLoss | 500 | Stop loss in points |
InpTakeProfit | 1000 | Take profit in points |
InpTrailingStop | 0 | Trailing stop in points, 0 to disable |
InpMagicNumber | 12345 | EA magic number for identifying orders |
InpTimeframe | H1 | Trading timeframe |
InpMaxSpread | 30 | Maximum allowed spread |
Similar Breakout EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.