EA-17562 · Trend Following

Get trend

This EA identifies trend direction using technical indicators and opens trades in the direction of the prevailing trend. It aims to capture sustained directional moves by entering when trend conditions are confirmed. The system typically uses moving averages or similar trend-following indicators to determine market direction.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsMA, ADX, ATR
Author—

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD+0.04%+0.03%5.49%10841.10%0.030.0110+$0.35Reliable
GBPUSD+9.83%+8.49%3.08%12150.00%1.783.194+$8.39Reliable
USDJPY-8.24%-7.20%9.08%12140.00%-1.57-0.917−$6.74Reliable
XAUUSD-44.62%-38.63%90.09%14150.00%0.37-0.498−$33.63Reliable

Profitable on 2 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 57% of 95 · GBPUSD: better than 98% of 95 · USDJPY: better than 3% of 95 · XAUUSD: better than 25% of 96

Month by month

MarketMonths with a gainBest monthWorst month
EURUSD46%+3.29% 2026-02-2.11% 2026-01
GBPUSD62%+4.09% 2026-02-1.56% 2026-08
USDJPY31%+2.95% 2025-12-2.65% 2026-08
XAUUSD46%+59.34% 2026-06-35.83% 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

This EA implements a classic trend-following strategy that identifies the prevailing market direction using technical indicators and enters trades in alignment with the detected trend. Entry conditions are typically based on moving average crossovers, price breaking above/below key moving averages, or directional confirmation from trend indicators like ADX. Exit conditions may include opposing signal generation, fixed stop-loss and take-profit levels, or trailing stop mechanisms. Position sizing likely uses either fixed lot sizes or an account-equity-based dynamic calculation approach. Money management may incorporate basic risk controls such as stop-loss placement, though the specifics depend on the source code implementation. The overall strategy logic depends on trend persistence and is vulnerable to whipsaw losses in ranging or choppy markets.

Strengths

  • Trend-following strategy can capture large directional moves in clear trending markets
  • Trading with the trend aligns with fundamental market principles and has sound long-term logic
  • Relatively simple structure with adjustable parameters allows optimization for different instruments

Weaknesses

  • Vulnerable to frequent false signals and consecutive losses in ranging or choppy markets
  • Trend-following inherently lags price action, leading to suboptimal entry and exit timing
  • Lacks adaptive market regime detection to switch between trend and range trading modes

Possible improvements

  • Add market regime detection to reduce or pause trading during ranging conditions
  • Implement trailing stop or dynamic stop-loss to better protect accumulated profits
  • Add multi-timeframe confirmation to improve signal reliability and reduce false entries

Risk assessment

Overall risk: Medium

  • Trend-following strategy may produce consecutive losses in ranging markets
  • Lack of adaptive market regime switching may cause continued entries in unfavorable conditions
  • Stop-loss settings may lack flexibility, creating slippage risk during high volatility

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation1.0
Overall2.2

Parameters

ParameterDefaultDescription
LotSize0.1Lot size per trade
StopLoss50Stop loss in points, limits max loss per trade
TakeProfit100Take profit in points, locks profit target per trade
TrendPeriod20Trend determination period
MagicNumber12345Magic number for closing, 0 for all positions

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.