EA-1296 · Momentum

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

CategoryMomentum
RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsNonLagDotMACD, SMA, EMA
AuthorCopyright © 2012, Nikolay Kositsin

Backtest results (H1, about 1 year)

SymbolP&LAnnualMax DDTradesWin rateSharpeRecoveryLosing streakPer tradeStatus
EURUSD0.00%0.00%0.00%0—————Run error
GBPUSD0.00%0.00%0.00%0—————Run error
USDJPY0.00%0.00%0.00%0—————Run error
XAUUSD0.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

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness3.0
Innovation3.0
Documentation2.0
Overall2.7

Parameters

ParameterDefaultDescription
MM-0.1Deposit percentage or fixed lot; negative value = lot size
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum price slippage
BuyPosOpentrueAllow buy position opening
SellPosOpentrueAllow sell position opening
BuyPosClosetrueAllow closing long positions
SellPosClosetrueAllow closing short positions
ModeMACDdispositionEntry algorithm mode selection
InpInd_TimeframePERIOD_H4Indicator timeframe
PricePRICE_CLOSEApplied price type
Filter0Filter parameter
Deviation0Deviation parameter
Fast_TypeMODE_SMAFast line smoothing method
Fast_Length_12Fast line period
Slow_TypeMODE_SMASlow line smoothing method
Slow_Length_26Slow line period
Signal_MA9Signal line period
Signal_Method_MODE_EMASignal line smoothing method
SignalBar1Bar index for entry signal

Similar Momentum 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.