Gold Trend Trader
- Эксперты
- Версия: 1.0
- Активации: 5
TrendTrader — Gold Trend-Following Expert Advisor
A disciplined trend-following EA for Gold (XAUUSD) with strict risk management.
Strategy Logic
TrendTrader captures large directional moves in Gold by trading only in the direction of the higher-timeframe trend, never against it.
1. Trend filter: EMA 50 vs EMA 200 on the daily timeframe. The EA only trades long when EMA50 > EMA200, and short when EMA50 < EMA200.
2. Entry: A 50-day Donchian channel breakout. It enters long when price breaks the 50-day high (in an uptrend), short when price breaks the 50-day low (in a downtrend).
3. Stop loss: 2 × ATR(14) — adaptive to market volatility.
4. Take profit: No fixed target. A trailing stop (8 × ATR) locks in profit as the trend runs — "cut losses short, let winners run."
5. Position sizing: Fixed fractional risk — each trade risks only a configurable % of the account balance.
Backtest Results (Gold XAUUSD, 2016–2026, daily, 10 years)
| Metric | Result |
|---|---|
| Total return | +210% (1,000 → 3,100) |
| Annualized return | ~12.2% |
| Max drawdown | 11.3% |
| Win rate | 47.8% |
| Profit factor | 7.74 |
*Out-of-sample check: first 5 years +35%, last 5 years +129% — consistent across both halves.*
Disclaimer: past performance does not guarantee future results.
Parameters — how to adjust, and the trade-offs
| Parameter | Default | What it does | Turning it UP | Turning it DOWN |
| **Trend filter timeframe** | Daily | Higher timeframe for EMA trend | Fewer, higher-quality signals | More signals, more noise |
| **Fast EMA period** | 50 | Fast trend line | Slower to react, fewer whipsaws | Faster to react, more false signals |
| **Slow EMA period** | 200 | Slow trend line | Stronger trend definition, later entries | Earlier entries, weaker trend filter |
| **Donchian breakout period** | 50 | Breakout channel length | Captures bigger trends, fewer trades | More trades, more false breakouts |
| **Stop loss ATR multiplier** | 2.0 | Stop = entry ± 2×ATR | Wider stop (less likely stopped, larger loss per trade) | Tighter stop (smaller loss, more likely stopped out) |
| **Trailing stop ATR multiplier** | 8.0 | Trailing distance = 8×ATR | Lets profits run longer (more give-back) | Locks profit sooner (may exit trend too early) |
| **Risk per trade (%)** | 2.5 | % of balance risked per trade | Higher growth, larger drawdown | Lower growth, safer |
| **Max daily loss (%)** | 3.0 | Stops trading after daily loss | More room, more risk | Safer, stops earlier |
| **Max trades per day** | 3 | Daily trade limit | More opportunities | Less overtrading |
| **Max drawdown red line (%)** | 20.0 | Hard stop if drawdown hit | More tolerance | Safer, stops sooner |
Risk Management
Free Demo
A free demo version is available on the Market. Test it on your broker's demo account before buying.
