EA-13796 · Momentum

Exp_ColorZerolagHLR

This EA trades based on the ColorZerolagHLR oscillator, a zero-lag composite momentum indicator built from five weighted HLR (High-Low Range) components. It opens buy positions when the oscillator crosses upward and sell positions when it crosses downward, with configurable stop-loss and take-profit levels. Trading signals are processed only on new bars to avoid redundant entries.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMomentum
RiskMedium
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsColorZerolagHLR, HLR
Author—

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

Strategy analysis

The strategy concept is based on the Zero-Lag HLR oscillator, which combines five HLR components with different periods (8, 21, 34, 55, 89) and weights (0.05, 0.10, 0.16, 0.26, 0.43) to eliminate the lag inherent in traditional technical indicators. Entry conditions are classic oscillator crossover: a buy signal is generated when the main oscillator line crosses above the signal line at the specified SignalBar, and a sell signal is generated on the opposite crossover. Exit conditions include reverse crossover signals that trigger position closing (controlled by BuyPosClose and SellPosClose flags), plus fixed stop-loss at 1000 points and take-profit at 2000 points. Position sizing is controlled by the MM parameter, supporting either lot-based or margin-per-lot modes as determined by the MMMode parameter. Money management is delegated to the TradeAlgorithms.mqh library functions (BuyPositionOpen, SellPositionOpen), which encapsulate order execution logic. Signals are only generated when IsNewBar detects a new bar formation, preventing redundant trades within the same bar.

Strengths

  • Zero-lag oscillator design with multi-period weighted synthesis reduces the lag problem of traditional indicators
  • New bar detection mechanism prevents redundant trades within the same bar, reducing overtrading risk
  • Complete buy/sell toggle controls (open and close independently configurable) provide good flexibility
  • Fixed stop-loss and take-profit settings make risk quantifiable
  • Clear signal logic based on oscillator crossover is easy to understand and backtest

Weaknesses

  • Fixed 1000-point stop-loss and 2000-point take-profit are not dynamically adjusted based on market volatility (e.g., ATR), potentially unsuitable across different market conditions
  • No spread filter, which may lead to excessive entry costs on high-spread instruments
  • Oscillator crossover signals tend to generate frequent false signals in ranging markets, leading to consecutive losses
  • Dependency on external TradeAlgorithms.mqh library makes core trade execution logic opaque
  • No maximum position count limit or maximum drawdown protection, lacking an overall risk control framework

Possible improvements

  • Add ATR-based dynamic stop-loss and take-profit mechanism to automatically adjust distances based on market volatility
  • Add trend filter conditions (e.g., moving average direction or higher timeframe trend assessment) to reduce false signals in ranging markets
  • Add spread filter and maximum position/drawdown protection mechanisms to enhance overall risk management

Risk assessment

Overall risk: Medium

  • Fixed 1000-point stop-loss may be too large for low-volatility instruments and too small for high-volatility ones
  • No spread filter may lead to unfavorable entries in high-spread environments
  • Frequent crossover signals in ranging markets may cause consecutive stop-loss hits
  • No limit on maximum simultaneous positions may lead to excessive exposure in extreme conditions

Evaluation scores

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

Parameters

ParameterDefaultDescription
MM0.1Lot size: equity percentage or fixed lots
MMModeLOTLot calc mode: Free margin/Balance/Margin minus floating loss/Balance minus floating loss/Fixed lots
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage
BuyPosOpentrueAllow opening buy positions
SellPosOpentrueAllow opening sell positions
BuyPosClosetrueAllow closing buy positions
SellPosClosetrueAllow closing sell positions
InpInd_TimeframePERIOD_H4Timeframe for indicator calculation
SignalBar1Bar index for signal crossover detection
smoothing15Oscillator smoothing period
Factor10.05Weight factor for 1st HLR component
HLR_period18Period of 1st HLR component
Factor20.10Weight factor for 2nd HLR component
HLR_period221Period of 2nd HLR component
Factor30.16Weight factor for 3rd HLR component
HLR_period334Period of 3rd HLR component
Factor40.26Weight factor for 4th HLR component
HLR_period455Period of 4th HLR component
Factor50.43Weight factor for 5th HLR component
HLR_period589Period of 5th HLR component

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.