Exp_ColorNonLagDotMACD
This EA trades based on the ColorNonLagDotMACD custom indicator, offering four distinct signal algorithms: zero-line breakout, MACD direction change, signal line direction change, and MACD-signal line crossover. It opens and closes positions on new bar events 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 | — | — | — | — | — | Run error |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Run error |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Run error |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Run error |
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 core strategy is based on the NonLagDotMACD indicator, an improved MACD variant that reduces lag to enhance signal timeliness. The EA provides four entry modes: zero-line breakout detects MACD histogram crossing zero; MACD twist detects reversal in MACD value direction; signal twist detects direction change of the signal line itself; and MACD disposition is the classic MACD-signal line crossover. Exit conditions are triggered by opposite signals closing positions, supplemented by fixed-point stop loss and take profit as protection. Position sizing is controlled by the MM parameter, where negative values represent fixed lot sizes and positive values represent a percentage share of the account balance. The EA calculates signals only on new bar formation, avoiding redundant per-tick computation and improving execution efficiency.
Strengths
- Offers four distinct signal algorithm modes, providing strong strategy flexibility
- Calculates signals only on new bar formation, avoiding redundant per-tick computation for high efficiency
- Features independent buy/sell open and close permission controls for granular risk management
- Uses the NonLagDot improved MACD indicator to reduce signal lag
- Includes stop loss and take profit protection mechanisms with basic risk control in place
Weaknesses
- Default stop loss of 1000 points and take profit of 2000 points are large, potentially leading to significant per-trade losses
- No spread filter included, which may result in unfavorable fills in high-spread environments
- Depends on the external TradeAlgorithms.mqh library, making core trading logic opaque
- Lacks position checking and maximum position limits, potentially opening multiple same-direction positions simultaneously
- MM parameter at -0.1 fixes 0.1 lots without dynamic adjustment based on account size
Possible improvements
- Add spread filtering and maximum position count limits to enhance risk control capabilities
- Inline or refactor core trading functions from the external TradeAlgorithms.mqh into self-contained logic to improve transparency and maintainability
Risk assessment
Overall risk: Medium
- Depends on the opaque external TradeAlgorithms.mqh library; whether it checks for duplicate positions in open/close logic is unknown
- Default 1000-point stop loss is large and could cause significant losses on small timeframes or volatile instruments
- No spread filter mechanism, which may produce unfavorable entries during high-spread periods
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | -0.1 | Deposit percentage or fixed lot; negative value = lot size |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum price slippage |
BuyPosOpen | true | Allow buy position opening |
SellPosOpen | true | Allow sell position opening |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
Mode | MACDdisposition | Entry algorithm mode selection |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
Price | PRICE_CLOSE | Applied price type |
Filter | 0 | Filter parameter |
Deviation | 0 | Deviation parameter |
Fast_Type | MODE_SMA | Fast line smoothing method |
Fast_Length_ | 12 | Fast line period |
Slow_Type | MODE_SMA | Slow line smoothing method |
Slow_Length_ | 26 | Slow line period |
Signal_MA | 9 | Signal line period |
Signal_Method_ | MODE_EMA | Signal line smoothing method |
SignalBar | 1 | Bar index for entry signal |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.