Exp_HullTrendOSMA
This EA trades based on the HullTrendOSMA custom indicator, which applies Hull moving average smoothing to an OSMA-style oscillator. It opens buy positions when the oscillator turns upward and sell positions when it turns downward, with configurable money management and separate open/close controls.
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 strategy concept is based on trend reversal signals from the HullTrendOSMA oscillator indicator, which uses double smoothing algorithms (XMA_Method and XMA_Method1) to reduce noise and generate trading signals. Entry conditions: a buy position opens when Value[1]<Value[2] (oscillator declining) and Value[0]>=Value[1] (starting to rise); a sell position opens when Value[1]>Value[2] (oscillator rising) and Value[0]<=Value[1] (starting to fall). Exit conditions rely on reverse signals triggering position closure, supplemented by fixed pip-based stop loss and take profit levels. Position sizing supports multiple modes including fixed lot, balance percentage, and free margin percentage. Money management is controlled by the MM parameter for risk ratio and MMMode for lot calculation mode, but lacks dynamic adjustment based on market volatility.
Strengths
- Double Hull moving average smoothing reduces false signals and improves signal quality
- Independent open/close signal controls provide high flexibility, allowing separate disable of buy or sell direction
- Multiple money management modes accommodate traders with different risk preferences
- SignalBar parameter confirms signal on completed candles, avoiding false signals from uncompleted bars
- New bar detection mechanism (IsNewBar) prevents duplicate trades within the same bar
Weaknesses
- Fixed pip stop loss and take profit do not account for market volatility (e.g., ATR), which may be inappropriate in different market conditions
- Lacks position count checking, potentially leading to over-positioning from repeated entries across signal periods
- Depends on the custom HullTrendOSMA indicator file; EA fails if the indicator is missing
- No maximum position limit or maximum drawdown protection mechanism
- Trend-following strategy prone to frequent stop-outs in choppy/ranging markets
Possible improvements
- Introduce ATR-based dynamic stop loss and take profit to automatically adjust distances based on market volatility
- Add position count limits and maximum drawdown protection to prevent over-trading and excessive capital loss
- Add a range/choppy market filter (e.g., ADX or volatility threshold) to pause trading when no clear trend exists
Risk assessment
Overall risk: Medium
- Fixed stop loss/take profit does not consider market volatility; in high-volatility conditions stops may be too tight causing frequent stop-outs
- Lacks position count checks; consecutive signals may lead to repeated entries and over-positioning
- Trend-following strategy generates consecutive losing signals in ranging/choppy markets
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management: lot size or margin ratio control |
MMMode | LOT | Money management mode: lot or margin ratio |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow opening buy positions |
SellPosOpen | true | Allow opening sell positions |
BuyPosClose | true | Allow closing buy positions |
SellPosClose | true | Allow closing sell positions |
InpInd_Timeframe | PERIOD_H8 | Indicator calculation timeframe |
XLength | 20 | Hull trend main smoothing period |
IPC | PRICE_CLOSE | Applied price type |
XMA_Method | MODE_LWMA | Main smoothing method |
XPhase | 15 | Main smoothing phase parameter |
XLength1 | 5 | Signal line smoothing period |
XMA_Method1 | MODE_JJMA | Signal line smoothing method |
XPhase1 | 100 | Signal line smoothing phase parameter |
SignalBar | 1 | Signal confirmation bar index (0=current, 1=last completed) |
Similar Trend Following EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.