EA-305 · Mean Reversion

Expert_ABE_BE_Stoch

This EA uses a Stochastic oscillator combined with a Moving Average filter (CBE_BE_Stoch signal) to generate buy and sell signals within the MQL5 Standard Library expert framework. It trades with fixed lot sizing and no trailing stop, relying on the signal module's threshold-based open/close logic for entry and exit decisions.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskHigh risk
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsStochastic, MA
AuthorMetaQuotes Software Corp.

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.00%0.00%0.00%0—————Not convertible yet

Why this EA never traded: no entry rule survived the conversion.

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

  • Has no stop loss or trailing stop

On its own this is not a typical blow-up pattern, 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 of this EA is based on a mean reversion approach using a combination of Stochastic oscillator and Moving Average filter (CBE_BE_Stoch signal). Entry conditions are determined by the CBE_BE_Stoch signal filter, entering when signal strength exceeds the open threshold (default 40) and exiting when it falls below the close threshold (default 20). The Stochastic parameters are K period 47, D period 9, and slowing period 13, combined with a 5-period Moving Average for filtering, characteristic of an overbought/oversold reversal strategy. Position sizing uses a fixed lot model (CMoneyFixedLot) with a default of 0.1 lots, without dynamic adjustment based on account balance. Money management only sets a percentage parameter (10%) and fixed lots, lacking dynamic risk control mechanisms. Exit conditions rely entirely on signal thresholds with no stop loss or take profit set (both 0), and no trailing stop, resulting in weak risk control.

Strengths

  • Uses MQL5 Standard Library architecture with clean, well-structured code that is easy to maintain and extend
  • Stochastic combined with Moving Average filter reduces false signals
  • Adjustable signal thresholds provide flexible control over entry and exit conditions
  • Fixed lot sizing simplifies position management, suitable for beginners

Weaknesses

  • Stop loss and take profit are both 0, lacking basic risk protection
  • No trailing stop means profitable positions may experience significant drawdowns
  • Fixed lot size does not adjust with account size, preventing dynamic risk management
  • Relies entirely on signal thresholds for exit, may not exit timely during sharp market moves
  • Missing spread filter and slippage protection, may produce losing trades under adverse conditions

Possible improvements

  • Add stop loss and take profit parameters for basic risk protection
  • Introduce dynamic position sizing based on account balance and volatility
  • Add spread filter and slippage protection mechanisms
  • Add multi-timeframe confirmation to reduce false signals

Risk assessment

Overall risk: High risk

  • Stop loss and take profit both 0, position risk is completely uncontrolled
  • No trailing stop to protect accumulated profits
  • Lacks new bar check despite EveryTick=false, may open repeated positions

Evaluation scores

Code quality4.0
Strategy logic3.0
Risk management1.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
Signal_ThresholdOpen40Open position signal threshold [0...100]
Signal_ThresholdClose20Close position signal threshold [0...100]
Signal_PriceLevel0.0Price level for trade execution
Signal_StopLevel0.0Stop loss level (points), 0=no stop loss
Signal_TakeLevel0.0Take profit level (points), 0=no take profit
Signal_Expiration4Pending order expiration (bars)
Signal__StochPeriodK47Stochastic K-line period
Signal__StochPeriodD9Stochastic D-line period
Signal__StochPeriodSlow13Stochastic slowing period
Signal__StochAppliedSTO_LOWHIGHStochastic price application method
Signal__MAPeriod5Moving average period
Signal__Weight1.0Signal filter weight (0-1.0)
Money_FixLot_Percent10.0Money management percentage
Money_FixLot_Lots0.1Fixed trading lots

Similar Mean Reversion 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.