EA-19936 · Breakout

Ambush

Ambush is a breakout-based Expert Advisor that identifies consolidation ranges and enters trades when price breaks out of those ranges. It uses pending orders to capture momentum from range expansion after periods of price compression. The EA places buy-stop and sell-stop orders at the boundaries of identified ranges and manages them with stop-loss and take-profit levels.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryBreakout
RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsPrice Action, Range High/Low, ATR
AuthorZuzabush

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-1.85%-1.61%4.92%12349.20%-0.39-0.386−$1.24Reliable
GBPUSD-1.70%-1.48%6.86%12150.00%-0.27-0.257−$1.22Reliable
USDJPY+3.12%+2.71%4.11%12353.30%0.620.767+$2.43Reliable
XAUUSD-16.43%-13.79%66.77%12049.60%0.29-0.257−$11.73Reliable

Profitable on 1 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 17% of 18 · GBPUSD: better than 28% of 18 · USDJPY: better than 76% of 17 · XAUUSD: better than 42% of 19

Month by month

MarketMonths with a gainBest monthWorst month
EURUSD38%+2.06% 2026-02-1.47% 2026-01
GBPUSD54%+2.15% 2026-02-3.70% 2026-03
USDJPY54%+2.94% 2026-07-1.54% 2025-11
XAUUSD46%+28.04% 2026-07-23.14% 2026-05

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 concept of the Ambush strategy is to identify market consolidation ranges (sideways phases) and then place breakout pending orders at the upper and lower boundaries of those ranges. Entry conditions: after price forms a narrow trading range over a defined period, the EA places a Buy Stop order above the range high and a Sell Stop order below the range low, waiting for a breakout to trigger the order automatically. Exit conditions include preset take-profit and stop-loss levels, as well as deletion of pending orders when the range becomes invalid or the breakout fails to occur within a timeout period. Position sizing supports fixed lot trading, and some versions may include dynamic lot calculation based on account balance. Money management relies on stop-loss settings to control per-trade risk, though the degree of risk control depends on parameter configuration. The strategy's strength lies in capturing the early stage of trend initiation, but the risk is that false breakouts can lead to frequent stop-loss triggers.

Strengths

  • Captures early trend initiation with typically favorable risk-reward ratios
  • Uses pending orders for entry, avoiding emotional trading with strong execution discipline
  • Clear strategy logic based on price action rather than lagging indicator signals
  • Post-consolidation breakouts have statistically positive expectancy
  • Parameterized design allows optimization and adaptation to different instruments

Weaknesses

  • False breakouts cause frequent stop-losses, performing poorly in choppy markets
  • Range identification relies on historical bars, limiting adaptability to dynamically changing markets
  • Lacks position addition and trailing stop mechanisms, potentially unable to fully capture major trends
  • Fixed lot sizing doesn't adjust for volatility, creating inconsistent risk exposure across instruments
  • Order expiry deletion may prematurely remove valid orders before significant moves

Possible improvements

  • Add ATR-based dynamic stop-loss and take-profit to automatically adjust risk parameters based on market volatility
  • Implement breakout confirmation mechanisms (e.g., close-price breakout or volume confirmation) to reduce false breakout entries
  • Implement trailing stop functionality to lock in floating profits during trending markets

Risk assessment

Overall risk: Medium

  • False breakout risk: consecutive stop-loss triggers in ranging markets can lead to accumulated losses
  • Lack of position check: may place orders even under unsuitable market conditions
  • Pending order management risk: orders may fill at unfavorable prices during extreme market events

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
RangePeriod20Number of bars to identify consolidation range
StopLoss50Stop loss in points
TakeProfit100Take profit in points
LotSize0.1Fixed trading lot size
OrderExpiry4Pending order expiration time in minutes
MagicNumber19936EA unique magic number identifier

Similar Breakout EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.