Skip to content
All library documents

Stochastic Volatility for Identifying Potential Market Regime Changes

Article MQL5 code base

Summary

This chart indicator adapts the stochastic volatility concept to highlight periods when volatility is unusually low. It marks candidate bars with red lines in a separate indicator window and red candles on the price chart. The author suggests these periods may precede a change in volatility, making them possible points to monitor for a shift in market conditions.

The indicator is explicitly not directional: it estimates the magnitude and movement of volatility, not whether prices are likely to rise or fall. A separate trend indicator is needed to guide entry direction. Users can choose between the original stochastic smoothing method and exponential smoothing, and can enable or disable the original volatility calculation. That original calculation assumes daily data and 252 working days per year, so the document advises reconsidering it on other timeframes. The article explains the indicator’s design and intended use, but provides no performance tests or evidence that its signals predict profitable trades. It also describes a multi-part implementation intended to reduce slow calculations.

Key ideas

  • The indicator highlights unusually low volatility as a possible precursor to changing market conditions.
  • Its readings describe volatility behavior and do not indicate price direction.
  • A separate trend indicator is needed to determine trade direction.
  • The original volatility setting assumes daily data and 252 working days per year.
  • The document gives no backtest or evidence of trading profitability.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.