Relative Volatility
Jun 18, 2021

The Relative Volatility indicator highlights large changes in price by measuring the absolute difference between open and close, helping traders identify significant price action shifts and breakout patterns.
Usage
The Relative Volatility tool is primarily used to identify periods of high price activity that may signal the beginning of a trend or a breakout. By visualizing price "spikes" as columns, traders can compare current price movement against historical averages.
- Breakout Identification: When the price columns exceed the plotted moving averages (Filters), it indicates a surge in volatility, often confirming a breakout from a range or a significant wave in price action.
- Volume Synergy: While this script focuses on price volatility, it is designed to be paired with volume indicators. Observing high volatility alongside high volume can confirm the strength of a move.
- Trend Strength: The indicator includes "Trend Columns" based on the difference between Least Squares Moving Averages (LSMA), helping to visualize the underlying momentum behind the volatility.
Details
The script calculates volatility by taking the absolute difference between the open and close of each candle (referred to as a "spike"). It then applies several smoothing techniques and filters to provide context:
- Moving Averages: It utilizes Simple Moving Averages (SMA) and Least Squares Moving Averages (LSMA) to establish a baseline for "normal" volatility.
- Filters: Multiple overlays including a Hull Moving Average (HMA), Arnaud Legoux Moving Average (ALMA), and Standard Deviation are plotted as areas to create a multi-layered volatility "cloud."
- ZLSMA Calculation: The script calculates a Zero-Lag Least Squares Moving Average (ZLSMA) to compare against a standard LSMA, identifying trends in volatility expansion or contraction.
Settings
- Volatility Columns: Displays the absolute difference between open and close, colored by the candle direction (Green for bullish, Red for bearish).
- Filter 1 (HMA): A Hull Moving Average of the volatility spikes, used for reactive smoothing.
- Filter 2 (ALMA): An Arnaud Legoux Moving Average providing a superior trade-off between smoothness and responsiveness.
- Filter 3 (Stdev): A Standard Deviation area representing the statistical dispersion of price spikes.
- Filter 4 (SMA): A basic Simple Moving Average of the volatility.
- LSMA/ZLSMA: Linear regression-based lines used to determine the average volatility trend and generate the yellow trend columns.
FAQ
How do I interpret the blue background areas?
The blue areas represent various filters (HMA, ALMA, SMA, and Stdev). When the volatility columns rise above these areas, it signifies that the current price movement is significantly higher than the recent average, indicating a volatility spike.
Can this be used for trend reversal?
While it identifies volatility, it is best used for identifying momentum and breakouts. A spike in volatility can occur at both the start of a new trend or the climax of an existing one.
How can I access Relative Volatility?
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.