Exp_BlauErgodic
This EA trades based on the Blau Ergodic oscillator indicator, which is a smoothed momentum-based indicator. It supports three entry modes: zero-line breakout, histogram direction change, and signal cloud color change. Positions are opened and closed systematically based on the selected algorithm mode with configurable lot sizing and stop-loss/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 core strategy of this EA is based on the Blau Ergodic indicator, which is a momentum oscillator processed through multiple layers of smoothing. The indicator applies four smoothing stages (XLength1-XLength4) to price momentum, then generates a signal line to form a histogram and signal cloud. The EA offers three entry modes: breakdown mode enters when the histogram crosses the zero line, twist mode enters when the histogram direction changes, and cloudtwist mode enters when the signal cloud color changes (upper/lower line crossover). Exit conditions include stop-loss and take-profit set in points, as well as reverse signal-triggered position closing (with corresponding permissions enabled). Position sizing is controlled by the MM parameter, supporting either deposit share percentage or fixed lot size as determined by the MMMode parameter. For money management, the EA cleans up global variables on deinitialization using GlobalVariableDel_ and employs the IsNewBar mechanism to prevent duplicate trades within the same bar. The overall strategy is a momentum-following type, entering in the direction of momentum when a trend is initiating.
Strengths
- Provides three flexible entry modes to suit different market conditions and trading styles
- Uses multi-layer smoothed Blau Ergodic indicator to effectively reduce noise and improve signal quality
- Complete buy/sell open/close permission controls allow flexible configuration of trading directions
- Employs IsNewBar mechanism to prevent duplicate trades within the same bar, avoiding overtrading
- Stop-loss and take-profit parameters are fully available, providing complete risk control measures
- Supports multiple smoothing algorithms and price types with high parameter configurability
Weaknesses
- Multiple smoothing layers cause significant indicator lag, potentially missing entry opportunities at trend onset
- Stop-loss and take-profit are set as fixed points without considering market volatility (ATR), leading to inconsistent risk exposure across different market conditions
- Lacks position scaling or adjustment logic, unable to increase profits during trend continuation
- No spread filter, which may lead to unfavorable fills during high-spread periods
- Too many indicator parameters (four smoothing layers + signal line + momentum period), making optimization difficult and prone to overfitting
- SignalBar defaults to 1 (closed bar signals), but setting it to 0 may produce unstable signals on incomplete bars
Possible improvements
- Introduce ATR-based dynamic stop-loss and take-profit that automatically adjusts risk levels based on market volatility
- Add a spread filter to avoid trading during high-spread periods and reduce slippage losses
- Add a trend filter (e.g., higher timeframe MA direction) to avoid repeated stop-outs in ranging markets
- Add trailing stop functionality to lock in more profits during trend continuation
Risk assessment
Overall risk: Medium
- [Risk point documented in Chinese — translation pending]
- Fixed-point stop-loss does not adapt to different market volatility environments
- Excessive parameters may lead to overfitting, with live performance potentially deviating significantly from backtesting
- Lack of spread filter may result in significant slippage under high-spread conditions
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Deposit percentage or fixed lots; negative = lots |
MMMode | LOT | Lot calculation method |
StopLoss_ | 1000 | Stop loss in pips |
TakeProfit_ | 2000 | Take profit in pips |
Deviation_ | 10 | Max price deviation in pips (slippage tolerance) |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
Mode | twist | Entry mode: zero-line breakout / direction change / cloud color change |
InpInd_Timeframe | PERIOD_H4 | Indicator timeframe |
XMA_Method | MODE_EMA | Smoothing method |
XLength | 2 | Momentum period |
XLength1 | 20 | First-level smoothing depth |
XLength2 | 5 | Second-level smoothing depth |
XLength3 | 3 | Third-level smoothing depth |
XLength4 | 3 | Signal line smoothing depth |
XPhase | 15 | Smoothing parameter (JJMA range -100 to +100) |
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.