2MA_4Level
This EA uses a dual moving average crossover system across four progressively larger position levels to enter trend-following trades. It opens additional positions at each crossover confirmation level, scaling into trends with increasing lot sizes. Exits are triggered on MA crossover reversal or take-profit/stop-loss levels.
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 | +1.62% | +1.40% | 2.02% | 78 | 56.40% | 0.50 | 0.80 | 4 | +$2.07 | Reliable |
| GBPUSD | +0.18% | +0.16% | 4.22% | 84 | 47.60% | 0.06 | 0.04 | 14 | +$0.22 | Reliable |
| USDJPY | +0.78% | +0.68% | 4.14% | 81 | 48.10% | 0.21 | 0.19 | 5 | +$0.96 | Reliable |
| XAUUSD | -10.49% | -8.75% | 57.31% | 78 | 57.70% | 0.23 | -0.18 | 3 | −$13.45 | Reliable |
Profitable on 3 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 Trend Following EAs with a reliable result on the same market: EURUSD: better than 69% of 95 · GBPUSD: better than 47% of 95 · USDJPY: better than 60% of 95 · XAUUSD: better than 39% of 96
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 54% | +2.02% 2026-04 | -1.04% 2026-03 |
| GBPUSD | 54% | +2.26% 2026-07 | -2.15% 2026-10 |
| USDJPY | 38% | +2.33% 2026-04 | -1.96% 2026-03 |
| XAUUSD | 46% | +60.54% 2026-04 | -35.00% 2026-02 |
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 strategy of this EA is a dual moving average crossover trend-following system, using the crossover of a fast and slow moving average to determine trend direction. Entry conditions are a bullish crossover (fast MA crossing above slow MA) for long positions and a bearish crossover for short positions, with positions scaled in across four progressive levels, each with increasing lot sizes in a pyramiding fashion. Exit conditions rely on a reverse MA crossover signal or hitting preset take-profit and stop-loss levels. Position sizing employs a four-level progressive scaling approach, which can accumulate large positions during extended trends. Money management lacks a clear per-trade risk percentage control, and the escalating level sizes may result in excessively heavy total exposure. The overall strategy logic is straightforward, but it is prone to frequent whipsaw trades in ranging markets, and the four-level pyramiding without stringent stop-loss discipline poses significant risk.
Strengths
- Strategy logic is simple and clear, easy to understand and debug
- Four-level scaling-in allows capturing maximum profit during strong trends
- Has explicit take-profit and stop-loss, providing a basic risk control framework
Weaknesses
- Dual MA crossover generates frequent false signals in ranging markets, leading to consecutive losses
- Four-level progressive scaling has no maximum position cap, potentially causing severe drawdowns in adverse conditions
- Lacks a range/trend market state filter, cannot automatically adapt to different market environments
Possible improvements
- Add a trend strength filter (e.g., ADX) to only enter trades when the trend is clear, reducing false signals in ranging markets
- Implement a maximum total position limit and overall risk exposure control to prevent excessive accumulation in one direction
Risk assessment
Overall risk: Medium
- Four-level scaling-in can cause significant drawdowns on trend reversals
- Lacks new bar check mechanism, may repeatedly open positions within a single bar
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
FastMA_Period | 10 | Fast MA period |
SlowMA_Period | 50 | Slow MA period |
Level1_Lot | 0.01 | Level 1 position lot size |
Level2_Lot | 0.02 | Level 2 position lot size |
Level3_Lot | 0.05 | Level 3 position lot size |
Level4_Lot | 0.1 | Level 4 position lot size |
TakeProfit | 500 | Take profit per order in pips |
StopLoss | 300 | Initial stop loss distance, 0 for no initial SL |
MA_Method | MODE_SMA | MA calculation method (Simple/Exponential/Weighted, etc.) |
MA_AppliedPrice | PRICE_CLOSE | MA applied price |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.