EA-20304 · Breakout

EA Stop Order

This EA places stop orders (buy stop and sell stop) at a configurable distance from the current price, aiming to capture breakout momentum when price moves beyond a defined range. It automatically manages pending orders with stop loss and take profit levels, and can trail stops or delete unfilled orders after a specified period. The strategy is a classic stop-order breakout system suitable for volatile market conditions.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryBreakout
RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsStop Order, Price Action
AuthorCopyright © 2011, Хлыстов Владимир

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-5.16%-4.50%6.07%11647.80%————Same as other EAs
GBPUSD-1.90%-1.65%4.87%11845.30%————Same as other EAs
USDJPY-5.55%-4.84%8.83%11546.50%————Same as other EAs
XAUUSD+12.05%+9.86%52.68%11249.50%————Same as other EAs

On every market this backtest is identical to EA-21929. The automatic conversion almost certainly lost what makes this EA different (a custom indicator, a filter or the money management), so these results are not ranked or counted.

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.

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

EA Stop Order employs a classic stop-order breakout strategy by placing a Buy Stop above the current price and a Sell Stop below it. The entry condition is triggered when price breaks through a pre-configured distance threshold, confirming the breakout direction before entering in the trend's direction. Exit conditions are controlled through stop loss and take profit parameters, ensuring each trade has a defined risk-reward ratio. Position sizing is based on a fixed lot parameter, with some versions supporting dynamic lot calculation based on account balance. Money management provides stop loss distance parameters to control per-trade risk, but lacks comprehensive account-level risk controls such as maximum drawdown limits or consecutive loss protection. The EA also features pending order timeout deletion to avoid frequent false breakout triggers during ranging markets.

Strengths

  • Simple and clear strategy logic, easy to understand and optimize, suitable for beginners
  • Stop order breakout entry effectively captures momentum at trend initiation
  • Each trade has defined stop loss and take profit, maintaining controllable risk-reward ratio
  • Pending order timeout deletion reduces unnecessary losses from false breakouts
  • Bi-directional pending orders ensure no breakout opportunity is missed in either direction

Weaknesses

  • Lacks account-level money management with no maximum drawdown or daily loss limits
  • Fixed lot sizing ignores account balance changes, potentially leading to overtrading or underutilization of capital
  • Prone to frequent false breakout triggers during ranging markets, causing consecutive stop losses
  • No new bar check mechanism, may attempt to place orders every tick, wasting resources
  • Lacks volatility filter (e.g., ATR), using identical parameters across different volatility regimes produces inconsistent results

Possible improvements

  • Add ATR-based adaptive stop distance and order placement distance, enabling the strategy to auto-adjust parameters based on market volatility
  • Implement account-level risk controls including maximum drawdown limits, daily maximum loss limits, and trading pause after consecutive losses
  • Implement dynamic position sizing that auto-calculates lot size based on account balance and risk percentage

Risk assessment

Overall risk: Medium

  • Bi-directional pending orders in ranging markets can trigger both stop losses simultaneously, causing double losses
  • No new bar check may lead to duplicate order placement or resource waste
  • Lacks market regime filter, continues trading even in unsuitable market conditions

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
StopDistance20Stop order distance from current price in points
StopLoss50Stop loss in points
TakeProfit100Take profit in points
Lots0.1Trading lot size
MagicNumber12345Manage positions with specific magic number only; 0 manages all
OrderExpire0Pending order expiration in hours; 0 for no expiration
MaxSlippage3Maximum allowed slippage

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.