Exp_ColorXMACDCandle
This EA trades based on color changes of the ColorXMACDCandle custom indicator, which is an enhanced MACD with multiple smoothing algorithms. It opens buy positions when the histogram turns bullish and sell positions when it turns bearish, with configurable signal modes (histogram or signal line crossover). Position sizing follows one of five money management modes including fixed lot and percentage-based allocation.
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 core trades on momentum direction changes of the ColorXMACDCandle indicator. Entry conditions have two modes: in Histogram mode, a buy opens when the indicator color shifts to bullish (Clr[1]==2 and Clr[0]<2), and a sell opens when it shifts to bearish (Clr[1]==0 and Clr[0]>0); in SignalLine mode, a buy opens when color shifts to up (Clr[1]==1 and Clr[0]!=1), and a sell when it shifts to down (Clr[1]==2 and Clr[0]!=2). Exit conditions include closing on reverse signals and fixed stop-loss/take-profit levels. Position sizing supports five modes: fixed lot, percentage of balance, percentage of equity, percentage of free margin, and percentage of balance after deducting losses. The indicator uses configurable smoothing methods (SMA/EMA/JJMA/JurX/ParMA/T3/VIDYA/AMA) for both the fast/slow MACD lines and the signal line, offering far more flexibility than standard MACD. Default stop-loss of 1000 points and take-profit of 2000 points indicate a trend-letting approach with a 2:1 reward-to-risk ratio.
Strengths
- Supports multiple advanced smoothing algorithms (JJMA/JurX/T3 etc.), producing smoother and more responsive signals than standard MACD
- Provides two signal modes (histogram and signal line), allowing traders to flexibly choose based on market conditions
- Five money management modes offer high flexibility in position sizing control
- Signals based on completed bars (SignalBar=1), avoiding signal flickering and repeated open/close on the current bar
- Default 2:1 reward-to-risk ratio aligns with trend-following positive expectancy design
- Independent buy/sell open and close switches allow single-direction trading or close-only mode
Weaknesses
- Depends on the custom ColorXMACDCandle indicator; EA is completely non-functional without it
- Stop-loss of 1000 points is large and may cause significant single-trade losses in volatile markets
- Lacks position scaling and trailing stop mechanisms, unable to maximize profits in trending markets
- No spread filter; frequent signals on high-spread instruments may cause consecutive losses
- Code comments are garbled (encoding issue), severely hurting readability and maintainability
- No check for existing orders; may repeatedly open positions on the same signal
Possible improvements
- Add trailing stop functionality to lock in floating profits during trending moves
- Add spread filter and minimum signal interval to prevent overtrading in high-spread or dense signal environments
- Add position existence check to avoid duplicate entries in the same signal direction
- Fix source file encoding issue to restore garbled comments to readable Russian or translate to English
Risk assessment
Overall risk: Medium
- No check for existing same-direction positions, potentially causing duplicate entries that amplify risk
- Default 1000-point stop-loss is large; single-trade loss percentage could be high on small accounts or high leverage
- Depends on external custom indicator; missing or incompatible indicator file will cause strategy failure
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management parameter controlling lot size |
MMMode | LOT | Position sizing mode (free margin/balance/net free margin/net balance/fixed lot) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum slippage deviation |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long on reverse signal |
SellPosClose | true | Allow closing short on reverse signal |
InpInd_Timeframe | PERIOD_H4 | Indicator calculation timeframe |
SignalMode | Histogram | Signal mode (histogram/signal line) |
XMA_Method | MODE_T3 | MACD main line smoothing method |
Fast_XMA | 12 | Fast line period |
Slow_XMA | 26 | Slow line period |
XPhase | 100 | Main line smoothing phase parameter |
Signal_Method | MODE_JJMA | Signal line smoothing method |
Signal_XMA | 9 | Signal line period |
Signal_Phase | 100 | Signal line smoothing phase parameter |
AppliedPrice | PRICE_CLOSE_ | Applied price type (close/open/high/low) |
SignalBar | 1 | Bar index for signal detection |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.