EA-48251 · Trend Following

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

RiskMedium
Blow-up riskHigh
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
IndicatorsEMA, RSI, MACD, ATR
AuthorHung_tthanh@yahoo.com.

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD-5.07%-4.42%8.97%5425.90%-1.33-0.5612−$9.39Reliable
GBPUSD+5.04%+4.36%3.70%6044.10%1.041.367+$8.14Reliable
USDJPY-7.33%-6.40%8.84%7237.50%-1.50-0.838−$10.18Reliable
XAUUSD-90.94%-86.25%96.23%7143.70%-1.08-0.9410−$128.08Account 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

MarketMonths with a gainBest monthWorst month
EURUSD31%+2.87% 2026-01-2.19% 2026-07
GBPUSD54%+3.04% 2026-01-1.80% 2025-11
USDJPY38%+1.26% 2026-06-2.79% 2026-08
XAUUSD15%+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

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness2.0
Innovation2.0
Documentation2.0
Overall2.3

Parameters

ParameterDefaultDescription
LotSize0.01Fixed lot size per trade
StopLoss500Stop loss in points
TakeProfit1000Take profit in points
FastMA_Period10Fast moving average period
SlowMA_Period50Slow moving average period
RSI_Period14RSI indicator period
TrailingStop300Trailing stop in points
MagicNumber123456EA magic number,for identifying orders
MaxSpread30Maximum allowed spread

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.