PROTECTED SOURCE SCRIPT

GARCH Volume Volatility

44
GARCH Volume Volatility (GV)

Description
Concept This indicator applies GARCH (Generalized Autoregressive Conditional Heteroskedasticity) concepts to Volume rather than Price. While most traders analyze volume as a raw figure, this script calculates the volatility of volume changes.

By understanding how stable or erratic volume flow is, traders can identify periods of institutional accumulation (often stable, high volume) versus panic or exhaustion (erratic, exploding volume volatility). The script uses an EWMA (Exponentially Weighted Moving Average) model to smooth squared volume returns, providing a highly responsive metric for volume variance.

How It Works The calculation follows a strict statistical methodology to ensure accuracy:

Returns Calculation: First, the script calculates the period-over-period change in volume. Users can select between Logarithmic Returns (ideal for handling the skew in volume data) or standard percentage change.

Variance Proxy: These returns are squared to calculate the raw variance.

EWMA Smoothing (The GARCH Component): Instead of a simple moving average, the script applies an EWMA filter. This uses a lambda (decay factor) to weigh recent variance more heavily than past variance.

Formula logic: Variance_t = lambda * Variance_{t-1} + (1 - lambda) * Returns^2_t

This recursive calculation mimics the "RiskMetrics" approach to volatility, adapting quickly to sudden volume shocks.

Dynamic Thresholds: The script calculates a Mean and Standard Deviation (Z-Score bands) of the resulting volatility to generate dynamic Overbought/Oversold zones for volume stability.

Visuals & usage The indicator displays a histogram representing the current Volume Volatility, color-coded by its intensity relative to the dynamic bands:


Red (High Band): Indicates extreme volume volatility (3+ Standard Deviations). This often occurs during capitulation bottoms or euphoric tops where volume consistency breaks down completely.

Maroon (Above Mean): Indicates elevated volatility. Volume is changing rapidly, suggesting active fighting between buyers and sellers.

Green (Low Band): Indicates low volatility. This suggests volume is flowing consistently. In trends, consistent volume (low volatility) often confirms a sustainable move.

Settings

Use EWMA: Toggles the recursive GARCH-style calculation. If disabled, it reverts to a simple SMA of variance.

Log Returns: Recommended true. Uses log-change for smoother handling of massive volume spikes.

EWMA Lambda: The decay factor (Default 0.94). Higher values make the indicator smoother; lower values make it more reactive to immediate shocks.


Threshold Lookback: The length of the window used to calculate the dynamic bands (High/Low zones).

Disclaimer This tool is designed for technical analysis of volume patterns and does not guarantee future price direction. Volume analysis is subjective and should be used in confluence with price action.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.