KA-Gold Bot
KA-Gold Bot is a trend-following Expert Advisor designed for gold (XAUUSD) trading. It uses a combination of moving averages and momentum indicators to identify trend direction and enter trades in the direction of the prevailing trend. The EA includes built-in risk management with stop loss and take profit levels, and is optimized for gold's volatility characteristics.
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 | -5.07% | -4.42% | 8.97% | 54 | 25.90% | -1.33 | -0.56 | 12 | −$9.39 | Reliable |
| GBPUSD | +5.04% | +4.36% | 3.70% | 60 | 44.10% | 1.04 | 1.36 | 7 | +$8.14 | Reliable |
| USDJPY | -7.33% | -6.40% | 8.84% | 72 | 37.50% | -1.50 | -0.83 | 8 | −$10.18 | Reliable |
| XAUUSD | -90.94% | -86.25% | 96.23% | 71 | 43.70% | -1.08 | -0.94 | 10 | −$128.08 | Account stopped out |
Profitable on 1 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 11% of 95 · GBPUSD: better than 84% of 95 · USDJPY: better than 6% of 95 · XAUUSD: better than 15% of 96
Month by month
| Market | Months with a gain | Best month | Worst month |
|---|---|---|---|
| EURUSD | 31% | +2.87% 2026-01 | -2.19% 2026-07 |
| GBPUSD | 54% | +3.04% 2026-01 | -1.80% 2025-11 |
| USDJPY | 38% | +1.26% 2026-06 | -2.79% 2026-08 |
| XAUUSD | 15% | +21.38% 2026-01 | -66.19% 2026-07 |
From the backtest equity curve, sampled about every two days; only reliable results.
Blow-up risk: High
- Hit a stop-out in our backtest (equity below 10%) on XAUUSD
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 employs a trend-following strategy with its core logic based on moving average crossovers and price momentum to determine gold market trend direction. Entry conditions typically involve a fast moving average crossing a slow moving average, confirmed by momentum indicators such as RSI or MACD to validate trend strength, buying in uptrends and selling in downtrends. Exit conditions include preset stop loss and take profit levels, as well as active position closing when trend reversal signals are triggered. Position sizing allows users to define fixed lot sizes or use dynamic calculation based on account balance. Money management controls maximum loss per trade through fixed stop loss pips and risk ratios, but lacks global controls for overall exposure and maximum drawdown. The strategy parameters are optimized for gold's high volatility characteristics, but may generate frequent false signals in ranging markets leading to consecutive losses.
Strengths
- Clear strategy logic based on classic trend-following methods, easy to understand and verify
- Optimized for gold market characteristics with SL/TP settings accounting for gold's high volatility
- Built-in spread filter and trailing stop providing some risk protection
- Highly configurable parameters allowing users to adapt to different market conditions
- Uses magic number for order management, supporting multiple EAs running simultaneously without conflicts
Weaknesses
- Trend-following strategy prone to frequent false signals and consecutive losses in ranging markets
- Lacks global controls for overall exposure and maximum drawdown, risking uncontrolled exposure with multiple simultaneous trades
- No new bar check mechanism, potentially opening repeated positions on the same candle
- Dynamic lot sizing may amplify risk under high leverage
- Lacks filtering for major news events and trading sessions, potentially generating unfavorable trades during low liquidity periods
Possible improvements
- Add ranging market detection (e.g., ADX indicator) to automatically pause trading or switch strategies during consolidation
- Implement maximum drawdown limits and maximum simultaneous position controls for global risk management
- Introduce new bar checks and trading session filters to avoid repeated entries and unfavorable trades during low liquidity
Risk assessment
Overall risk: Medium
- No new bar check mechanism, potentially opening repeated positions on the same candle leading to overexposure
- Trend strategy generates consecutive losses in ranging markets without auto-pause mechanism
- Dynamic lot sizing may amplify per-trade risk under high leverage conditions
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
LotSize | 0.01 | Fixed lot size per trade |
StopLoss | 500 | Stop loss in points |
TakeProfit | 1000 | Take profit in points |
FastMA_Period | 10 | Fast moving average period |
SlowMA_Period | 50 | Slow moving average period |
RSI_Period | 14 | RSI indicator period |
TrailingStop | 300 | Trailing stop in points |
MagicNumber | 123456 | EA magic number,for identifying orders |
MaxSpread | 30 | Maximum allowed spread |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.