# Volatility Regime Classification

A Volatility concept (Regime & compression) in the LuxAlgo Library.

## What is Volatility Regime Classification?

Volatility regime classification assigns each period a discrete volatility state, most commonly low, normal, and high, sometimes with an extra crisis tier, instead of leaving volatility as a continuous number. The simplest classifiers threshold a measure such as [ATR](https://www.luxalgo.com/library/concept/atr/) or its [volatility percentile](https://www.luxalgo.com/library/concept/volatility-percentile-rank/); more sophisticated ones let the data draw the boundaries, using unsupervised grouping methods such as k-means on volatility features, or regime-switching statistical models that infer hidden states.

The premise is the persistence of volatility, documented by Benoit Mandelbrot in his 1963 cotton-price study: large changes tend to be followed by large changes, of either sign, and small changes by small changes. Because volatility is sticky, a regime identified today usually persists long enough to act on. The label is descriptive, not predictive: it says what conditions are, not when they will change, and the boundaries between states are modeling choices, so readings near a boundary can flip between adjacent regimes.

The idea carries serious econometric pedigree. Robert Engle's ARCH model (1982) and Tim Bollerslev's GARCH extension (1986) treated volatility as a process with memory, work that earned Engle a share of the 2003 Nobel Memorial Prize; James Hamilton's 1989 Markov-switching framework added the notion of hidden states with estimated transition probabilities. Chart-facing classifiers compress that machinery into something tradable: a colored background, a state label, or a stepped line that other rules can key off.

Implementations differ in input and boundary. The measure can be [realized volatility](https://www.luxalgo.com/library/concept/realized-volatility/) on returns, ATR in price units, or a width gauge such as [BandWidth](https://www.luxalgo.com/library/concept/bandwidth/) from [Bollinger Bands](https://www.luxalgo.com/library/concept/bollinger-bands/); boundaries can be multiples of a long average, rolling percentiles, or fitted by the model. Careful classifiers add hysteresis so borderline readings do not flip the state every bar. The payoff is discipline: a few named states can be backtested separately and wired into rules, which a raw continuous line resists.

## How to identify volatility regimes on a chart

A workable classifier can be approximated with standard indicators before any code is written.

1. Plot a volatility series, such as 14-period ATR or 20-day realized volatility, in a pane below price.
2. Add a long baseline, for example a 100-period average of that series, and read the gap or ratio between the two.
3. Draw provisional boundaries: comfortably below the baseline is low, near it normal, well above it high; percentile bands over a one-year window make the same cut with more rigor.
4. Mark the crossings and check dwell time; states that flip every few bars mean the boundaries sit too close together.
5. Confirm against price character: low states should coincide with tight candles and narrow bands, high states with wide ranges and gaps.

## How traders use it

- As a strategy switch: mean-reversion tactics are typically favored in low-volatility states, breakout and trend tactics as volatility expands, and reduced or no exposure in crisis states.
- As a risk control: volatility-targeted sizing shrinks position size as the regime rises, and stop distances widen so that normal noise in a hot regime does not force exits.
- As a parameter map: adaptive indicators re-tune lookbacks or multipliers per regime, running tighter settings in quiet states and looser settings in volatile ones.
- As a backtest lens: splitting performance by regime shows whether a strategy's edge concentrates in one state, which guides when the system should simply be switched off.
- As squeeze context: binary compression flags such as the [TTM Squeeze](https://www.luxalgo.com/library/concept/ttm-squeeze/) or a [Bollinger Squeeze](https://www.luxalgo.com/library/concept/bollinger-squeeze/) classify only the quiet end; a fuller regime model grades how unusual the compression is against longer history.

## Volatility regime classification vs. related tools

- **Volatility Percentile/rank** (https://www.luxalgo.com/library/concept/volatility-percentile-rank/): The percentile rank is the continuous form of the same question, placing today's volatility on a 0-100 scale against its own history. Classification cuts that scale into named states, accepting coarser resolution in exchange for labels that rules can act on.
- **TTM Squeeze** (https://www.luxalgo.com/library/concept/ttm-squeeze/): The TTM Squeeze flags a single condition, Bollinger Bands trading inside Keltner Channels, with a momentum histogram to time the release. Regime classification spans the whole volatility spectrum, from compressed to crisis, rather than flagging only the quiet extreme.
- **Realized Volatility** (https://www.luxalgo.com/library/concept/realized-volatility/): Realized volatility is a measurement: the standard deviation of returns over a window. Classification is the decision layer above measurements like it, converting numbers into states; the two are input and output rather than alternatives.

## FAQ

### How many volatility regimes should a model use?

There is no correct number. Two or three states (low/normal/high) cover most practical uses, and a separate crisis tier mainly helps risk systems. More states give finer distinctions but fewer observations per state and noisier boundaries. Statistical grouping methods can score candidate state counts, but the final choice remains a modeling judgment.

### Can volatility regime classification predict a crash?

No. Classification describes the present state, and volatility often spikes with the shock rather than ahead of it. What the framework offers is persistence: once a market enters a high or crisis regime it tends to stay elevated for a while, which is actionable for sizing and strategy selection even without any forecast of the initial jump.

### Which volatility measure should feed a regime classifier?

No input dominates. ATR captures range including gaps, realized volatility captures close-to-close movement, and band width captures dispersion around a mean; they agree on major shifts and diverge at the margins. Ranking the chosen input against its own history, as a percentile, removes scale and eases cross-market use.

### What is a Markov-switching model in this context?

A statistical framework, popularized in economics by James Hamilton's 1989 business-cycle work, in which the market occupies one of several hidden states and switches between them with estimated probabilities. Instead of thresholding an indicator it infers state probabilities from the data; simplified versions of the idea inspire many charting scripts.

### How do you stop a classifier from flipping between states?

Add hysteresis: separate entry and exit thresholds per state, a minimum dwell time, or smoothing on the input. Each trades responsiveness for stability, usually a good exchange because the actions tied to a regime label, resizing and strategy switches, are costly to whipsaw.

### Is a high-volatility regime bearish?

Not by definition. In equity indexes, elevated volatility has historically accompanied falling or bottoming markets more than steady advances, which is why many treat the state as a caution flag, but in other assets and around scheduled events high volatility coincides with rallies too. The label measures movement, not direction.

## Related concepts

- Range Expansion/contraction: https://www.luxalgo.com/library/concept/range-expansion-contraction/
- Choppiness Index: https://www.luxalgo.com/library/concept/choppiness-index/
- NR4/NR7 Narrow-range Bars: https://www.luxalgo.com/library/concept/nr4-nr7-narrow-range-bars/
- Volatility Contraction Pattern: https://www.luxalgo.com/library/concept/volatility-contraction-pattern/
- Gap-volatility Relation: https://www.luxalgo.com/library/concept/gap-volatility-relation/
- Damiani Volatmeter: https://www.luxalgo.com/library/concept/damiani-volatmeter/
- Waddah Attar Explosion: https://www.luxalgo.com/library/concept/waddah-attar-explosion/
- Volatility Switch: https://www.luxalgo.com/library/concept/volatility-switch/
- Weekend/overnight Volatility Profile: https://www.luxalgo.com/library/concept/weekend-overnight-volatility-profile/
- Event-driven Volatility: https://www.luxalgo.com/library/concept/event-driven-volatility/

---

Source: https://www.luxalgo.com/library/concept/volatility-regime-classification/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/