All indicators

Change-Point Detection (CUSUM)

By LuxAlgoFeb 17, 2026

Static chart image

Change-Point Detection (CUSUM) hunts for the bar where a market's statistical behavior actually changes. A modified cumulative-sum procedure — the workhorse of change-point detection in quality control — standardizes log-returns into z-scores, the same yardstick used in outlier detection, and accumulates every deviation that clears a slack filter. When the accumulated pressure crosses a statistical threshold, a new regime is confirmed at that price — no moving-average lag involved.

How to Trade the Change-Point Detection (CUSUM)?

  • Green regime line: bullish regime; the line marks the price where the last change-point confirmed and serves as the structural baseline.
  • Red regime line: bearish regime, the same logic mirrored.
  • Pressure bands (sPos and sNeg): shaded accumulation against the current regime — steady growth signals instability building before any flip.
  • Triangle markers: pressure exceeded the threshold; the regime flips, the accumulators reset, and a new baseline prints.

Trade fresh regimes directionally, trim exposure as opposing pressure swells, or let the regime state pick between trend-following and mean-reversion playbooks. Confirmed change-points do not repaint.

Change-Point Detection (CUSUM) Settings

  • Lookback Period: rolling window for the mean and standard deviation; shorter reacts faster, longer stabilizes detection.
  • Threshold (h): pressure required to confirm a change-point — higher values favor durable structural shifts, lower values catch shorter rotations.
  • Slack (k): minimum deviation before anything accumulates; raising it filters sideways noise and premature triggers.
  • Dashboard: enable the readout and set its position and size.

Frequently Asked Questions

Is this a trend-following or mean-reversion tool?

Neither, strictly — it is a regime detector. Trend traders enter with newly confirmed regimes, mean-reversion traders look for opportunity inside a stable one, and systematic traders use the state to pick which system is active.

Why standardize returns instead of using raw price?

Standardization makes the accumulators volatility-adjusted and scale-free, so the same threshold and slack behave consistently on a currency pair, an index, or a single stock. Sensitivity comes from your parameters, not from the instrument's price level.

How can I use the Change-Point Detection (CUSUM) indicator?

It is free for everyone in the LuxAlgo Library, and Quant — LuxAlgo's AI — can run it straight from this page. Pair it with Volatility Regime Switches if you want a volatility-focused regime read beside this return-based one.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.