# Relative Vigor Index

A Momentum & Oscillators concept (Classic single-name oscillators) in the LuxAlgo Library, with 1 indicator implementation.

## What is the Relative Vigor Index?

The Relative Vigor Index (RVI) measures the conviction behind price bars by comparing where they close relative to where they open, scaled by their ranges. The premise, articulated by John Ehlers when he published the indicator in 2002, is old floor wisdom: in rising markets bars tend to close above their opens, in falling markets below, and the persistence of that tendency says something about the vigor of the move that raw close-to-close [momentum](https://www.luxalgo.com/library/concept/momentum/) misses.

Construction matters here. Both the numerator (close minus open) and the denominator (high minus low) are smoothed with a 4-bar symmetric weighting, a form of [symmetric weighted moving average](https://www.luxalgo.com/library/concept/swma/), and then summed over a lookback window, typically 10 bars. The ratio of the two sums is the RVI line, and a second symmetric smoothing of the RVI itself produces the signal line. The symmetric weights were chosen to filter bar-to-bar noise while adding less lag than a simple average of the same length.

The result oscillates around zero without hard bounds, usually staying within a fraction of one unit. Traders read it much like a smoother [stochastic](https://www.luxalgo.com/library/concept/stochastic-oscillator/): the zero line for bias, since sustained positive readings accompany markets closing above their opens on balance; line-versus-signal crossovers for timing, more trustworthy when they occur with the prevailing trend; and divergence at extremes, where price makes a new high while the RVI posts a lower high, warning that closes are slipping toward the opens even as price advances.

Its known weaknesses follow from the inputs: on instruments where the open is synthetic or nearly equal to the prior close (many 24-hour markets), close-minus-open carries less information and the indicator's edge thins accordingly. Quiet ranges deserve similar caution, because shrinking bar ranges shrink the denominator, and small absolute changes can produce outsized-looking swings in the line.

## How it's calculated

Symmetrically weighted close-open and high-low terms are summed over the window; their ratio is the RVI.

```
V = ((close - open) + 2*(close[1] - open[1]) + 2*(close[2] - open[2]) + (close[3] - open[3])) / 6
D = ((high - low) + 2*(high[1] - low[1]) + 2*(high[2] - low[2]) + (high[3] - low[3])) / 6
RVI = sum(V, n) / sum(D, n)
signal = (RVI + 2*RVI[1] + 2*RVI[2] + RVI[3]) / 6

  close[i], open[i], high[i], low[i]: values i bars ago
  n: summation window (default 10)
  sum(x, n): sum of x over the last n bars
```

Zero denominators (flat bars) need guarding in code; implementations typically skip or carry forward the prior value.

## How traders use it

- As a crossover timing tool inside an established trend, buying RVI/signal upcrosses during pullbacks and ignoring the counter-trend crosses that any oscillator produces.
- As a conviction check on breakouts: a range break accompanied by a rising RVI says the breakout bars are closing near their highs, while a flat RVI flags a break driven by gaps or weak closes.
- For [divergence](https://www.luxalgo.com/library/concept/regular-bullish-bearish-divergence/) analysis at swing extremes, generally requiring structural confirmation before acting, since vigor can fade for several swings before price actually turns.
- As a complement to close-to-close oscillators like [RSI](https://www.luxalgo.com/library/concept/rsi/), because RVI's open-to-close input responds to intrabar behavior the others cannot see.
- With its session caveat in mind: on markets without a meaningful daily open, many practitioners either extend the smoothing or prefer other tools outright.

## RVI vs similarly named or shaped tools

- **Relative Volatility Index** (https://www.luxalgo.com/library/concept/relative-volatility-index/): Same initials, different object: the Relative Volatility Index applies RSI-style math to standard deviation to measure the direction of volatility. The Relative Vigor Index measures close-versus-open conviction. The shared abbreviation causes real confusion.
- **Stochastic Oscillator** (https://www.luxalgo.com/library/concept/stochastic-oscillator/): The stochastic locates the close within the recent range; the RVI locates it relative to the open, bar by bar. Both use signal-line crossovers, but they answer different questions and diverge most on gap-heavy markets.
- **MACD** (https://www.luxalgo.com/library/concept/macd/): MACD builds its line from close-only moving averages, so it tracks direction of drift. RVI can weaken while closes still drift upward, whenever bars start closing progressively nearer their opens.

## FAQ

### Is the Relative Vigor Index the same as the Relative Volatility Index?

No. Both abbreviate to RVI, but the Vigor index measures close-minus-open conviction while the Volatility index applies RSI math to standard deviation. Check which one your platform plots before comparing notes.

### What is the standard RVI setting?

A 10-bar summation window with the fixed 4-bar symmetric smoothing on inputs and signal line. Longer windows suit higher timeframes; the smoothing weights themselves are part of the design and rarely changed.

### Does the RVI work on 24-hour markets?

Less well, honestly. When each bar opens where the last one closed, close-minus-open compresses toward close-to-close change and the indicator loses part of its distinct information. It remains usable but behaves more like ordinary momentum there.

### Are RVI crossovers reliable signals?

No crossover indicator is reliable standalone, and the RVI whipsaws in quiet ranges like the rest. Its crossovers are best treated as timing refinements inside a bias established by trend structure or the zero line.

## Implementations in the Library

- Relative Vigor Index (LuxAlgo, the standard build of the classic formula): https://www.luxalgo.com/library/indicator/relative-vigor-index/

## Related concepts

- Balance of Power: https://www.luxalgo.com/library/concept/balance-of-power/
- CCI: https://www.luxalgo.com/library/concept/cci/
- Williams %R: https://www.luxalgo.com/library/concept/williams-percent-r/
- Ultimate Oscillator: https://www.luxalgo.com/library/concept/ultimate-oscillator/
- True Strength Index: https://www.luxalgo.com/library/concept/true-strength-index/
- Awesome Oscillator: https://www.luxalgo.com/library/concept/awesome-oscillator/
- Accelerator Oscillator: https://www.luxalgo.com/library/concept/accelerator-oscillator/
- Gator Oscillator: https://www.luxalgo.com/library/concept/gator-oscillator/
- Elder Ray: https://www.luxalgo.com/library/concept/elder-ray/
- Elder Impulse System: https://www.luxalgo.com/library/concept/elder-impulse-system/

---

Source: https://www.luxalgo.com/library/concept/relative-vigor-index/ (LuxAlgo Library, the encyclopedia of trading & technical analysis). Free to use with attribution: https://www.luxalgo.com/library/license/