EA-17239 · Trend Following

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

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsMA
AuthorYuriy Tokman

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD+1.62%+1.40%2.02%7856.40%0.500.804+$2.07Reliable
GBPUSD+0.18%+0.16%4.22%8447.60%0.060.0414+$0.22Reliable
USDJPY+0.78%+0.68%4.14%8148.10%0.210.195+$0.96Reliable
XAUUSD-10.49%-8.75%57.31%7857.70%0.23-0.183−$13.45Reliable

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

MarketMonths with a gainBest monthWorst month
EURUSD54%+2.02% 2026-04-1.04% 2026-03
GBPUSD54%+2.26% 2026-07-2.15% 2026-10
USDJPY38%+2.33% 2026-04-1.96% 2026-03
XAUUSD46%+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

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

Parameters

ParameterDefaultDescription
FastMA_Period10Fast MA period
SlowMA_Period50Slow MA period
Level1_Lot0.01Level 1 position lot size
Level2_Lot0.02Level 2 position lot size
Level3_Lot0.05Level 3 position lot size
Level4_Lot0.1Level 4 position lot size
TakeProfit500Take profit per order in pips
StopLoss300Initial stop loss distance, 0 for no initial SL
MA_MethodMODE_SMAMA calculation method (Simple/Exponential/Weighted, etc.)
MA_AppliedPricePRICE_CLOSEMA applied price

Similar Trend Following 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.