EA-2423 · Momentum

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

CategoryMomentum
RiskMedium
Blow-up riskLow
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsBlauHLM (Ergodic HLM), EMA, Custom Smoothing (JJMA/JurX/ParMA/T3/VIDYA/AMA)
AuthorCopyright © 2014, 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 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

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness3.0
Innovation3.0
Documentation1.0
Overall2.5

Parameters

ParameterDefaultDescription
MM0.1Money management percentage or fixed lot size
MMModeLOTMoney management mode (free margin/balance/free margin after loss/balance after loss/fixed lot)
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage
BuyPosOpentrueAllow opening long positions
SellPosOpentrueAllow opening short positions
BuyPosClosetrueAllow closing long positions
SellPosClosetrueAllow closing short positions
ModetwistSignal mode: breakout/reversal/cloud reversal
InpInd_TimeframePERIOD_H4Indicator calculation timeframe
XMA_MethodMODE_EMASmoothing algorithm type
XLength2Base momentum calculation period
XLength120First-level smoothing period
XLength25Second-level smoothing period
XLength33Third-level smoothing period
XLength43Fourth-level smoothing period
XPhase15Smoothing algorithm phase parameter
SignalBar1Signal bar index

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.