CUSUM Volatility Breakout
Dec 27, 2025

The CUSUM Volatility Breakout indicator is a statistical trend-detection tool designed to identify subtle momentum shifts and early-stage breakouts before they become apparent on standard price charts. By utilizing cumulative sum (CUSUM) control charts and adaptive volatility limits, it provides traders with a heads-up on potential trend reversals and continuations.
Usage
The script marks the price chart with entry and exit signals based on confirmed statistical breaches. Traders can use it to enter trends early by monitoring the relationship between the cumulative price deviations and the dynamic control limits (UCL/LCL).
- Long Entry: Occurs when there is a confirmed positive CUSUM breach of the upper control limit, optionally filtered by volume and Bollinger Band breakouts.
- Short Entry: Occurs when there is a confirmed negative CUSUM breach of the lower control limit.
- Trend Tracking: Users can monitor the green and red circles (CU/CL Price) to gauge the strength of a developing trend. Rapid accumulation suggests strong momentum.
- Exit Strategy: The indicator provides automatic exit signals triggered by opposite-side momentum shifts.
Details
The CUSUM VB operates on the principle of tracking cumulative deviations from a zero reference. Unlike standard indicators that look at fixed thresholds, CUSUM is sensitive to small, persistent changes in the mean of a data series.
Key architectural components include:
- Adaptive Volatility: The control limits (H) adjust automatically based on ATR ratios, tightening during calm markets to catch moves early and expanding during volatile periods to reduce false signals.
- Differenced Price Series: The tool uses differencing to make price data stationary, allowing for more accurate statistical analysis of residuals.
- Reset Mechanisms: Multiple reset modes (Immediate, Decay, Threshold, etc.) allow users to define how the cumulative memory of the indicator behaves after a signal fires.
Settings
Differenced Price Series
- Source: The price source used for calculations.
- Length: The rolling window for calculating the differenced series.
- Order: The number of differencing operations (0 for raw, 1 for trend removal, 2 for curvature removal).
- Lag: The number of bars back used for the difference calculation.
CUSUM Parameters
- Volume-Weighted CUSUM: Amplifies price responses during high-volume bars to link detection to market participation.
- ATR Confirmation: Requires a specific level of volatility expansion to confirm a signal.
- CUSUM Input Mode: Choose between "Txfrm Data" (direct input) or "Residuals" (deviations from an EMA baseline).
- Control Sensitivity (K): The minimum detectable shift in mean. Lower values increase sensitivity.
- Reset Mode: Determines how CUSUM values are cleared after a signal.
- Conflict Handling: Defines logic for resolving simultaneous bullish and bearish signals.
Volume & Bollinger Bands
- Confirm Price with Volume: Uses a secondary volume-based CUSUM to validate price moves.
- Bollinger Bands Squeeze: Integrates volatility contraction detection to confirm breakouts.
- Lookback Synchronization: Allows for a "window" of time where CUSUM and BB signals must align to trigger an entry.
FAQ
How do I access CUSUM Volatility Breakout?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the "Min Target ARL ratio"?
This setting controls the average run length before a false alarm. A higher ratio makes the indicator more conservative (fewer false signals), while a lower ratio makes it more aggressive.
Which Reset Mode should I use for trend following?
"Opposite-Side Reset" is generally best for trend tracking, as it maintains the cumulative count for the current direction while only resetting the counter for the opposing direction.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.