Exp_Ergodic_Ticks_Volume_OSMA
This EA trades based on the Ergodic Ticks Volume OSMA indicator, opening buy positions when the oscillator turns upward and sell positions when it turns downward. It uses a multi-layer smoothed volume-based oscillator to generate trend-momentum signals, with configurable money management, stop loss, and take profit. The strategy enters on signal bar crossovers and closes opposing positions on reversals.
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 the Ergodic Ticks Volume OSMA indicator, which is a volume-based momentum oscillator processed through 7 layers of smoothing, essentially an OSMA variant of the TVI (Ticks Volume Indicator). Entry conditions: a buy is opened when Ind[1]<Ind[2] (oscillator turns from decline to rise) and Ind[0]>=Ind[1] (current value confirms upward move); a sell is opened when Ind[1]>Ind[2] (oscillator turns from rise to decline) and Ind[0]<=Ind[1]. Exit conditions: opposing positions are closed on reversal signals (sell closed on buy signal, buy closed on sell signal), with fixed stop loss and take profit levels. Position sizing supports 5 modes via MarginMode enum: based on free margin, balance, loss-adjusted free margin, loss-adjusted balance, and fixed lot size. Money management parameter MM controls the risk ratio (default 0.1), calculating specific lot size combined with the stop loss distance. The strategy implements new bar detection to prevent repeated trades on the same bar and uses the SignalBar parameter to allow lookback signal confirmation.
Strengths
- Multi-layer smoothing reduces noise interference, producing relatively high-quality signals
- Supports 5 money management modes, flexibly adapting to different trading styles and risk preferences
- Dual exit mechanism with both stop loss/take profit and reversal-based closing provides robust risk control
- New bar detection prevents repeated trades within the same bar
- Independent buy/sell toggle controls allow flexible configuration for long-only, short-only, or bi-directional trading
Weaknesses
- 7-layer smoothing causes significant indicator lag, resulting in delayed signals during fast-moving markets
- No spread filter, which may cause severe slippage on entry when spreads are wide
- Fixed stop loss and take profit are not dynamically adjusted based on market volatility (e.g., ATR)
- SignalBar=1 introduces confirmation delay, while SignalBar=0 risks signal repaint on the current bar
- No position check logic exists, potentially opening duplicate positions in the same direction
Possible improvements
- Add ATR-based dynamic stop loss and take profit for self-adaptive adjustment of stop distances based on market volatility
- Add spread filter and position direction check to avoid entry in high-spread environments and prevent duplicate position opening
- Consider reducing the number of smoothing layers or using adaptive smoothing parameters to decrease signal lag
Risk assessment
Overall risk: Medium
- 7-layer smoothing causes signal lag, potentially entering at the tail end of trends
- No position direction check may lead to duplicate openings increasing risk exposure
- Default 1000-point SL / 2000-point TP is wide, potentially enduring significant drawdown during volatile markets
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Risk percentage or lot size |
MMMode | LOT | Margin calculation mode (fixed lots/balance/free margin etc.) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow opening long positions |
SellPosOpen | true | Allow opening short positions |
BuyPosClose | true | Allow closing long positions |
SellPosClose | true | Allow closing short positions |
InpInd_Timeframe | PERIOD_H8 | Indicator calculation timeframe |
VolumeType | VOLUME_TICK | Volume type: tick volume or real volume |
XMA_Method | MODE_EMA | Smoothing method: SMA/EMA/SMMA/LWMA/JJMA/JurX/ParMA/T3/VIDYA/AMA |
XLength1 | 12 | First-layer smoothing period |
XLength2 | 12 | Second-layer smoothing period |
XLength3 | 1 | Signal line first smoothing period |
XLength4 | 5 | Signal line second smoothing period |
XLength5 | 5 | Signal line third smoothing period |
XLength6 | 5 | Signal line fourth smoothing period |
XLength7 | 3 | Signal line 5th smoothing period |
XPhase | 15 | Smoothing phase parameter (JJMA: -100~+100, VIDYA/AMA) |
SignalBar | 1 | Bar index for signal calculation |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.