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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.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
Parameters
| Parameter | Default | Description |
|---|---|---|
Lots | 0.1 | Initial lot size, starting volume of martingale sequence |
StopLoss | 0 | Stop loss in points, 0 means no stop loss |
TakeProfit | 0 | Group take profit target amount (in currency) |
BykovTrend period | 8 | BykovTrend indicator period parameter |
ColorX2MA period | 14 | ColorX2MA moving average period parameter |
MMRec_Klot | 2.0 | Martingale recovery multiplier coefficient |
MMRec_MaxLots | 5.0 | Martingale recovery maximum lot size limit |
TrailingStop | 0 | Fixed-point trailing stop, 0 means use SAR trailing |
MagicNumber | 123456 | EA magic number identifier |
Timeframe | 0 | Trading timeframe |
Similar Martingale EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.