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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

