Relative Vigor Index on TradingView: Formula, Signal Line, and Settings
The Relative Vigor Index (RVI) compares smoothed close-minus-open movement with smoothed high-minus-low range. Pineify labels this indicator RVGI. It oscillates around zero; it is not a 0 to 100 oscillator with a 50 midpoint or 80/20 overbought and oversold levels.

What Pineify calculates
The implementation first applies a four-bar symmetrically weighted moving average to close - open and separately to high - low. The weights are 1, 2, 2, and 1, divided by 6. It then sums each smoothed series over the selected length and divides the numerator sum by the denominator sum. A second four-bar symmetrical average of RVI creates the signal line.
The default Length is 10. Offset defaults to 0, and the indicator is configured for a separate pane with RVGI and Signal outputs. These are the current configuration defaults, not empirically optimized settings.
The TradingView RVI reference provides the indicator's broader definition. Check the exact source when comparing implementations: changing the smoothing sequence or substituting an ordinary moving average for the weighted signal line changes the result.
Interpret zero and the signal line
| Reading | Interpretation |
|---|---|
| RVI above zero | The smoothed close-minus-open numerator is positive, assuming a valid positive denominator |
| RVI below zero | The smoothed numerator is negative |
| RVI crosses above Signal | The current series crosses above its smoothed comparison series |
| RVI crosses below Signal | The current series crosses below its smoothed comparison series |
A positive RVI does not necessarily mean every bar closed near its high. It describes the aggregated relationship between bodies and ranges. It also does not directly measure buyer identity, trader conviction, or the probability of a future price increase.
Large absolute readings should be interpreted in context. Do not import RSI's threshold scale into this indicator. The relevant scale follows this ratio calculation, and unavailable initial values are not neutral readings.
Add and verify the indicator
Select Relative Vigor Index in Pineify's Visual Editor, inspect Length and Offset, and generate the script. Load it in TradingView, resolve compiler messages, and compare a few values with the settings you selected.
Check that the RVGI and Signal lines are distinguishable. An offset changes where a value is displayed; it does not make that value available earlier for trading. Keep Offset at zero while checking signal timestamps.
The current ratio has no explicit guard for a zero range denominator. A flat history window can therefore produce an unavailable value. Adequate warmup history and missing-value handling belong in any strategy that consumes the series.
Test a crossover rule without inventing a win rate
Specify whether a crossover requires bar-close confirmation, whether the zero sign filters it, when an order can execute, and how it exits. Test the baseline before adding filters. Otherwise an apparent improvement could come from changed exits, fewer trades, or a different sample rather than the indicator itself.
For divergence, identify price and oscillator pivots with a reproducible rule. Record confirmation delay. A visually selected divergence after the fact does not demonstrate a predictive trading edge.
This guide contains no verified AAPL divergence count, SPY win-rate improvement, or personal crypto-trading result. To support such claims, retain the data period, executable rule, settings, costs, and complete trade results.
Is Relative Vigor Index centered on 50?
No. Pineify's RVGI ratio is centered on zero. The prior 0 to 100, 50-midpoint, and 80/20 descriptions did not match this implementation.
What is the default length?
The current Pineify configuration uses 10. The signal line uses a four-bar symmetrically weighted average, not another configurable 14-period RSI calculation.
Does a crossover guarantee a reversal?
No. It records a relationship between two related series. A complete strategy requires separate execution, exit, sizing, and evaluation rules.


