EA-1987 · Momentum

Exp_BlauErgodicMDI

This EA trades based on William Blau's Ergodic MDI (Mean Deviation Indicator) using three distinct signal modes: zero-line breakout, histogram direction change, and signal cloud color crossover. It opens and closes positions systematically on the indicator's momentum signals with configurable stop loss and take profit levels.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMomentum
RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsBlauErgodicMDI, EMA, JJMA, VIDIA, AMA
AuthorCopyright © 2013, Nikolay Kositsin

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 William Blau's Ergodic MDI momentum indicator, which identifies trend momentum through multi-stage smoothing of price deviation. Entry conditions offer three selectable modes: breakdown mode (histogram crossing the zero line), twist mode (histogram direction reversal), and cloudtwist mode (signal cloud upper/lower band crossover). Exit conditions are triggered by opposite signals closing existing positions, supplemented by fixed stop loss and take profit parameters. Position sizing is controlled by the MM parameter, supporting either fixed lot size or deposit share-based calculation. Money management supports LOT and MARGIN modes as determined by the MMMode enumeration. Signals are calculated only on new bar formation to avoid per-tick repeated triggers, and the SignalBar parameter allows selecting between the current or confirmed bar as the signal source.

Strengths

  • Offers three flexible signal modes adaptable to different market environments and trading preferences
  • Uses multi-stage smoothed Blau Ergodic MDI indicator which reduces noise signals and false triggers
  • Calculates signals only on new bar formation, avoiding per-tick over-trading
  • Supports independent buy/sell open/close permission controls for high flexibility
  • Complete stop loss and take profit parameters provide basic risk protection

Weaknesses

  • Lacks spread filter which may cause unfavorable entries on high-spread instruments
  • No position scaling logic; position management is simple and single-layered
  • Depends on iCustom custom indicator; EA fails to run if the indicator file is missing
  • Default stop loss of 1000 points and take profit of 2000 points are excessively large for most instruments
  • Lacks advanced risk controls such as drawdown limits and maximum position restrictions

Possible improvements

  • Add spread filter and maximum spread limit to avoid opening positions in high-spread environments
  • Implement dynamic stop loss/take profit mechanisms such as ATR-adaptive stops or trailing stops to replace fixed point values
  • Add drawdown control and daily maximum loss limits to enhance capital safety

Risk assessment

Overall risk: Medium

  • Fixed stop loss/take profit parameters may not suit all instruments and volatility environments; defaults are overly large
  • Lack of spread filter may cause significant slippage on entries during high-spread conditions
  • No drawdown control or maximum position limits leave risk exposure uncontrolled during extreme market conditions

Evaluation scores

Code quality3.0
Strategy logic4.0
Risk management2.0
Robustness3.0
Innovation3.0
Documentation2.0
Overall2.8

Parameters

ParameterDefaultDescription
MM0.1Deposit ratio (positive) or fixed lots (negative)
MMModeLOTLot size determination method
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Max price deviation in points (slippage control)
BuyPosOpentrueAllow buying
SellPosOpentrueAllow selling
BuyPosClosetrueAllow closing buy positions
SellPosClosetrueAllow closing sell positions
ModetwistEntry algorithm: zero-line breakout or direction reversal
InpInd_TimeframePERIOD_H4Indicator timeframe
XMA_MethodMODE_EMASmoothing method
XLength20Price averaging depth
XLength15First averaging depth
XLength23Second averaging depth
XLength38Signal line averaging depth
XPhase15Smoothing parameter
IPCPRICE_CLOSEPrice constant type
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.