Relative Vigor Index Calculator
Technical indicators
- Inputs: the smoothed candle body is 1.86 points against a smoothed range of 6.42 points, with the signal line at 0.21.
- Ratio: 1.86 / 6.42 = 0.2897.
- Histogram: 0.29 - 0.21 = 0.08.
- Relative vigor index result: 0.29 - above the signal line (bullish).
John Ehlers built the relative vigor index on a piece of market folklore he thought deserved a formula: in a genuine uptrend, prices tend to close near the top of each bar's range, and in a genuine downtrend they close near the bottom. The vigor of a move, in his framing, is where the close lands inside the bar. The RVI measures exactly that - the candle body, close minus open, as a share of the full high-low range - smoothed so that one theatrical bar cannot dominate the reading.
This calculator takes the smoothed body and the smoothed range, Ehlers' symmetric filtering already applied, plus the signal line. It returns the RVI, the histogram against the signal and the position. The examples cover a bullish reading, a bearish one and a bar set whose closes sit almost exactly mid-range.
Worked examples
RVI above its signal line
(1.86 · 6.42 · 0.21)
| Relative vigor index | 0.29 |
| Histogram (RVI - signal) | 0.08 |
| Position vs signal | Above the signal line (bullish) |
| Smoothed range used (points) | 6.42 |
RVI in a bearish regime
(-2.35 · 5.87 · -0.33)
| Relative vigor index | -0.40 |
| Histogram (RVI - signal) | -0.07 |
| Position vs signal | Below the signal line (bearish) |
| Smoothed range used (points) | 5.87 |
RVI with no bar conviction
(0.12 · 7.05 · 0.05)
| Relative vigor index | 0.02 |
| Histogram (RVI - signal) | -0.03 |
| Position vs signal | Below the signal line (bearish) |
| Smoothed range used (points) | 7.05 |
Ehlers' energy idea: body versus range
Every bar spends its range somehow. A bar that opens at its low and closes at its high has spent the whole range travelling up; a bar that opens and closes at the same price has spent its range going nowhere, however wide it was. The body-to-range ratio captures that spending pattern in a single number between -1 and +1, and it is blind to the things that mislead simpler measures: the size of the bar, the gap before it, and where it sits in absolute price.
Ehlers' contribution was the smoothing. Raw body-to-range ratios are violent - a doji after a trend bar flips the sign on a few ticks - so both series pass through a short symmetric filter that weights the middle bars of a four-bar window most heavily, and the ratio is taken afterwards. In the first worked example the smoothed body is 1.86 points against a smoothed range of 6.42 points: closes are landing, on average, in the upper portion of their bars, and the RVI is 0.29.
Note what the ratio is not. It is not momentum - a market can rise on bars that close mid-range if it gaps up every morning, and the RVI will shrug. It is not a position measure like the stochastic either, because it never asks where the close sits relative to other bars, only relative to its own bar's open, high and low. That narrowness is the point: the RVI isolates one behaviour - intrabar conviction - and reports it cleanly.
- RVI = smoothed (close - open) / smoothed (high - low).
- The scale runs from -1 (closes at the lows) to +1 (closes at the highs).
- Ehlers smooths both series with a short symmetric filter before dividing.
- A signal line, a shifted smoothing of the RVI, provides the crosses.
Signal-line crosses
The standard signal line is the RVI itself passed through the same symmetric filter with a bar's delay, so crossings mark the body-to-range balance tipping from one side to the other. This page reports the histogram - RVI minus signal - because it compresses the crossing state into one signed number. The first example's histogram of 0.08, with the RVI at 0.29 against a signal of 0.21, is a fresh bullish configuration: closes have only just started landing high in their bars, and the margin is still thin.
The second example is the mature bearish mirror. The smoothed body is -2.35 over a range of 5.87, the RVI is -0.40, and against a signal line of -0.33 the histogram is -0.07. The signal has already followed the RVI down - this is not the moment of the cross, it is the state after it, with closes persistently landing in the lower part of their bars. Traders who trade crosses care about the difference: the cross is the event, the persistent gap is the regime.
The third example warns against over-reading small numbers. A smoothed body of 0.12 over a range of 7.05 gives an RVI of 0.02 - closes landing almost exactly mid-bar - and a histogram of -0.03 against its signal. The page reports the position as below the signal line, which is true and useless: at this magnitude the indicator is describing bars with no conviction in either direction.
| Configuration | RVI | Histogram | What the bars are doing |
|---|---|---|---|
| Bullish | 0.29 | 0.08 | Closes landing high in their bars |
| Bearish | -0.40 | -0.07 | Closes landing low in their bars |
| No conviction | 0.02 | -0.03 | Closes landing mid-bar |
Worked examples
Example 1: Smoothed candle body (close - open) 1.86; Smoothed candle range (high - low) 6.42; Signal line (RVI) 0.21. Relative vigor index = 0.29. Supporting values: Histogram (RVI - signal) 0.08; Position vs signal Above the signal line (bullish); Smoothed range used (points) 6.42. Inputs: the smoothed candle body is 1.86 points against a smoothed range of 6.42 points, with the signal line at 0.21. Ratio: 1.86 / 6.42 = 0.2897. Histogram: 0.29 - 0.21 = 0.08. Relative vigor index result: 0.29 - above the signal line (bullish).
Example 2: Smoothed candle body (close - open) -2.35; Smoothed candle range (high - low) 5.87; Signal line (RVI) -0.33. Relative vigor index = -0.40. Supporting values: Histogram (RVI - signal) -0.07; Position vs signal Below the signal line (bearish); Smoothed range used (points) 5.87. Inputs: the smoothed candle body is -2.35 points against a smoothed range of 5.87 points, with the signal line at -0.33. Ratio: -2.35 / 5.87 = -0.4003. Histogram: -0.40 - -0.33 = -0.07. Relative vigor index result: -0.40 - below the signal line (bearish).
Example 3: Smoothed candle body (close - open) 0.12; Smoothed candle range (high - low) 7.05; Signal line (RVI) 0.05. Relative vigor index = 0.02. Supporting values: Histogram (RVI - signal) -0.03; Position vs signal Below the signal line (bearish); Smoothed range used (points) 7.05. Inputs: the smoothed candle body is 0.12 points against a smoothed range of 7.05 points, with the signal line at 0.05. Ratio: 0.12 / 7.05 = 0.0170. Histogram: 0.02 - 0.05 = -0.03. Relative vigor index result: 0.02 - below the signal line (bearish).
What the RVI sees that momentum misses
Consider two markets rising at the same speed. One grinds up on bars that open low and close high; the other gaps up each morning and drifts sideways intraday. Close-to-close momentum scores them identically. The RVI separates them completely - strongly positive for the grinder, near zero for the gapper - and the separation is information, because the two rises have different internals and typically different staying power. Ehlers designed the indicator for exactly this discrimination, and it remains its best use.
The reverse case matters at bottoms. A falling market whose bars start closing in their upper halves is showing accumulation behaviour before the price series itself turns; the RVI rises through its signal line while momentum still points down. Neither reading is a prophecy, but the body-versus-range evidence is genuinely independent of the close-to-close evidence, which is what a second indicator is for.
Limits of the body-to-range idea
The RVI inherits the weaknesses of its inputs. On instruments that trade nearly around the clock, the open is an arbitrary print and the body is close to meaningless; the indicator was designed for bar structures with real opens. Illiquid instruments with stale opens distort it the same way. And because the ratio is bounded and centred, it saturates less than range oscillators but also says nothing about magnitude: a market creeping up on tiny ranges and a market surging on huge ones can post the same 0.29.
The smoothing choice deserves the same discipline as any other indicator's period. Ehlers' symmetric filter has a specific shape - it is not an EMA - and substituting a different smoother changes the crossing behaviour even at the same nominal length. If you rebuild the inputs yourself, validate against the checkpoints on this page: 1.86 over 6.42 must give 0.29, -2.35 over 5.87 must give -0.40, and 0.12 over 7.05 must give 0.02.
Reading the RVI with the trend, not against it
Used alone, the RVI's crosses are frequent enough to churn an account in a sideways market - the third example's configuration generates a bearish label on bars that did nothing at all. Used as a regime filter, it earns its keep: longs only while the RVI sits above its signal, shorts only while below, and flat when the two are braided together near zero. The histogram's size is the practical gauge of separation - 0.08 is a regime, -0.03 is a braid.
That filter framing also resolves the indicator's lag honestly. The RVI will always confirm a change in bar behaviour after it starts, because smoothing is what makes it readable. Accept the lag, spend it on fewer false regimes, and let faster tools handle entries inside the regime the RVI has certified.
FAQs
What does the relative vigor index measure?
Where closes land inside their own bars: the smoothed candle body (close minus open) divided by the smoothed high-low range. Readings near +1 mean closes at the highs, near -1 closes at the lows, and near zero closes mid-bar.
What RVI does the first worked example give?
A smoothed body of 1.86 over a range of 6.42 gives an RVI of 0.29. Against a signal line of 0.21 the histogram is 0.08 - a fresh bullish configuration, with closes landing high in their bars.
What does the second example's -0.40 mean?
Closes are landing persistently in the lower part of their bars: a smoothed body of -2.35 over a range of 5.87. With a histogram of -0.07 against its signal, the bearish regime is established rather than just crossing.
Why is the third example's reading not a signal?
Its RVI is 0.02 from a body of 0.12 over a range of 7.05 - closes landing almost exactly mid-bar - and the histogram is -0.03. The position is technically below the signal line, but at that size the bars show no conviction in either direction.
How does the RVI differ from momentum?
Momentum compares closes across bars; the RVI compares each close with its own bar's open, high and low. Two markets rising at the same speed can share a momentum reading while the RVI separates the one grinding up intraday from the one gapping and drifting.
Where does the RVI work poorly?
On instruments without meaningful opens - near-continuous markets or illiquid ones with stale opening prints - the body is close to arbitrary and the ratio inherits the flaw. It was designed for bar structures with genuine opens.