# Understanding Market Regimes
Markets change personality. A strategy that works in a trending market will fail in a ranging one. A mean-reversion strategy that prints money in a range will get run over in a trend. Understanding what regime you're in is fundamental to choosing the right approach.
The Four Regimes
Regime 1: Trending
Price makes clear higher highs and higher lows (uptrend) or lower highs and lower lows (downtrend). Pullbacks are shallow relative to the prior move.
Characteristics:
- ADX > 25 (or other trend strength indicator elevated)
- Price spends time at extremes of ranges, not in the middle
- Pullbacks fail to reach the previous swing low/high
- Volume is consistent or increasing in the trend direction
- 20-period moving average is sloped (not flat)
What works:
- Trend following (breakouts, pullback entries, momentum)
- Holding positions through intraday noise
- Adding on pullbacks
What fails:
- Fading moves (buying weakness, selling strength)
- Mean reversion
- Range-bound strategies
Example: ES rallies from 5400 to 5500 over 5 days. Each pullback is 10-15 points (shallow). The 20-day SMA slopes up. Daily closes are near the high. Trending.
Regime 2: Ranging (Sideways)
Price oscillates between established support and resistance. No net progress.
Characteristics:
- ADX < 20
- POC is in the middle of the range
- Price touches support and resistance multiple times
- Volume drops as the range continues
- 20-period MA is flat
What works:
- Fading the range extremes (buy support, sell resistance)
- Mean reversion strategies
- Options strategies (short strangles, iron condors)
What fails:
- Trend following (breakouts fail)
- Momentum strategies (no follow-through)
- Holding through range extremes (whipsaws)
Example: ES oscillates between 5400 and 5450 for 10 days. Each touch of 5400 bounces. Each touch of 5450 rejects. The POC is at 5425 (middle of range).
Regime 3: Volatile (High Volatility)
Wide bars, large gaps, price moves that extend beyond recent normal ranges. Often triggered by news events or regime shifts.
Characteristics:
- ATR is elevated (150%+ of 20-period average)
- Daily ranges are 2-3x normal
- VIX > 25
- Gaps are frequent and large
- Price accelerates through levels quickly
What works:
- Reducing position size (wider stops = same capital at risk)
- Waiting for volatility contraction before entering
- Following the initial direction (volatile breakouts tend to extend)
- Standing aside
What fails:
- Tight stops (they'll be eaten by intraday volatility)
- Mean reversion (volatile moves can extend far beyond "overextended" levels)
- Position sizing based on normal conditions
Example: Fed announces a surprise rate cut. ES gaps up 80 points. Daily range is 120 points. ATR(14) jumps from 30 to 60.
Regime 4: Quiet (Low Volatility)
Narrow bars, small daily ranges, low volume. Often precedes a volatile expansion.
Characteristics:
- ATR is compressed (50-75% of 20-period average)
- Daily ranges are small
- VIX < 15
- Volume is below average
- No clear trend or range (just noise)
What works:
- Looking for breakout setups (compression precedes expansion)
- Scaling back position anticipation of a volatility event
- Preparing for the next regime
- Doing nothing
What fails:
- Any aggressive strategy (no edge in noise)
- Trend following (no trend to follow)
- Mean reversion (no extremes to revert from)
Example: ES trades in a 15-point range for 3 days. Volume drops. VIX below 14. You can feel the compression. The breakout (when it comes) will be violent.
How to Identify Regimes
ADX (Average Directional Index)
- ADX < 20: Ranging or quiet
- ADX 20-30: Mild trend
- ADX 30-40: Strong trend
- ADX > 40: Trend extreme (may be exhausting)
Don't use ADX direction as a signal. ADX measures trend strength, not direction. Direction comes from DI+ and DI- (separate from ADX).
ATR (Average True Range)
- ATR below 20-period average: Compression. Regime change coming.
- ATR at 20-period average: Normal. Current regime is stable.
- ATR above 20-period average: Expansion. Regime is active.
- ATR at 150%+ of average: Extreme. Position management is critical.
VIX
- VIX < 15: Complacent. Low volatility expected.
- VIX 15-25: Normal range. Business as usual.
- VIX 25-35: Elevated. Expect larger swings.
- VIX 35+: Panic. Extreme volatility. Capital preservation mode.
Our Regime Detection
Our XGBoost model doesn't explicitly classify regimes. It does something better: it learns to behave differently in different regimes.
How: The model receives regime-relevant features:
- ADX(14), ADX(30)
- VIX level and VIX change
- ATR ratio (current/20-period average)
- Bollinger Band width
- Distance from 20-period SMA (normalized by ATR)
- Count of consecutive closes above/below the 20 SMA
With these features, the model learns that:
- When ADX is low and price is near the 20 SMA: sideways market, tight stops, smaller positions
- When ATR is exploding and VIX is spiking: reduce size, widen stops, trade only high-confidence signals
- When ADX is high and price is above the 20 SMA: trend is strong, let profits run
We don't tell the model what regime it's in. The model figures it out from the features. This is better than explicit classification because the boundaries between regimes are fuzzy.
Regime Transition Detection
The transitions are where the money is — and where the losses are.
Range → Trend:
- Price breaks out of a well-established range on increased volume
- The breakout retests and holds
- ADX starts rising
- ATR expands
This is the highest-probability trend entry. The range has established the boundaries. The breakout shows where capital wants to go. Enter on the retest.
Trend → Range:
- Price fails to make new highs/lows after a strong trend
- ADX starts declining
- ATR contracts
- Price returns to the POC
This is when trend-following strategies die. The trend is ending, but you might not see it until you've given back half your profits.
Trend → Trend Reversal:
- Price breaks the last swing low/high of the trend
- The break is on high volume
- The retest of the broken level fails
- ADX readings from the old trend collapse
This is the change of character (ChoCh). The trend has reversed. Previous support is now resistance (or vice versa).
The Practical Guide
If you're not sure what regime you're in: Check the 60-minute ES chart. Look at the last 5 days:
- Are there clear HH/HL or LH/LL? → Trending
- Is price bouncing between two clear levels? → Ranging
- Are bars twice as big as normal? → Volatile
- Are bars tiny and volume low? → Quiet
Then pick your approach accordingly.
In a trend: Let the model run. Don't tighten stops. Let winners breathe.
In a range: Reduce position size. Expect moves to fail at extremes. Take profits fast.
High volatility: Cut size by 50%. Widen stops. Be ready to step aside entirely.
Low volatility: Prepare. The explosion is coming. Don't get caught flat-footed.
Your strategy's performance is regime-dependent. If you're in a drawdown, check the regime first. If the regime changed and your model is still trading the old regime, that explains the drawdown. The model needs retraining on the new regime.
If the regime hasn't changed and the model is still losing, the edge has degraded. That's a different problem — one that probably requires feature or architecture changes.
Regime awareness is the first filter. Everything else sits on top.