Exp_VolatilityQuality
This EA trades based on the Volatility Quality indicator, which identifies momentum shifts by analyzing price volatility patterns. It opens buy positions when the indicator transitions from bearish to bullish and sell positions when it transitions from bullish to bearish, with configurable stop loss and take profit levels.
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
This EA uses the Volatility Quality indicator as its core signal source, which calculates price volatility through various smoothing algorithms (supporting SMA, EMA, LWMA, JJMA, JurX, ParMA, T3, VIDYA, AMA) to identify directional shifts in market momentum. Entry conditions are: when indicator buffer 1 transitions from value 0 to value 1 (Col[1]==0 and Col[0]==1), a buy signal is generated; when it transitions from value 1 to value 0 (Col[1]==1 and Col[0]==0), a sell signal is generated. Exit conditions rely on fixed stop loss (default 1000 points) and take profit (default 2000 points), while also supporting signal-based position closing controlled by BuyPosClose and SellPosClose parameters. Position sizing leverages multiple money management modes from TradeAlgorithms.mqh, including free margin-based, balance-based, loss-adjusted free margin, loss-adjusted balance, or fixed lot sizing. The strategy operates by default on the H4 timeframe, uses the SignalBar parameter to control signal offset (default 1, meaning the previous bar), and employs the IsNewBar mechanism to ensure each bar is processed only once to prevent duplicate trades. Overall, this is a momentum-tracking system based on volatility quality assessment, capturing trend initiation and termination through changes in volatility characteristics.
Strengths
- Uses IsNewBar mechanism to ensure each bar is processed only once, preventing duplicate trades within the same bar
- Supports multiple smoothing algorithms and flexible parameter configuration for adapting to different market conditions
- Provides independent toggle switches for buy/sell opening and closing, allowing flexible directional control
- Signals based on closed bars (SignalBar=1), reducing signal repaint risk
- Multi-mode money management covering fixed lot to dynamic margin calculation
Weaknesses
- Fixed stop loss of 1000 points and take profit of 2000 points are not dynamically adjusted based on market volatility, potentially too wide in low-volatility environments
- Lacks spread filtering, which may lead to unreasonable entries in high-spread conditions
- Indicator signal relies on iCustom external custom indicator, reducing portability and transparency
- No trailing stop or breakeven mechanism, profitable positions may retrace significantly before hitting TP or SL
- No maximum position count or total risk exposure control, potentially over-allocating on consecutive signals
Possible improvements
- Add ATR-based dynamic stop loss and take profit calculation to adapt risk control to market volatility changes
- Add spread filtering and maximum position count limits to improve entry quality and overall risk management
- Implement trailing stop and breakeven functionality to protect floating profits
Risk assessment
Overall risk: Medium
- Lacks spread filter, widened spreads during high volatility periods may cause unfavorable entries
- Fixed stop loss and take profit do not account for market volatility, may be insufficient or excessive during extreme market conditions
- No maximum position limit, consecutive signals may lead to over-concentrated risk exposure
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
MM | 0.1 | Money management ratio |
MMMode | LOT | Money management mode (free margin/balance/fixed lots) |
StopLoss_ | 1000 | Stop loss in points |
TakeProfit_ | 2000 | Take profit in points |
Deviation_ | 10 | Maximum allowed slippage in points |
BuyPosOpen | true | Allow buy position opening |
SellPosOpen | true | Allow sell position opening |
BuyPosClose | true | Allow buy position closing (close long on reverse signal) |
SellPosClose | true | Allow sell position closing (close short on reverse signal) |
InpInd_Timeframe | PERIOD_H4 | Timeframe for indicator calculation |
XMA_Method | MODE_LWMA | Smoothing method (SMA/EMA/LWMA/JJMA) |
XLength | 5 | Smoothing period length |
XPhase | 15 | Smoothing phase parameter |
Smoothing | 1 | Additional smoothing period |
Filter | 5 | Signal filter threshold in points |
Price | PRICE_MEDIAN | Applied price type (close/median) |
SignalBar | 1 | Signal bar index (0=current, 1=last closed bar) |
Similar Momentum EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.