EA-21359 · Martingale

Exp_BykovTrend_ColorX2MA_MMRec

This EA uses the BykovTrend signal indicator combined with a ColorX2MA (double moving average with color) filter to generate trade entries, and implements a Martingale-style money management recovery system that increases lot size after consecutive losses. It opens positions based on indicator confluence and escalates position size to recover previous losses. The strategy is a trend-following entry with aggressive position sizing recovery mechanics.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMartingale
RiskDangerous
Blow-up riskElevated
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsBykovTrend, ColorX2MA, Moving Average
AuthorCopyright © 2018, Nikolay Kositsin

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: Elevated

  • Increases the position size after losses (martingale)

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 strategy concept combines the BykovTrend signal indicator with a ColorX2MA double moving average color filter for trend-following trades, entering positions when both indicators align in the same direction. Entry conditions require a BykovTrend buy or sell signal confirmed by the ColorX2MA moving average color matching the signal direction. Exit conditions are triggered by opposing signals, stop loss or take profit levels being hit, or potentially by trailing stop mechanisms. Position sizing employs a Martingale recovery system (MMRec) that increases lot size after losing trades, attempting to recover previous losses with a single larger winning trade. Money management calculates initial lots based on account balance and risk parameters, but the post-loss lot escalation creates exponentially increasing risk exposure. This approach faces extreme drawdown risk during consecutive losing streaks, making it a high-risk, high-reward trading method.

Strengths

  • Dual indicator confirmation (BykovTrend + ColorX2MA) reduces false signals and improves entry quality
  • Martingale recovery system effectively recoups losses in the short term, suitable for low-frequency consecutive loss scenarios
  • Maximum lot size cap (MMRec_MaxLots) provides some protection against extreme risk exposure
  • Clean code structure with parameterized design allows easy optimization and adjustment

Weaknesses

  • Martingale position escalation creates exponentially increasing risk during consecutive losses, potentially leading to account blowup
  • Stop loss defaults to 0, meaning full reliance on opposing signals for exit if not manually set, creating extreme risk
  • No spread filter mechanism means frequent trading in high-spread environments erodes profits
  • Lack of new bar check may cause repeated entries within the same candle
  • Martingale strategy inherently requires an infinite capital assumption, making it unsustainable in finite accounts

Possible improvements

  • Enforce mandatory stop loss setting, disallowing zero values to prevent unprotected position risk
  • Replace full Martingale with fixed-ratio scaling or semi-Martingale (1.5x instead of 2x) to reduce risk exposure during consecutive losses
  • Add new bar check and spread filter to prevent repeated entries on the same candle and high-spread slippage losses
  • Add maximum consecutive loss count limit that resets lot size to initial value when reached, preventing unlimited escalation

Risk assessment

Overall risk: Dangerous

  • Martingale lot doubling mechanism creates exponential position growth during consecutive losses,easily leading to account liquidation
  • Default stop loss of 0 means positions rely entirely on opposing signals, creating prolonged drawdown risk
  • Lack of new bar check may cause repeated entries within the same candle, amplifying risk exposure

Evaluation scores

Code quality3.0
Strategy logic2.0
Risk management1.0
Robustness2.0
Innovation2.0
Documentation1.0
Overall1.8

Parameters

ParameterDefaultDescription
Lots0.1Initial lot size, starting volume of martingale sequence
StopLoss0Stop loss in points, 0 means no stop loss
TakeProfit0Group take profit target amount (in currency)
BykovTrend period8BykovTrend indicator period parameter
ColorX2MA period14ColorX2MA moving average period parameter
MMRec_Klot2.0Martingale recovery multiplier coefficient
MMRec_MaxLots5.0Martingale recovery maximum lot size limit
TrailingStop0Fixed-point trailing stop, 0 means use SAR trailing
MagicNumber123456EA magic number identifier
Timeframe0Trading timeframe

Similar Martingale 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.