How it works
- Macro panel (8): 10y–2y curve, real 10y, 5y breakeven, HY OAS, DXY, initial jobless claims, VIX, copper/gold — sources: FRED & Yahoo.
- On-chain panel (10): DeFi TVL (level + 90d growth), stablecoin float (level + 90d growth), BTC/ETH active addresses, BTC MVRV, BTC/ETH ratio, ETH 50d/200d trend, new DEX pools per 24h — sources: DefiLlama, blockchain.com, Coinmetrics, Yahoo, GeckoTerminal.
- Equity factor panel (8): high-beta vs low-vol (SPHB/SPLV), momentum (MTUM/SPY), growth vs value (IWF/IWD), utilities leadership (XLU/SPY), staples vs discretionary (XLP/XLY), S&P 500 50d/200d trend, IWM/SPY breadth, Shiller CAPE — sources: Yahoo Finance and the Shiller spreadsheet mirror. Sign-stable equity risk-appetite + style + valuation signals.
- Normalization: rolling 3-year percentile rank per indicator, sign-aligned so +1 always means risk-on.
- Within-panel weighting: point-in-time inverse-correlation. Each day’s weights use only the trailing 3-year window — no look-ahead. Redundant inputs get auto-discounted without manual sub-grouping. 25% per-indicator cap.
- Composite: arithmetic mean of all three panel indices, then 3y rolling percentile, bucketed at 0.33 / 0.67.
- Smoothing: the published regime label requires 5 consecutive trading days in the new bucket before switching, OR a single-day move in composite percentile exceeding 2σ of its trailing 1y daily-change distribution (with direction consistent with the new bucket). Filters out boundary-noise flips while still responding quickly to legitimate fast regime shifts.
- Storage: long-format CSV (atomic write) committed daily to git; current snapshot in
public/data/regime-eq-snapshot.json. No database.
Why three panels
The macro panel reads upstream causes — monetary policy, credit conditions, the labor market. The on-chain panel reads crypto-native flows and network health. The equity factor panel reads the behavioral response of price-setters who have already digested the upstream inputs and are committing capital. Three independent viewpoints on the same risk regime, blended into one composite. Walk through the comparison and per-panel attribution in the research write-up.
For the original two-panel classifier (macro + on-chain only, kept as a reference) see /regime_2panel. For the full prior-art survey and design-space mapping, see the Regime Detection research brief.