Moving Average Regime

The simplest possible regime classifier. Above the moving average → bull. Below → bear. Binary, transparent, no model fitting.
Snapshot for
Click a card to switch DMA timeframe. The selected one is highlighted and shown in detail below.
Backtest this strategy →

Detail view

Index close
200-day MA
As of
Gap from MA
Last 365 trading days — price vs MA
Green segments = price above MA (bull)    Red segments = price below MA (bear)    Yellow line = moving average
Quantitative stats for — full available history

Gap = (price - MA) / MA, expressed as %. Positive = above MA, negative = below. The std dev tells you how volatile that gap typically is. The Z-score tells you whether today's reading is normal or stretched.

Gap std dev
one σ of price/MA spread
Gap mean
Current Z-score
MA slope (20d)
Annualized vol
of daily returns
Bull regime gap
avg gap when above MA
Bear regime gap
avg gap when below MA
Crossings / year
how often regime flips
Historical regime stats — full available history
% time bull
% time bear
Regime flips
over
Avg run length
bull · bear
Recent regime runs (≥5 days)
RegimeStartEndDaysReturn
How to read this. The DMA regime is a simple price-vs-trend classifier — no model fit, no probabilities, no machine learning. Price above the moving average = uptrend (bull); below = downtrend (bear). Toggle between 50 / 100 / 200-day to see short-, medium-, and long-term trend regimes. Compare against the HMM regime on the same index — they often agree, sometimes disagree, and the disagreements are usually instructive.