EA-123 · Trend Following

Simple MA+ADX EA

This EA combines a Simple Moving Average (SMA) crossover with the ADX indicator to identify and trade trending markets. It enters long when the fast SMA crosses above the slow SMA and ADX confirms trend strength, and enters short on the reverse crossover with ADX confirmation. Exits are triggered by opposing crossover signals or stop-loss/take-profit levels.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsSMA, ADX
AuthorMetaQuotes Software Corp.

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD+2.90%+2.51%3.79%9347.30%0.670.777+$3.52Reliable
GBPUSD+1.37%+1.19%4.46%9451.10%0.280.316+$1.46Reliable
USDJPY0.00%0.00%0.00%0—————No trades
XAUUSD0.00%0.00%0.00%0—————No trades

Profitable on 2 of 2 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 75% of 95 · GBPUSD: better than 56% of 95

Month by month

MarketMonths with a gainBest monthWorst month
EURUSD54%+2.90% 2026-04-1.76% 2026-10
GBPUSD54%+3.79% 2026-04-1.90% 2026-01

From the backtest equity curve, sampled about every two days; only reliable results.

Strategy analysis

The core concept of this strategy uses dual moving average crossovers to determine trend direction while leveraging the ADX indicator to filter out range-bound markets, entering only when a trend is confirmed. Entry conditions are: open a long position when the fast SMA crosses above the slow SMA and ADX exceeds its threshold, and open a short position on the reverse crossover with ADX confirmation. Exit conditions include closing positions on opposing SMA crossover signals or hitting fixed stop-loss and take-profit levels. Position sizing uses a fixed lot approach without dynamic adjustment based on account equity or volatility. Money management is relatively simple, relying solely on stop-loss and take-profit parameters to control per-trade risk, lacking dynamic risk management mechanisms based on account balance or market volatility. The overall strategy logic is clear, but risk control measures are limited, and there is no protection against consecutive false signals during choppy market conditions.

Strengths

  • ADX filter reduces choppy market false signals and unnecessary losing trades
  • Dual MA crossover logic is simple and clear, easy to understand and optimize
  • Fewer strategy parameters reduce the risk of overfitting to historical data
  • Defined stop-loss and take-profit provide clear per-trade risk control
  • Performs well in strongly trending markets with favorable risk-reward ratios

Weaknesses

  • Fixed lot sizing cannot dynamically adjust positions based on market volatility or account risk
  • MA crossover signals have inherent lag, often entering far from optimal price levels
  • No scaling in or out mechanism to optimize positions as trends develop
  • Lacks new bar check, risking multiple entries on the same bar
  • ADX threshold requires separate optimization per symbol and timeframe, limiting universality

Possible improvements

  • Introduce ATR-based dynamic stop-loss and take-profit to adapt risk control to changing market volatility
  • Add new bar detection to prevent duplicate trade signals on the same bar
  • Implement dynamic position sizing based on account risk percentage instead of fixed lots

Risk assessment

Overall risk: Medium

  • Lack of new bar check may cause repeated entries on the same bar leading to position overload
  • Fixed lot size does not scale with account size, risking over-leveraging on small accounts
  • MA lag in ranging markets can lead to consecutive stop-loss hits

Evaluation scores

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

Parameters

ParameterDefaultDescription
FastMA_Period10Fast moving average period
SlowMA_Period50Slow moving average period
ADX_Period14ADX indicator period
ADX_Threshold25ADX trend strength threshold
StopLoss300Stop loss in points
TakeProfit600Take profit in points
Lots0.1Fixed trading lot size
MA_MethodMODE_SMAMoving average calculation method

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.