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
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
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | -0.1 | Money management ratio parameter |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage |
BuyPosOpen | true | Allow buy to open position |
SellPosOpen | true | Allow sell to open position |
BuyPosClose | true | Allow buy to close position |
SellPosClose | true | Allow sell to close position |
Mode | twist | Entry algorithm: zero-line breakout or histogram reversal |
InpInd_Timeframe | PERIOD_H4 | Indicator calculation timeframe |
FastHMA | 13 | Fast HMA period |
SlowHMA | 26 | Slow HMA period |
SignalBar | 1 | Bar index for entry signal |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.