Adaptive Volatility Bands
Oct 25, 2025

The Adaptive Volatility Bands indicator provides dynamic price envelopes that adjust to market volatility and trend strength to help traders identify breakout opportunities and trend direction.
Usage
The tool can be utilized for various trading strategies by observing the interaction between price and the volatility bands. Users can identify potential long entries when the price crosses above the basis line while it is rising, and short entries when the price crosses below a falling basis line.
The gradient visualization serves as a heat map for price exhaustion; as price moves into the outer gradient layers, it indicates an extension relative to the historical volatility. The bands can also act as dynamic support and resistance levels. Furthermore, the indicator features squeeze detection based on Bollinger and Keltner Channel relationships, allowing traders to anticipate periods of high volatility following consolidation.
Details
The script functions by calculating a central basis line through a selection of moving average types. Around this basis, volatility envelopes are projected using ATR, Standard Deviation, or a simple high-low range.
A unique aspect of this tool is the adaptation logic: it quantifies trend strength via linear regression and normalizes it. When the adaptive feature is enabled, the band width expands during strong trends to prevent premature signals and narrows during ranging markets. The visual output uses a 10-layer gradient system to provide a smooth transition between the bands and the centerline, facilitating easier interpretation of price position within the volatility envelope.
Settings
Basis Configuration
- Basis Type: Selects the moving average calculation for the centerline (SMA, EMA, ALMA, KAMA, or VWMA).
- Basis Length: Determines the lookback period for the centerline calculation.
- ALMA Settings: Adjusts the Offset and Sigma parameters specifically for the ALMA basis type.
Volatility Settings
- Volatility Method: Choose between ATR, Standard Deviation (STD), or Range (RNG) for band calculations.
- Volatility Length: Sets the lookback period for the chosen volatility metric.
- Band Multiplier: Controls the base distance of the bands from the centerline.
Adaptive Settings
- Enable Adaptive Bands: Toggles the dynamic adjustment of band width based on trend strength.
- Adaptation Period: The window used to measure trend strength for the adaptive calculations.
Squeeze Detection
- BB Length/Multiplier: Parameters for the Bollinger Band component of the squeeze logic.
- KC Multiplier: Sets the multiplier for the Keltner Channel component of the squeeze logic.
FAQ
How do I use the squeeze detection?
Squeeze conditions occur when the volatility bands contract significantly. You can monitor these periods for potential expansion breakouts, which are often signaled when price breaks out of the narrow range with increased momentum.
What is the advantage of using different basis types?
Different moving averages have different lag and smoothing characteristics. For example, ALMA provides a smoother line with less lag compared to a standard SMA, while KAMA adapts to market noise.
How can I access this tool?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.