# Description — Aurum Trend Rider MT5 (สำหรับวางในช่อง Description ของ MQL5)
---
Aurum Trend Rider MT5 is a trend-following EA for Gold (XAUUSD), built on the same EMA breakout entry logic as our proven MT4 product, adapted for MetaTrader 5's real-tick backtesting engine.
**Out-of-sample backtest (XAUUSDc, H1, full year 2025 — never used to tune any parameter): 406 trades, win rate 72.2%, Profit Factor 1.23, Max Drawdown 7.92%, Sharpe Ratio 1.49.**
**In-sample backtest (1 Jan – 14 Aug 2026): 108 trades, win rate 75.9%, Profit Factor 1.38.**
NO grid. NO martingale. NO averaging down. NO hedging.
Every trade opens with an ATR-based stop loss.
HOW IT WORKS
- Entry: price closes beyond both a 6-period and 14-period EMA, within a configurable pip-distance filter (avoids chasing extended moves)
- Stop loss: ATR-based, adapts automatically to current volatility
- Trade management: once profit reaches the break-even trigger, the stop is locked at a small profit and the position rides the trend with no fixed take-profit target — designed to capture extended moves rather than cap gains early
- Position sizing: choose between fixed lot or risk-percent mode (risk-percent scales position size to account balance automatically)
- Protection: daily loss limit, minimum equity floor, maximum spread filter, cooldown between trades, daily trade cap
WHY THIS EXIT DESIGN
During development we compared three exit approaches on identical entry signals: fixed take-profit, break-even-then-ride, and break-even-with-trailing-stop. The break-even-then-ride approach — used in this EA — outperformed both alternatives on the same 7.5-month dataset (Profit Factor 1.38 vs 1.03 and 0.85 respectively), because it gives the position room to develop without a trailing stop cutting it short during normal pullbacks.
---
⚙️ SETUP GUIDE — Recommended Settings
The published backtest results (PF 1.23–1.38, DD 7.68–15.19%) were produced with these settings:
InpTF = PERIOD_H1 InpUseRiskPercent = true ← IMPORTANT: default is false (fixed 0.01 lot) InpRiskPercent = 0.5 ← best risk-adjusted return (Sharpe 1.49) in our testing InpExitOnCrossFlip = false (leave at default)
All other inputs can be left at their default values.
Why no fixed take-profit? Every trade opens with an ATR-based stop loss. Once profit reaches InpBreakEvenPips (default 100), the stop locks in a small profit and the position rides the trend with no fixed target — we compared this against a fixed take-profit and a trailing-stop approach during development, and this design produced the best results on identical entry signals.
Risk% reference (2025 out-of-sample, 406 trades):
- Fixed lot: ~0.02% annual return, ~0.02% max DD
- 0.5% risk: ~7.3% annual return, ~7.9% max DD, Sharpe 1.49 (recommended)
- 1.0% risk: ~14.1% annual return, ~15.2% max DD
Test on demo first. Start with a lower risk% and increase gradually as you gain confidence.