Exp_BlauHLM
This EA trades based on the BlauHLM (Ergodic Histogram) indicator by William Blau, supporting three signal modes: zero-line breakdown, histogram twist, and cloud twist. It opens and closes positions systematically based on momentum signals from the custom indicator's multiple smoothing layers.
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 is based on William Blau's Ergodic HLM indicator, a multi-layer smoothed momentum oscillator. Three entry modes are provided: breakdown mode triggers when the histogram crosses the zero line — going long when it turns positive and short when it turns negative; twist mode triggers on histogram direction reversal, requiring three consecutive bars to confirm a momentum shift; cloudtwist mode compares the crossover of upper and lower cloud lines to generate signals. Exit conditions rely on opposing signals closing positions (BuyPosClose/SellPosClose), combined with fixed StopLoss and TakeProfit levels. Position sizing is controlled by the MM parameter, which defaults to 0.1, supporting either fixed lot size or margin-proportional calculation via the MarginMode enum. The strategy employs up to four smoothing layers with different period lengths (XLength1-4) to filter noise, which reduces false signals but also increases lag. Money management uses the LOT/FIXED margin mode selection for flexible risk allocation.
Strengths
- Three signal modes provide flexibility to adapt to different market conditions
- Multi-layer smoothing effectively filters short-term noise and reduces false signals
- Supports 9 smoothing algorithms (SMA/EMA/JJMA/JurX etc.) for optimization across instruments
- Independent buy/sell open and close switches enable fine-grained directional control
- NewBar detection mechanism prevents repeated trading within the same bar
Weaknesses
- Multi-layer smoothing causes significant signal lag, potentially missing optimal entry timing
- Fixed StopLoss 1000 and TakeProfit 2000 points are excessively large without volatility-based adaptation
- No position check logic — may open duplicate positions in the same direction
- No spread filter — trading in high-spread environments may be detrimental
- Depends on custom BlauHLM indicator file — EA fails if the indicator is missing
Possible improvements
- Add ATR-based dynamic StopLoss/TakeProfit for volatility-adaptive risk management
- Add position direction check to prevent duplicate entries in the same direction
- Add spread filter and trading session filter to improve trade quality
Risk assessment
Overall risk: Medium
- No position direction check — may open duplicate positions causing excessive exposure
- Fixed SL/TP values don't account for instrument volatility characteristics, may not suit all symbols
- SignalBar=1 defaults to completed bar, but Recount logic may recalculate signals on the current bar under certain conditions
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management percentage or fixed lot size |
MMMode | LOT | Money management mode (free margin/balance/free margin after loss/balance after loss/fixed lot) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
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 | Signal mode: breakout/reversal/cloud reversal |
InpInd_Timeframe | PERIOD_H4 | Indicator calculation timeframe |
XMA_Method | MODE_EMA | Smoothing algorithm type |
XLength | 2 | Base momentum calculation period |
XLength1 | 20 | First-level smoothing period |
XLength2 | 5 | Second-level smoothing period |
XLength3 | 3 | Third-level smoothing period |
XLength4 | 3 | Fourth-level smoothing period |
XPhase | 15 | Smoothing algorithm phase parameter |
SignalBar | 1 | Signal bar index |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.