EA-16649 · Trend Following

Exp_XMACandles

This EA trades based on the XMACandles indicator, which generates colored candlesticks derived from multiple moving average calculations. It opens buy positions when the indicator candles turn bullish (blue/green) and sell positions when they turn bearish (red), following the trend direction signaled by the XMA crossover logic.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★☆☆☆
TypeTrading EA
TimeframesM15, H1, H4, D1
IndicatorsXMA, Moving Average
Author—

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Not convertible yet
GBPUSD0.00%0.00%0.00%0—————Not convertible yet
USDJPY0.00%0.00%0.00%0—————Not convertible yet
XAUUSD0.00%0.00%0.00%0—————Not convertible yet

Why this EA never traded: no entry rule survived the conversion.

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.

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

The strategy concept is based on the XMACandles indicator, which generates colored candlesticks through multiple moving average crossovers and directional changes to reflect market trend strength and direction. Entry conditions: open a buy position when the XMACandles indicator changes from bearish color to bullish color, and open a sell position when it changes from bullish to bearish color, essentially a trend-following moving average crossover strategy. Exit conditions rely on the indicator color reversal signal, closing the current position when the trend direction changes and potentially opening a reverse position. Position sizing typically uses fixed lots or percentage-based calculation tied to account balance, with lot size parameters available in the configuration. Money management aspects may include stop loss and take profit settings, but this depends on parameter configuration; by default the EA may rely primarily on indicator signal reversals for risk control rather than explicit SL/TP levels.

Strengths

  • Trend-following strategy based on multiple moving averages with clear and understandable logic
  • Uses completed bar signal (SignalBar=1) to avoid repainting issues, improving signal reliability
  • Supports multiple XMA smoothing methods for flexibility across different market conditions

Weaknesses

  • Single indicator dependency lacks multi-dimensional confirmation, prone to frequent open/close in ranging markets
  • Default stop loss and take profit are zero, relying entirely on indicator reversal for exits, creating significant drawdown risk
  • Inherent lag of moving average indicators causes delayed entry at trend reversals, potentially leading to large slippage losses

Possible improvements

  • Add multi-confirmation mechanisms such as combining RSI or ATR to filter false signals and reduce frequent trading in ranging markets
  • Implement mandatory stop loss mechanisms and dynamic position sizing that adjusts stop distance and lot size based on ATR

Risk assessment

Overall risk: Medium

  • Default stop loss and take profit are zero, which may cause significant losses in extreme market conditions
  • Single indicator generates numerous false signals in ranging markets leading to consecutive losses
  • Lacks maximum drawdown protection and consecutive loss limiting mechanisms

Evaluation scores

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

Parameters

ParameterDefaultDescription
Money_FixLot0.1Fixed trading lot size
Money_Percent10Capital percentage
StopLoss0stop losspoints (0=nostop loss)
TakeProfit0take profitpoints (0=notake profit)
XMA_Method0XMA smoothing method (0=SMA)
XMA_Length10XMA period length
XMA_Phase0XMA phase parameter
XMA_Shift0XMA offset
MagicNumber12345EA magic number
SignalBar1Signal bar index(1=completed bar)

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.