The relative vigor index (RVI) is an oscillator that measures where prices close against where they open, divided by the high to low range of the same bars. When candles keep closing near their highs above the open, the RVI rises above zero; when they close below the open, it falls below zero. It is plotted as two lines, the RVI line and a slower signal line, and their crossings, the zero line and divergences with price give the trading signals.

TL;DR
  1. The RVI divides the smoothed close minus open by the smoothed high minus low and sums both over 10 bars by default; the signal line is a 1-2-2-1 weighted average of the RVI.
  2. In MetaTrader 4 and MetaTrader 5 it is built in: Insert > Indicators > Oscillators > Relative Vigor Index.
  3. Trade a crossing only after the price confirms it, and decide in advance where the setup is cancelled: beyond the last swing low or high.

This guide covers the formula with a worked example, the settings in MetaTrader, three trading signals with a confirmation and an invalidation for each, the difference from the RSI and the Stochastic, and the conditions in which the RVI gives poor signals.

What Does the Relative Vigor Index Show?

The RVI was presented by John Ehlers, a developer of technical indicators and automated trading strategies, in the article "Relative Vigor Index (RVI)" in the January 2002 issue of Technical Analysis of Stocks & Commodities. The idea behind it is simple: in a rising market, prices tend to close higher than they open, and in a falling market they tend to close lower. The vigor, or energy, of a move shows in where the price ends up at the close.

Ehlers based the RVI on an older idea, the accumulation/distribution oscillator that Jim Waters and Larry Williams described in 1972, and smoothed it with modern filters so that it is usable on a chart.

The RVI belongs to the group of oscillators. It appears in a separate window under the price chart and consists of two lines: the RVI line, which reacts faster, and the signal line, which follows it with a delay. Its values are not normalised to a fixed scale such as 0 to 100: the centre line is 0, and how far the lines move from it depends on the instrument and the timeframe. A reading is high or low only compared with the indicator's own recent history.

EUR/USD daily chart from December 2019 to March 2020 with the RVI(10) window below it: a green RVI line and a red signal line that fall to their low in late February and rise to their high in early March
EUR/USD, daily chart, December 2019 to March 2020, with RVI(10): the green line is the RVI, the red line is the signal line. Past results do not guarantee future performance.

The abbreviation RVI is also used for the Relative Volatility Index, a different indicator introduced by Donald Dorsey. It measures the direction of volatility through the standard deviation of prices and moves on a scale from 0 to 100. This article covers only the Relative Vigor Index.

Relative Vigor Index Formula

The basic expression compares the change from open to close with the full range of the bar:

RVI = (Close − Open) / (High − Low)

A single bar gives a jumpy value, so the indicator smooths the numerator and the denominator before dividing them. The calculation runs in four steps:

  1. Numerator. Take close minus open for the current bar and the three bars before it and weight them 1, 2, 2, 1: (C − O) + 2 × (C1 − O1) + 2 × (C2 − O2) + (C3 − O3), divided by 6. C1 and O1 are the close and open one bar ago, and so on.
  2. Denominator. Do the same with high minus low: (H − L) + 2 × (H1 − L1) + 2 × (H2 − L2) + (H3 − L3), divided by 6.
  3. RVI line. Add up the numerators of the last N bars, add up the denominators of the same bars and divide the first sum by the second. N is the period, 10 by default.
  4. Signal line. Smooth the RVI with the same 1, 2, 2, 1 weights: (RVI + 2 × RVI1 + 2 × RVI2 + RVI3) / 6.

The 1, 2, 2, 1 weighting is a symmetrically weighted moving average over four bars. It removes most of the bar-to-bar noise and shifts the line by only one and a half bars.

Worked example: one smoothed value

The four bars below are synthetic, measured in points, and chosen to show the arithmetic.

Four synthetic bars give a ratio of 0.28: closes beat opens by 28% of the range
BarClose minus open, pointsHigh minus low, pointsWeight
Current bar+15351
One bar ago−5252
Two bars ago+20402
Three bars ago+10301
Weighted sum (weights 1, 2, 2, 1)551956
Weighted average, sum divided by 69.1732.5

Ratio: 9.17 / 32.5 = 0.28. Over these four bars, the closes finished, on a weighted average, 28% of the bar's range above the opens, a buyer-led stretch.

The RVI line repeats this for each of the last 10 bars, adds up the ten numerators and the ten denominators and divides one sum by the other. A value near 0 means closes and opens roughly balance; a value that rises toward the top of its recent range means closes have stayed well above the opens for several bars.

How to Add the RVI in MetaTrader 4 and MetaTrader 5

The Relative Vigor Index is built into both MetaTrader 4 and MetaTrader 5, so nothing has to be downloaded. To add it to a chart:

  1. Open the chart of the instrument and choose the timeframe.
  2. In the main menu choose Insert > Indicators > Oscillators > Relative Vigor Index. You can also drag it onto the chart from the Navigator window, where it sits in the Oscillators group.
  3. On the Parameters tab, set the period. The default is 10.
  4. Choose the colour, width and style of the RVI line and of the signal line, then click OK. The indicator opens in a separate window under the chart.

The period of 10 is the value used in Ehlers' original code and the one recommended in the MetaTrader help. A shorter period makes the lines faster and gives more crossings, many of them false; a longer one gives fewer and later signals. If you change it, test the new value on the history of your instrument and timeframe first, and then on a demo account. Step-by-step guides to the platforms: how to use MetaTrader 4 and how to trade in MetaTrader 5.

Relative Vigor Index settings window in MetaTrader over a EUR/USD daily chart: Parameters tab with Period 10, RVI style green, signal line style red, fixed minimum and fixed maximum unchecked
The Relative Vigor Index settings window in MetaTrader: period 10, green RVI line, red signal line.

Relative Vigor Index Strategy: Three Trading Signals

The RVI gives three types of signals. The table sums them up, and each one is explained below with a chart. These are educational examples of rules. Each setup needs a confirmation from the price and a level at which it is cancelled.

Three RVI signals: buy setup, sell setup and the condition that cancels each
SignalBuy setupSell setupSetup cancelled when
Crossing of the RVI and signal linesThe RVI crosses the signal line upward after a low, well below 0The RVI crosses the signal line downward after a high, well above 0The price closes beyond the last swing low (buy) or high (sell), or the lines cross back before entry
Crossing of the zero lineBoth lines cross 0 upwardBoth lines cross 0 downwardBoth lines return to the other side of 0, or the price closes beyond the extreme of the signal bar
Divergence of the RVI and pricePrice makes a lower low, the RVI makes a higher lowPrice makes a higher high, the RVI makes a lower highThe price closes beyond the second low (buy) or high (sell), or the RVI makes a new extreme with the price

Signal 1: crossing of the RVI and signal lines

This signal counts when the lines cross after the RVI has formed a local high or low far from zero, in the upper or lower part of its recent range. A crossing near zero, in the middle of the range, is weak.

Buy setup: after a local low well below 0, the fast RVI line (green in the charts) crosses the slow signal line (red) from below. Wait until the price confirms the turn, for example with a candle that closes above the high of the bar where the lines crossed. The protective Stop Loss goes below the last local low. The setup is cancelled if the price closes below that low, or if the RVI crosses back under the signal line before the entry triggers.

Sell setup: after a local high well above 0, the RVI line crosses the signal line from above. Enter after the price confirms the turn with a close below the low of the crossing bar, with the Stop Loss above the last local high. The setup is cancelled if the price closes above that high, or if the RVI crosses back above the signal line before the entry.

EUR/USD daily chart, December 2019 to March 2020: a Buy mark near the February 2020 low where the RVI crosses its signal line upward below zero, and a Sell mark after the early March high where the RVI crosses downward above zero
Crossings of the RVI and signal lines on EUR/USD, daily chart: a buy signal at the February 2020 low and a sell signal after the March 2020 high. Historical example. Past results do not guarantee future performance.

Signal 2: crossing of the zero line

The centre line of the RVI is 0. When both lines cross it from below, closes have moved above opens on balance, which is a buy signal; when both cross it from above, a sell signal. The signal comes later than a line crossing and gives more false entries in a sideways market, so use it in the direction of the trend on a higher timeframe and together with other tools: trendlines, support and resistance levels or Price Action patterns.

Buy setup: both lines close above 0 and the price is above its last swing low. The Stop Loss goes below the low of the bar where the crossing happened or below the last swing low. The setup is cancelled if both lines fall back below 0 or the price closes below that low. The sell setup is the mirror image.

XAU/USD 4-hour chart, 2 to 17 March 2020: a Buy mark where both RVI lines cross zero upward around 3 March and a Sell mark where they cross zero downward around 9 March, followed by a decline
Zero-line crossings of the RVI on XAU/USD, 4-hour chart, March 2020: a buy signal on the upward crossing and a sell signal on the downward crossing. Historical example. Past results do not guarantee future performance.

Signal 3: divergence of the RVI and price

A bullish divergence appears when the price makes a lower low while the RVI low, marked by the crossing of the two lines, is higher than the previous one. The sellers are pushing the price lower with less force at the close, and a turn upward may follow. Wait for the RVI to cross above its signal line and for the price to close above the last minor high, then buy with the Stop Loss slightly below the second low. The setup is cancelled if the price closes below the second low, or if the RVI drops to a new low together with the price.

XAG/USD daily chart, October 2019 to February 2020: price makes a lower low in December than in November along a falling blue line, while the RVI makes a higher low along a rising blue line, with a Buy mark in mid-December
Bullish divergence on XAG/USD, daily chart: the price low of December 2019 is lower than the November low, the RVI low is higher. Historical example. Past results do not guarantee future performance.

A bearish divergence appears when the price makes a higher high while the RVI high is lower than the previous one. The buyers are losing strength, and a turn downward may follow. Sell after the RVI crosses below its signal line and the price closes below the last minor low, with the Stop Loss above the second high. The setup is cancelled if the price closes above the second high, or if the RVI makes a new high together with the price.

XAU/USD daily chart, December 2018 to April 2019: price makes a higher high in February 2019 than in late January along a rising blue line, while the RVI makes a lower high along a falling blue line, with a Sell mark after the February high
Bearish divergence on XAU/USD, daily chart: the February 2019 high is above the late January high, the RVI high is lower. Historical example. Past results do not guarantee future performance.

A divergence can last for several swings before the price turns, which is why the entry waits for the line crossing and a close beyond a minor swing point. More ways to read a turn are in the guide to trend reversal detection.

Trade on the Go With RoboForex MobileTrader
Follow your charts and open or close a trade from your phone, on Android and iOS.

Relative Vigor Index vs RSI and Stochastic

The RVI, the RSI and the Stochastic are all oscillators, but they measure different things, so they can disagree on the same chart.

Only the RVI has no fixed scale: the RSI and the Stochastic run from 0 to 100
IndicatorWhat it comparesScaleReference levels
Relative Vigor Index (Ehlers, 2002)Close minus open against high minus low, smoothed and summed over the periodNot fixed, centred on 00 line; highs and lows judged against the indicator's own history
Relative Strength Index (Wilder)Average price rises against average price falls over the period0 to 100Usually tops above 70 and bottoms below 30
Stochastic OscillatorThe close against the highest high and lowest low of the period0 to 10080 and 20

The practical difference: the RSI and the Stochastic look at closes against earlier prices, while the RVI looks inside each bar at the close against its own open. A market can make new highs, keeping the RSI high, while its candles close weaker and weaker against their opens; the RVI shows that loss of vigor first. Because the RVI has no fixed bounds, it has no universal overbought and oversold levels. Traders often pair it with an indicator that has them, such as the Stochastic, or with a trend tool such as the MACD.

Limitations of the RVI

  • In a sideways market the two lines cross often, and most of these crossings give no follow-through. The RVI works better when the price is trending.
  • The smoothing makes the lines lag: a crossing confirms a turn that has already started, and on a fast reversal the entry comes late.
  • Without fixed bounds, "high" and "low" readings are relative. A level that marked a top on one instrument or timeframe means nothing on another.
  • On instruments with gaps between sessions, such as stocks, the open of a bar can sit far from the previous close, which changes the close minus open values that the RVI is built on.

For these reasons the RVI is one input in a decision. A trend filter, a level on the price chart and a fixed Stop Loss turn its signals into a set of rules you can test.

Start Trading Now
Open an account and add the Relative Vigor Index to your charts in MetaTrader 4 or MetaTrader 5.

Bottom Line

The Relative Vigor Index shows whether closes are beating opens and by how much against the range. Its signals are the crossing of the two lines far from zero, the crossing of the zero line and divergences with the price. The more the lines move away from zero, the stronger the current push, and the more a crossing back at that extreme is worth watching for a correction or a reversal.

Before trading the RVI, add it to a chart with the default period of 10, mark the last 20 crossings on your instrument and check how many were followed by a move larger than the distance to the stop. Combine its signals with other indicators, levels or Price Action patterns, and test the rules on a demo account first.

FAQ

What is the RVI indicator?
The Relative Vigor Index (RVI) is an oscillator by John Ehlers, published in January 2002. It compares the close with the open of each bar, divided by the bar's high to low range, smooths the result and plots it with a signal line. Values above 0 mean closes are beating opens; values below 0 mean the opposite.
What is the best setting for the relative vigor index?
The default period is 10, the value in Ehlers' original code and in MetaTrader. A shorter period gives faster lines and more false crossings, a longer one gives fewer and later signals. Test any change on the history of your instrument and timeframe before using it.
How do you add the RVI in MT4?
The RVI is built into MetaTrader 4 and MetaTrader 5. Choose Insert, Indicators, Oscillators, Relative Vigor Index in the main menu, or drag it from the Navigator window onto the chart, then set the period and the line colours and click OK.
What is the difference between the relative vigor index and the RSI?
The RSI compares average price rises with average price falls and moves between 0 and 100, with 70 and 30 as the usual reference levels. The RVI compares the close of each bar with its own open, scaled by the range, and has no fixed bounds: it moves around 0. The RVI can show weakening candles while the RSI still reads high.
Is the Relative Vigor Index the same as the Relative Volatility Index?
No. Both are abbreviated RVI. The Relative Volatility Index, introduced by Donald Dorsey, measures the direction of volatility through the standard deviation of prices on a 0 to 100 scale. The Relative Vigor Index measures where prices close against their open.
Any information provided in articles on this website is based solely on the personal opinions of the authors. These articles should not be construed as trading recommendations or a call to action. The authors and RoboForex accept no responsibility for the results of any trades made on the basis of these recommendations and reviews. Past performance is not indicative of future results. Trading stocks and CFDs involves a high risk of capital loss.