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
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 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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Deposit ratio (positive) or fixed lots (negative) |
MMMode | LOT | Lot size determination method |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Max price deviation in points (slippage control) |
BuyPosOpen | true | Allow buying |
SellPosOpen | true | Allow selling |
BuyPosClose | true | Allow closing buy positions |
SellPosClose | true | Allow closing sell positions |
Mode | twist | Entry algorithm: zero-line breakout or direction reversal |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
XMA_Method | MODE_EMA | Smoothing method |
XLength | 20 | Price averaging depth |
XLength1 | 5 | First averaging depth |
XLength2 | 3 | Second averaging depth |
XLength3 | 8 | Signal line averaging depth |
XPhase | 15 | Smoothing parameter |
IPC | PRICE_CLOSE | Price constant type |
SignalBar | 1 | Bar index for entry signal |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.