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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | +0.04% | +0.03% | 5.49% | 108 | 41.10% | 0.03 | 0.01 | 10 | +$0.35 | Reliable |
| GBPUSD | +9.83% | +8.49% | 3.08% | 121 | 50.00% | 1.78 | 3.19 | 4 | +$8.39 | Reliable |
| USDJPY | -8.24% | -7.20% | 9.08% | 121 | 40.00% | -1.57 | -0.91 | 7 | −$6.74 | Reliable |
| XAUUSD | -44.62% | -38.63% | 90.09% | 141 | 50.00% | 0.37 | -0.49 | 8 | −$33.63 | Reliable |
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
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 46% | +3.29% 2026-02 | -2.11% 2026-01 |
| GBPUSD | 62% | +4.09% 2026-02 | -1.56% 2026-08 |
| USDJPY | 31% | +2.95% 2025-12 | -2.65% 2026-08 |
| XAUUSD | 46% | +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
Parameters
| Parameter | Default | Description |
|---|---|---|
LotSize | 0.1 | Lot size per trade |
StopLoss | 50 | Stop loss in points, limits max loss per trade |
TakeProfit | 100 | Take profit in points, locks profit target per trade |
TrendPeriod | 20 | Trend determination period |
MagicNumber | 12345 | Magic number for closing, 0 for all positions |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.