Volume and Volatility Ratio Indicator
Apr 15, 2025

The Volume and Volatility Ratio Indicator is a technical tool that combines relative trading volume and price volatility to identify abnormal market activity and potential trend reversal signals. By normalizing volume against its moving average and factoring in price amplitude, it provides a composite index designed to highlight periods of high market "heat" and exhaustion.
Usage
The indicator is primarily used to spot peaks in market activity that often precede reversals. It appears in a separate pane with a histogram and several line plots.
- Identifying Market Heat: The "Volume/Volatility Index" (drawn as a step-line) rises when both volume and price movement increase. Values above the threshold line indicate significant market participation and potential volatility spikes.
- Reversal Detection: The script automatically scans recent price action for specific reversal patterns. When conditions are met—such as the index exceeding the threshold while price shows specific K-line characteristics—the histogram bars change color.
- Trend Analysis: Short-term and long-term moving averages of the index help smooth out noise and show whether market activity is increasing or waning relative to recent history.
- Visual Cues:
- Green/Red Bars: Indicate potential bullish or bearish reversal patterns detected over the lookback period.
- Blue Bars: Represent volume that is higher than the average, suggesting active participation.
- Gray Bars: Represent below-average volume.
Details
The script functions by calculating a relative volume percentage (current volume / simple moving average) and a volatility percentage (high-low range / close). The product of these two metrics forms the "Volatility Index."
The logic behind this approach is that significant market turns often happen when high volume is coupled with wide price swings. By using a loop to check the lookbackBars, the indicator ensures that signals are only generated when specific price and volume sequences align, such as a climax in the index followed by a change in price direction.
Settings
Core Parameters
- Volume MA Length: Sets the lookback period for the simple moving average of volume used to calculate relative intensity.
- Index Short/Long MA Length: Determines the periods for the two moving averages applied to the final composite index.
- Index Sensitivity: A multiplier used to scale the moving averages for better visual alignment on the chart.
- Index Threshold: The level at which the market activity is considered "abnormal" or high-intensity.
- Pattern Detection Length: The number of preceding bars checked to confirm a reversal sequence.
FAQ
How do I interpret the threshold line? The threshold line acts as a filter. When the Step-line (Volatility Index) moves above this level, it suggests the market is entering an extreme state where a reversal becomes more statistically likely based on the script's criteria.
Can I use this for all assets? Yes, because the index is based on percentage-based volatility and relative volume, it is designed to be adaptive across different symbols and timeframes.
How can I access the Volume and Volatility Ratio 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.