RVI Volatility Pass Node

Relative Volatility Index — Series Input

IndicatorVolatilityPass

Overview

The RVI Volatility Pass Node applies the Relative Volatility Index algorithm to any upstream numeric series. The standard RVI Volatility node reads from a stock source (close prices); this pass variant accepts any { values, timestamps } input — enabling directional volatility analysis on indicator outputs, volume, or any custom data stream.

RVI applies RSI logic to standard deviation. It divides the standard deviation of up-closes by the sum of up and down standard deviations over a rolling window, producing a 0–100 bounded oscillator where values above 50 indicate that volatility is expanding more on up moves.

Formula

Up Volatility
UP = StdDev of values on bars where Δvalue > 0, smoothed over period
Down Volatility
DOWN = StdDev of values on bars where Δvalue ≤ 0, smoothed over period
RVI
RVI = 100 × UP / ( UP + DOWN )

Because the calculation requires a standard deviation window inside the RVI period, the effective warm-up is approximately period + 10 bars.

Parameters

ParameterTypeDefaultDescription
periodnumber14Smoothing period for up/down volatility. Effective warm-up ≈ period + 10 bars.

Inputs & Outputs

SlotDirectionTypeDescription
inputInput{ values, timestamps }Any upstream numeric series
valuesOutput(number | null)[]RVI values (0–100); nulls during warm-up
timestampsOutputnumber[]Unix timestamps aligned to the input series

Use Cases

Directional Volatility on Indicators

Apply RVI to an oscillator output to determine whether the oscillator's volatility is expanding more on up or down swings.

Volatility Bias on Volume

Wire volume series to detect whether volume surges align with up moves (bullish) or down moves (bearish).

Trend Confirmation

Combine with a trend indicator: RVI > 50 and uptrend = volatility aligned with the trend direction.

Tips & Best Practices

📊 Read Like RSI

Use RSI-style zones: > 80 = strong upside volatility bias, < 20 = strong downside volatility bias.

⚡ Longer Warm-Up

Effective warm-up is period + 10 bars. Ensure your input series is long enough before using the output.

🔗 vs Standard RVI

If your data comes from a single stock source, use the standard RVI Volatility node — it reads OHLCV directly and requires no manual wiring.

Related Indicators