Adaptive Dynamic BB Clouds - Auto MA & Double Squeeze
Jun 2, 2026

The Adaptive Dynamic BB Clouds [PRO] indicator provides an algorithmic approach to volatility bands by dynamically adjusting the basis line and band width based on real-time volume, trend strength, and momentum. It aims to eliminate the limitations of static Bollinger Bands by automatically adapting to ranging, trending, or high-volatility market states.
Usage
The Usage section highlights how to interpret the adaptive components and signals generated by the script:
- Adaptive Basis Line: When set to "AUTO," the script selects the VWMA during volume surges (Relative Volume > 1.3), the EMA during strong trends (ADX > 25), and defaults to an SMA during ranging markets.
- Dynamic Band Expansion: Bands expand automatically during high-volume breakouts, strong ADX trends, or RSI extremes. Conversely, bands contract during low-activity periods to filter noise.
- Squeeze Identification: A gray background indicates a volatility squeeze (bands contracting within Keltner Channels). Users should look for these accumulation phases before anticipating a breakout.
- Double Squeeze Signal: A purple diamond appears when both the current timeframe (Macro) and the lower timeframe (Micro) enter a squeeze simultaneously, signaling a high probability of explosive expansion.
- Cloud Interpretation: The gradient area between the thick Macro bands and thin Micro bands represents a "Tension Zone," acting as dynamic support or resistance.
Details
The script utilizes a multi-factor algorithmic engine to calculate band multipliers. Unlike traditional bands that use a fixed standard deviation, this tool calculates a weight based on the Average Directional Index (ADX), Relative Volume (RelVol), and the Relative Strength Index (RSI).
The implementation includes an automatic Multi-Timeframe (MTF) detection system that identifies a logical lower timeframe (LTF) relative to the chart interval. This data is fetched using request.security with lookahead_off to ensure the indicator remains 100% repaint-free. The Squeeze % metric displayed on the dashboard quantifies the compression level relative to the Keltner Channels, providing a numerical value for volatility tension.
Settings
Main Settings
- Length: Sets the lookback period for the Moving Average and Standard Deviation calculations.
- Base MA: Selects the calculation method for the basis line (SMA, EMA, VWMA, etc., or AUTO for adaptive selection).
- Source: Determines the price data used for calculations (default is Close).
- Base Mult: The primary multiplier for the band width.
Dynamic Settings
- Use Dynamic: Toggles the algorithmic adjustment of band width based on market conditions.
- Smoothing: Adjusts the EMA period used to smooth the dynamic factor.
- ADX Length: Sets the period for the trend strength calculation.
- RSI Elasticity: Controls how sensitively the bands react to momentum extremes.
Squeeze Settings
- KC Multiplier: Sets the multiplier for the Keltner Channels used to detect squeeze phases.
- Show Squeeze Background: Toggles the background coloring during compression periods.
- Filter Weak Squeezes: If enabled, only displays squeeze signals if the ADX is above 20.
Dashboard & Style
- Show Info Panel: Toggles the visibility of the real-time metrics dashboard.
- Position / Text Size: Customizes the UI placement and scale of the dashboard.
- Style & Colors: Allows customization of the upper/lower clouds, micro bands, and basis line colors.
FAQ
How do I identify a potential breakout? Look for the "Squeeze" background (gray) to disappear as the bands begin to expand. A volume surge on the dashboard often confirms the direction of the expansion.
What does the Double Squeeze diamond represent? The purple diamond indicates that both the Macro and Micro timeframes are in a period of extreme volatility compression, often preceding a major market move.
How can I access this indicator? 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.