EA-16341 · Trend Following

Exp_ColorXvaMA_Digit

This EA trades based on the ColorXvaMA_Digit custom indicator, which applies a double-smoothing approach using two configurable moving average methods. It opens buy positions when the indicator signals an uptrend and sell positions when it signals a downtrend, with configurable money management, stop loss, and take profit settings.

Open the interactive view (equity curve, symbol switch)

Key facts

RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH4, H8, D1
IndicatorsEMA, JJMA, ColorXvaMA_Digit
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 trend-following trading using color change signals from a double-smoothed moving average indicator. Entry conditions: a buy position opens when indicator buffer 1 equals 1 and the previous value was below 1, and a sell position opens when it equals 0 and the previous value was above 0, detecting moments of trend direction transition. Exit conditions: positions close on reverse trend signals (BUY_Close or SELL_Close), with fixed stop loss and take profit in points. Position sizing supports five modes: free margin percentage, balance percentage, loss-free margin percentage, loss-balance percentage, and fixed lot size. Money management is controlled by the MM parameter for risk ratio and MMMode parameter for calculation basis. The EA only executes signal detection on new bar formation or when recalculation is needed, avoiding duplicate trades. The indicator uses XMA (extended moving average) double smoothing, with the first layer as EMA and the second as JJMA, enhancing trend determination reliability.

Strengths

  • Double smoothing (EMA+JJMA) enhances trend determination stability and sensitivity, reducing false signals
  • New bar detection mechanism prevents duplicate trades within the same bar, reducing overtrading risk
  • Multiple money management modes provide high flexibility for different trading styles
  • Independent buy/sell switches allow long-only or short-only configurations for flexible strategy setup
  • Explicit stop loss and take profit settings provide controllable risk management

Weaknesses

  • Depends on the custom indicator ColorXvaMA_Digit; if the indicator file is missing, the EA cannot run
  • No trailing stop functionality, potentially failing to capture full profit in trending markets
  • No spread filter, which may lead to unfavorable entries in high-spread environments
  • Fixed stop loss and take profit in points do not account for market volatility changes (e.g., ATR), resulting in poor adaptability across different market conditions
  • No position count limit, which may generate excessive trades when signals switch frequently

Possible improvements

  • Add ATR-based dynamic stop loss and take profit to adaptively adjust distances based on market volatility
  • Add spread filter and trading session filter to avoid entries under unfavorable conditions
  • Add trailing stop functionality to lock in floating profits during trending markets

Risk assessment

Overall risk: Medium

  • Fixed point stop loss/take profit does not consider market volatility; may be too wide in low volatility and too narrow in high volatility periods
  • No spread filter means stop losses may be frequently triggered in high-spread environments
  • Double smoothing indicator may generate frequent false signals in ranging markets, leading to consecutive losses

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management3.0
Robustness3.0
Innovation3.0
Documentation1.0
Overall2.7

Parameters

ParameterDefaultDescription
MM0.1Money management ratio parameter, controls position sizing
MMModeLOTPosition sizing mode: free margin/balance/post-loss free margin/post-loss balance/fixed lot
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum slippage deviation
BuyPosOpentrueBuy open signal mode: dot signal/direction signal/disabled
SellPosOpentrueSell open signal mode: dot signal/direction signal/disabled
BuyPosClosetrueEnable buy position close signal
SellPosClosetrueEnable sell position close signal
InpInd_TimeframePERIOD_H8Indicator timeframe
SirNameColorXvaMA_DigitIndicator object name prefix
XMA_Method1MODE_EMA_First smoothing method
XLength115first levelsmoothing period
XPhase115First smoothing phase parameter
XMA_Method2MODE_JJMASecond smoothing method
XLength25second levelsmoothing period
XPhase2100Second smoothing phase parameter
IPCPRICE_CLOSE_Price type applied to the indicator
Digit2Number of decimal places for indicator display
SignalBar1Bar index used to retrieve trading signal

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.