OPEN-SOURCE SCRIPT

Mongoose Unified Volatility Index (UVI)

109
The Mongoose Unified Volatility Index (UVI) combines multiple volatility measures into a single normalized framework, helping traders track the full volatility cycle at a glance.

Methodology

UVI blends the following components:

Bollinger Band Width%

ATR% (Average True Range)

Historical Volatility (close-to-close)

Parkinson Volatility (high-low log range)

Donchian Width%

TR% (True Range percent)

Each input is normalized into a 0–100 scale and weighted. A smoothed EMA acts as a trend filter. Adaptive percentiles define Quiet / Neutral / Active regimes, making UVI responsive across assets and timeframes.

Features

Composite Line (UVI) with dynamic coloring

Green = volatility expanding above EMA

Red = volatility decaying below EMA

EMA Baseline (white) for context

Regime Shading (Quiet, Neutral, Active) based on adaptive percentiles

Expansion Signals (Exp Up / Exp Dn) when volatility crosses EMA around squeeze conditions

Compact Stats Table (top-right) showing UVI, Percentile, Squeeze state, and Regime

How to Use

Quiet → Exp Up: Prime breakout setups. Market energy igniting.

Active → Exp Dn: Trend exhaustion. Manage risk or fade extremes.

Neutral Regime: Mid-volatility, expect chop and tactical swings.

Gradient Fill: Quick bias check — green favors trend trades, red favors patience.

UVI is best used as a volatility state detector to time entries/exits around compressions and expansions, rather than a standalone buy/sell tool.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.