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
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio parameter, controls position sizing |
MMMode | LOT | Position sizing mode: free margin/balance/post-loss free margin/post-loss balance/fixed lot |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum slippage deviation |
BuyPosOpen | true | Buy open signal mode: dot signal/direction signal/disabled |
SellPosOpen | true | Sell open signal mode: dot signal/direction signal/disabled |
BuyPosClose | true | Enable buy position close signal |
SellPosClose | true | Enable sell position close signal |
InpInd_Timeframe | PERIOD_H8 | Indicator timeframe |
SirName | ColorXvaMA_Digit | Indicator object name prefix |
XMA_Method1 | MODE_EMA_ | First smoothing method |
XLength1 | 15 | first levelsmoothing period |
XPhase1 | 15 | First smoothing phase parameter |
XMA_Method2 | MODE_JJMA | Second smoothing method |
XLength2 | 5 | second levelsmoothing period |
XPhase2 | 100 | Second smoothing phase parameter |
IPC | PRICE_CLOSE_ | Price type applied to the indicator |
Digit | 2 | Number of decimal places for indicator display |
SignalBar | 1 | Bar index used to retrieve trading signal |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.