EA-1335 · Momentum

Exp_OsHMA

This EA trades based on the OsHMA (Oscillator of Hull Moving Average) indicator, supporting two entry modes: zero-line breakout and histogram direction change (twist). It opens buy/sell positions with configurable stop loss and take profit, and can independently control entry and exit permissions for long and short positions.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMomentum
RiskMedium
Rating★★★☆☆
TypeTrading EA
TimeframesH1, H4, D1
IndicatorsOsHMA, HMA
AuthorCopyright © 2012, Nikolay Kositsin

Backtest results (H1, about 1 year)

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

Strategy analysis

The core strategy of this EA is based on the OsHMA oscillator, which is a difference oscillator of Hull Moving Averages (HMA), essentially a smoothed momentum indicator. Entry conditions offer two modes: the breakdown mode requires the oscillator to cross the zero line — going long when it turns from negative to positive and short when it turns from positive to negative; the twist mode requires the histogram direction to reverse — going long when the current bar value exceeds the previous bar while the prior two bars showed declining values, and vice versa. Exit conditions are symmetric to entry signals, closing positions when a reverse signal appears, with fixed stop loss and take profit in points. Position sizing is handled via the MM parameter, where negative values represent fixed lot sizes and positive values represent a deposit share percentage. Money management relies on standardized functions from the TradeAlgorithms.mqh library for order execution, including price deviation control (Deviation parameter) to handle slippage. The strategy lacks advanced money management features such as position scaling, partial closes, or trailing stops, making it a relatively basic momentum-following system.

Strengths

  • Dual entry modes (zero-line breakout and histogram twist) provide flexible strategy choices
  • HMA oscillator has lower latency and better smoothing compared to simple MA oscillators
  • Independent buy/sell open and close permissions allow flexible strategy combinations
  • Fixed stop loss and take profit provide basic risk protection
  • New bar detection mechanism prevents repeated trading on the same bar

Weaknesses

  • Lacks trailing stop functionality, so profitable positions may suffer significant drawdowns on pullbacks
  • Default stop loss of 1000 points and take profit of 2000 points are excessively large for some instruments
  • No spread filter means unfavorable fills may occur in high-volatility or high-spread environments
  • Depends on an external iCustom indicator — EA cannot run if OsHMA indicator is not installed
  • Lacks multi-timeframe confirmation or additional indicator filtering, so false signals may cause frequent losing trades

Possible improvements

  • Add trailing stop functionality to protect realized profits and reduce drawdown risk
  • Add spread filter and volatility filter to avoid entering trades in high-cost environments
  • Add multi-timeframe confirmation, e.g., only allow entries when the higher timeframe trend aligns

Risk assessment

Overall risk: Medium

  • Default stop loss and take profit points are large, posing significant risk for small accounts where a single loss represents a high percentage
  • Lacks position check before opening, potentially duplicating same-direction positions and causing excessive exposure
  • When MM is negative, fixed lot size is used without dynamic adjustment based on account balance, creating over-leveraging risk

Evaluation scores

Code quality3.0
Strategy logic3.0
Risk management2.0
Robustness3.0
Innovation2.0
Documentation2.0
Overall2.5

Parameters

ParameterDefaultDescription
MM-0.1Money management ratio parameter
StopLoss_1000Stop loss in points
TakeProfit_2000Take profit in points
Deviation_10Maximum allowed slippage
BuyPosOpentrueAllow buy to open position
SellPosOpentrueAllow sell to open position
BuyPosClosetrueAllow buy to close position
SellPosClosetrueAllow sell to close position
ModetwistEntry algorithm: zero-line breakout or histogram reversal
InpInd_TimeframePERIOD_H4Indicator calculation timeframe
FastHMA13Fast HMA period
SlowHMA26Slow HMA period
SignalBar1Bar index for entry signal

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.