Volatility Bands
Oct 6, 2020

The Volatility Bands indicator provides a comprehensive method for measuring and visualizing market volatility by combining elements of Bollinger Bands and Keltner Channels into a single visual tool. It aims to identify potential trading opportunities by highlighting areas where price action deviates significantly from the mean using standard deviations and the Average True Range (ATR).
Usage
The Volatility Bands indicator is designed to help traders identify market regimes ranging from low-volatility consolidation to high-volatility impulse moves.
- Volatility Zones: The indicator plots an upper zone (between EMA + Standard Deviation and EMA + ATR) and a lower zone (between EMA - Standard Deviation and EMA - ATR).
- Market States: Traders typically look for opportunities when price action moves out of these bands. When the price remains within the bands, the market is generally considered to be in a state of consolidation.
- Trend Confirmation: The indicator includes an exponential moving average (EMA) as a baseline. Prices above the EMA suggest a bullish bias, while prices below suggest a bearish bias.
- Regime Table: An on-screen panel categorizes the current market environment into Compression, Equilibrium, Expansion, or Impulse, allowing for quick assessment of current risk and momentum.
Details
The indicator mathematically merges two popular volatility concepts. While Bollinger Bands use standard deviations and Keltner Channels use ATR, Volatility Bands utilizes both to create dynamic "zones" around a 13-period EMA (by default).
The script calculates:
- Upper Band Area: The space between the EMA + Standard Deviation and the EMA + ATR.
- Lower Band Area: The space between the EMA - Standard Deviation and the EMA - ATR.
- Volatility Ratio: A calculation comparing standard deviation to ATR to determine the current volatility regime (e.g., Compression vs. Impulse).
This approach is similar to the Squeeze Indicator in that it identifies the relationship between different volatility measurement techniques, but it focuses more on providing a direct visual overlay on the price chart for immediate interpretation.
Settings
- Source: Determines the price data used for all calculations (e.g., Close, Open, HL2).
- Length: Sets the lookback period for the EMA, Standard Deviation, and ATR calculations.
- Multiplier: Adjusts the width of the bands by scaling the Standard Deviation and ATR values.
- Panel Text Size: Controls the size of the text displayed in the on-screen regime panel.
FAQ
How do I interpret the different Regimes?
The regimes represent the strength of price movement: Compression and Equilibrium indicate low-volatility sideways movement, while Expansion and Impulse indicate increasing momentum and potential trend breakouts.
Can I use this for any asset?
Yes, the indicator is designed to scale with volatility across various asset classes including stocks, forex, and crypto.
How do I get access to Volatility Bands?
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.