The Science of Market Regime Detection
Every QuantaEdge signal passes through a regime gate before it reaches subscribers. This is not a disclaimer — it is the primary edge of the system. A strategy with a 65% win rate in a trending market and a 40% win rate in a choppy market should only fire in trending markets. Regime detection makes that decision automatically.
Why Most Algo Systems Fail
Most retail algorithmic trading systems are built for one market environment. They backtest well in trending conditions, go live, and then spend weeks grinding through a choppy market making small losses until the drawdown becomes unacceptable. The strategy did not fail — the conditions changed. Without regime awareness, the system cannot adapt.
The same iron condor that prints money in a 12% implied volatility, low-movement environment gets destroyed when VIX spikes to 30 and SPX moves 2% daily. The regime detection layer's job is to identify which environment we are in before a signal fires — not after.
The Four Regimes
Agent 2 runs a continuous classification cycle every few minutes using a composite of market indicators:
- Trending Up: SPY above both its 20-day and 50-day moving averages, VIX below 20, market breadth (advance/decline ratio) positive. Full position sizing. All strategies eligible. Directional long strategies active.
- Trending Down: SPY below the 20-day or 50-day MA. Half position sizing. Long directional strategies blocked. Short premium strategies still eligible with reduced size.
- High VIX Catalyst: VIX above 25 or a rapid VIX spike (>5 points in 1 day). Half position sizing. Iron condors and credit spreads require IV rank ≥ 40th percentile as an additional gate. Elevated premiums make short-vol strategies attractive at lower size.
- Choppy: SPY oscillating between MAs with no clear directional trend and low VIX. Quarter position sizing. No directional strategies. Only high-conviction mean-reversion setups eligible.
Regime Confidence and Changes
Regime changes are not instantaneous. A confidence threshold of 70% is required before the system declares a new regime. This prevents rapid oscillation between states when indicators sit at borderline values. In practice, the regime is stable for days to weeks at a time, with transitions concentrated around major macro events: Fed decisions, CPI prints, geopolitical escalations.
When a regime transition occurs, the system reduces position sizing for all active trades (if applicable) and updates the strategy eligibility list for new signals. Existing open positions are not force-closed on regime change — they follow their original exit rules.
Regime + GEX: A Layered Filter
Regime detection classifies the broad market environment. GEX (gamma exposure) adds a structural layer specific to options positioning. Together they form a two-layer gate: the regime determines what strategies are allowed to fire, GEX determines whether the structural conditions support the specific trade mechanics.
This layered approach is why QuantaEdge sometimes does not fire signals for days at a time — the system is waiting for the confluence of correct regime, correct GEX conditions, and correct strategy-level setup. Patience and selectivity are features, not bugs.