Indicators

Rolling Variance Indicator Explained

How the rolling Variance series exposes squared dispersion for quant-style volatility rules in Setup.Cash.

By Setup.Cash TeamLast updated 2026-07-032 min read205 words

Featured image placeholder

/og/setup-cash-og.svg

Rolling Variance is standard deviation's raw form — the average squared distance of price from its mean over the window. Squaring makes it extra sensitive to outliers: one wild bar moves variance far more than it moves StdDev, which is exactly why quants often prefer it for regime detection.

How It Works

  • Mean squared deviation from the rolling mean over N bars.
  • Outlier bars dominate the value (no square root to soften them).
  • The basis for variance-ratio tests and vol-of-vol measures.

How to Trade It

Use variance jumps as a shock detector (stand down after spikes), or build variance-ratio logic in the Indicators Lab — short-window variance vs long-window variance is a classic regime-change score. For stop distances, prefer its square root, StdDev.

Building It in Setup.Cash

Add Rolling Variance in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. See Z-Score for the normalized application. For the full category overview, see the volatility & statistics library guide.

Volatility indicators qualify trades rather than generate them — backtest your system with and without this filter and compare the drawdowns.

Not financial advice. Trading involves risk. Use backtesting and paper trading before risking real capital.

Related Posts

View all

Start here

Build your trading bot workflow with structure

Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.