Back to Guides
Guide

Relative Vigor Index Formula, and Why It Has No Levels

The Relative Vigor Index formula with its 1-2-2-1 weighting, the period 10 gap, and why the RVI sits between -1 and +1 and has no overbought level.

The Relative Vigor Index divides a weighted sum of (close minus open) by a weighted sum of (high minus low) over four bars, using 1-2-2-1 weights, then plots a second line that is the same weighting applied to the RVI itself. Because a bar's open and close both sit inside that same bar's high and low, the result can never leave -1 to +1, which is why the RVI has no overbought or oversold level you can set.

The bound matters because the levels published for this indicator run from "none at all" to plus and minus 100, and the formula the complete sources print makes the larger of those impossible to reach.

What is the Relative Vigor Index?

It measures how much of each bar's range the body took up, and in which direction: where price closed against where it opened, divided by the bar's high-to-low range, then smoothed over four bars.

The reasoning behind it is that a strong move finishes near its extreme. Bybit's wiki puts it as measuring "the conviction behind a price move by comparing how far the closing price is from the opening price relative to the total high-to-low trading range". That page carries its own notice, "This article was generated by AI. Please verify important information independently", which is worth knowing before you lean on it.

John Ehlers built it. RoboForex dates it: "The RVI was presented to the trader community in 2002 by a famous developer of technical indicators and automatic trading strategies John Ehlers".

The name is a problem in itself. Bybit warns about it: "The Relative Vigor Index (RVI) is a momentum oscillator developed by John Ehlers. It should not be confused with the Relative Strength Index (RSI) or the Relative Volatility Index." Three different indicators, two of them sharing the abbreviation. Real Trading adds a fourth name for the same tool, RVGI, which is what some platforms label it.

What is the RVI formula?

Start with the simple version, which RoboForex prints as "RVI = (CLOSE - OPEN) / (HIGH - LOW)".

That bar-by-bar ratio alone would be far too jumpy to read, so the real calculation smooths the top and the bottom separately over four bars with 1-2-2-1 weights. Bybit describes the weighting: "The weighting pattern (1-2-2-1) applies more influence to the middle two periods and less to the edges."

RoboForex prints the two weighted sums in full, the numerator as "MovAverage = (CLOSE-OPEN) + 2 * (CLOSE-1 - OPEN-1) + 2 * (CLOSE-2 - OPEN-2) + (CLOSE-3 - OPEN-3)" and the same shape for the ranges, then combines them as "RVIaverage = SUM (MovAverage(1-4)) / SUM (RangeAverage(1-4))". Bybit divides each weighted sum by 6 first and then divides one by the other. Both land in the same place, a weighted sum of bodies over a weighted sum of ranges.

The second line is the signal line, and both complete sources agree on it. Bybit: "Signal Line = a 4-period symmetrical moving average of the RVI value itself". RoboForex prints the arithmetic: "RVIsignal = (RVIaverage + 2 * RVIaverage-1 + 2 * RVIaverage-2 + RVIaverage-3)/6".

Neither of the two complete formulas has volume anywhere in it. Two other pages put it in, and in different places: Blueberry Markets inside the index itself, as "RVI = (Close - Open) / (High - Low) * V" with "V: the volume of the current period", and TradingSim in the signal line instead, as "a 4-period volume weighted moving average". Both are departures from the formula the complete sources print, and the first one has a consequence for the levels question. Blueberry's own step list contradicts its own formula on top of that, instructing you to "Calculate the difference between the closing and opening prices for each period (R1 = C1-C2 and so on)", where C1 minus C2 is this close minus the previous close, a different measurement again.

Does ChartLabs have the Relative Vigor Index?

Yes, and it is worth knowing which of the RVIs you are picking. Open the chart's Indicators menu, go to the Standard list, and look under the Momentum & Oscillators heading for Relative Vigor Index. Once it is on the chart the legend reads RVGI, the abbreviation that keeps it apart from the other one. Dorsey's Relative Volatility Index is a separate entry in the same list under the Volatility heading, and that is the one whose legend reads RVI. They are two different indicators, so check the heading before you add one.

It plots the index and its signal line in their own pane below price, with no overbought or oversold levels drawn and no volume anywhere in it. Its one setting is Length, 10 by default, and in ours that number has a definite job: the 1-2-2-1 weighted body and the 1-2-2-1 weighted range are each summed over that many bars before one is divided by the other. The signal line is the same four-bar 1-2-2-1 weighting of the result and has no setting of its own.

How do you calculate the RVI? A worked example

Seven bars, with easy numbers, carried far enough that the signal line appears.

BarOpenHighLowCloseClose - OpenHigh - Low
11001069810448
210411010210848
310811410611248
411211811011648
511612211412048
612012411812226
712212611812428

RVI at bar 4, using bars 1 to 4 with the oldest weighted 1 and the newest weighted 1:

  • Numerator = (1 x 4 + 2 x 4 + 2 x 4 + 1 x 4) / 6 = 24 / 6 = 4
  • Denominator = (1 x 8 + 2 x 8 + 2 x 8 + 1 x 8) / 6 = 48 / 6 = 8
  • RVI = 4 / 8 = 0.500

Bar 5 repeats the same figures, so the RVI is 0.500 again. Then the bodies start shrinking:

  • Bar 6, bodies 4, 4, 4, 2 and ranges 8, 8, 8, 6: numerator 22 / 6 = 3.667, denominator 46 / 6 = 7.667, RVI = 0.478
  • Bar 7, bodies 4, 4, 2, 2 and ranges 8, 8, 6, 8: numerator 18 / 6 = 3.000, denominator 44 / 6 = 7.333, RVI = 0.409

Now the signal line at bar 7, which is the same 1-2-2-1 weighting applied to those four RVI values:

  • Signal = (1 x 0.500 + 2 x 0.500 + 2 x 0.478 + 1 x 0.409) / 6 = 2.865 / 6 = 0.478

At bar 7 the RVI reads 0.409 against a signal line of 0.478, so the faster line is now below the slower one. That is the bearish crossover the sources describe, and it happened while price was still making higher highs: bar 6 and bar 7 both printed a higher high than bar 5, while the closes stopped taking as much of the range as they had been. Bars 1 to 5 each closed with a body half the size of the range. Bar 6 managed a third of it and bar 7 a quarter.

Bybit's own worked example, a six-bar table on a fictional pair, ends at "Divide weighted numerator by weighted denominator: RVI = 3.00 / 6.17 = 0.486" and stops there, before any signal line exists.

Does the RVI have overbought and oversold levels?

No. There is no fixed level: the value is a ratio that cannot leave -1 to +1 by construction.

Every bar's open and close both sit inside that bar's own high and low, so the body (close minus open) is never bigger than the range (high minus low), in either direction. The numerator is a weighted sum of bodies and the denominator the same weighted sum of ranges, with the same positive weights, so the numerator can never exceed the denominator. The ratio is therefore always between -1 and +1. The worked example lands at 0.500 and then 0.409, and Bybit's at 0.486, all comfortably inside.

Bybit is the page that gets it right, twice: "Unlike the RSI, the Relative Vigor Index does not use fixed overbought or oversold thresholds. RSI traders watch the 70 and 30 levels; those levels do not exist on the RVI", and in its limitations, "No overbought or oversold levels: Unlike the RSI, the RVI cannot be used for threshold-based entries."

Other pages publish levels anyway. Blueberry Markets gives plus and minus 100, hedged: "The upper extreme value is around +100 and indicates maximum bullish momentum". Even that hedged reading cannot happen on the formula those pages print, because the ratio is bounded by 1. The only route to a reading of 100 is Blueberry's own version of the formula with volume multiplied in, which removes the bound entirely: multiply a ratio by a volume figure and the output is in volume units and can be any size. The page does not say that is what it means, and it does not say any platform multiplies the output by 100 either, so a reading of plus 100 is not something a chart will show.

Forexopher gives plus and minus 0.8, under its own "Example:" heading rather than as a stated threshold. That one is at least reachable, since 0.8 is inside the bound, but nothing is cited behind it. RoboForex gives no number at all. Its condition is relative, "when the RVI lines rise above 0 and reach their highs, the market is overbought", which fits its own sentence four lines earlier: "The indicator values are not normalized, the central axis is 0." A reading at its own highs is not a level you can write into a rule before the test starts.

What are the best RVI settings?

Every source that names a period names 10. The signal line is 4.

Bybit: "The default RVI period is 10 on most charting platforms, including TradingView and MetaTrader 4/5", and "The signal line period defaults to 4 on most platforms and is typically left unchanged." RoboForex traces the number to the author: "The default setting recommended by the author is 10." Real Trading and Blueberry Markets agree on 10, Blueberry adding 14 as an alternative. Forexopher applies it as a smoothing step instead: "To smoothen the data and reduce noise, a 10-period Simple Moving Average (SMA) is typically applied to the RVI calculation."

There is a gap in all of that. The pages that print the complete formula run it over four bars with 1-2-2-1 weights, and there is no 10 anywhere in that arithmetic. Bybit prints a four-bar weighting and then gives the default period as 10 on the same page, without reconciling them. RoboForex does the same. The pages that do put a 10 somewhere treat it as the length of a moving average applied either to the price differences or to the RVI output, which is a third thing again.

So when you change "period" from 10 to 14, you are changing something the published formula does not show, and no source tells you which part of the calculation the number feeds. Record the number you used, treat a change as a new test rather than a refinement, and re-run the same symbol and the same dates after each change.

How do you read the RVI: what are the signals?

Three signals: a cross of the signal line, a cross of zero, and divergence against price.

The RVI crossing its signal line. Bybit: the RVI crossing above its signal line indicates increasing bullish momentum, crossing below indicates increasing bearish momentum, and it adds the caution that "Crossover signals are more reliable in trending markets." RoboForex gives the same cross with its own stop placement, behind the local high for a sell and behind the last low for a buy, and asks for the reversal to be confirmed on the price chart first.

Both lines crossing zero. RoboForex: "Crossing it by both lines from below signals to buy, while crossing it from above signals to sell." The same page then rates it: "This signal is not very reliable", and says to use it alongside other tools.

Divergence against price. Most of the sources define it the same way: price makes a lower low while the RVI makes a higher low is bullish, price makes a higher high while the RVI makes a lower high is bearish. Real Trading describes divergence without pairing the lows and highs, so its version cannot be marked on a chart the same way.

Two direction warnings, because the pages do not agree. Blueberry's moving-average strategy reads a downward cross as bullish, with "along with the RVI line crossing the centerline from above, it indicates a confirmed bullish trend", which is the opposite of RoboForex's rule above. Blueberry's RSI strategy goes further and crosses the RVI line with the RSI line: "When the RVI line crosses the RSI line from above, it indicates a stronger bullish trend and signals traders to place a long order". Those two lines cannot cross meaningfully, because the RSI runs from 0 to 100 and the RVI sits between -1 and +1.

How is the RVI different from the RSI?

The RSI compares average gains to average losses and reports on a 0 to 100 scale with standard 70 and 30 levels. The RVI compares each bar's body to its range and reports around zero with no levels at all.

The input differs too. The RSI uses closing prices only. The RVI uses all four values of every bar, open, high, low and close, which is why it can say something about how a bar finished rather than just where it finished.

Is the RVI the same as the Stochastic Oscillator?

No, though the family resemblance is real and two sources raise it. TradingSim calls the RVI a "first cousin" of the Stochastic Oscillator because both use all four prices of each candle. RoboForex says "The calculation of the RVI is somewhat similar to the calculation of the Stochastic."

Bybit draws the line precisely: "The Stochastic Oscillator compares where the close falls within the period's price range, conceptually similar to RVI, but the Stochastic measures close-to-range position directly, while the RVI compares the candle body (close minus open) to that range."

So the Stochastic asks where the close sits inside the lookback range. The RVI asks how much of each bar's own range the body covered, and in which direction. The open matters to one of them and not to the other.

Does the RVI work on forex, where there is no single daily open?

The open is half the formula, and one page raises the problem. Real Trading: "Finding the open and closing prices for currencies is usually relatively difficult because the forex market is usually open 24 hours for five days. Getting the data for stocks is easy because there are actual opening and closing prices every day."

On a daily chart the open is wherever your feed starts the day, which is a server-time convention rather than a market event. Change the convention and you change every bar's body, which changes the numerator of every RVI value, while the high and low of the day barely move. The signals you read on one feed's daily bars are not guaranteed to be the signals on another's.

It matters less the lower you go. On an hourly or 15-minute chart the bar boundaries are the same everywhere, so the open is unambiguous. If you want to test this indicator on daily forex bars, note which feed you used and do not mix two of them inside one test.

How do you turn an RVI signal into a rule you can test?

Name the two lines, the direction, the bar you read it on, and the confirmation. "The RVI closes above its signal line on a closed 1-hour candle, with both lines above zero" is testable. "The RVI is high" is not, and on this indicator it is empty: with no levels, high has no definition, and the numbers published for it do not agree, one of them a reading the formula cannot produce.

If your rule uses divergence, write the definition down first: how many bars back a swing counts, how far apart the two lows may be, and which bar the entry happens on. Divergence is the signal that rewards hindsight, so the definition has to exist before the first bar of the test.

How do you backtest the RVI, step by step?

  1. One symbol, one timeframe, one date range.
  2. One written rule, fixed before the first bar, with the divergence definition included.
  3. The same period and signal length throughout. A change makes a new test on the same dates.
  4. Every trade logged, winners and losers, including the ones you decided not to take.
  5. Costs applied, since a crossover rule on a short timeframe produces a lot of trades.
  6. One data feed, noted in the log, because a daily open is a feed convention.

Log the usual fields per trade, date and time, symbol, timeframe, direction, entry, stop, exit and the result in R, plus three that belong to this indicator: which signal fired, whether a line cross, a zero cross or a divergence; the RVI value at entry, which is comparable between instruments because the reading is bounded, unlike a volume-scaled oscillator; and the period and signal length in use.

Why this one has to be run bar by bar

There is no automatic backtest, so the indicator draws the lines and you place every trade yourself. Deciding on each bar is the part that suits testing by hand, because a cross is only a cross once the bar has closed.

You step through real historical candles one at a time, place the trades yourself from a market, limit or stop order with its stop loss and target attached, and work down to one-minute bars. Each line takes its own colour and style, which matters for a two-line indicator where the whole signal is which line is on top, and per-symbol commission and slippage feed every trade's P&L, balances and analytics.

Does the RVI work?

No published source can tell you. None of the pages that explain it reports a tested result: no sample, no trade count, no period.

TradingSim's page is the closest thing to evidence: headlined as five strategies, it walks through four of them and every trade it shows is a gain, with no losing trade, no period and no count anywhere. That illustrates what a signal looks like rather than measuring whether it pays.

The sources cannot even agree on what kind of indicator it is. TradingSim concludes "RVI is a leading indicator." Bybit says "The RVI is primarily a lagging indicator because its calculation smooths historical price data over a lookback period", and allows it only a leading edge through divergence. The arithmetic favours Bybit: a weighted average of the last four bars cannot report anything before those bars exist.

So the answer only exists for your own symbol, your own rule and your own sample. Our forex backtesting guide covers how many trades that takes.

Where does the RVI fall apart?

In a range, first and worst. Bybit lists "Poor performance in ranging markets" and explains it in terms of the formula: in sideways conditions "the close-to-open ratio lacks directional bias, and crossover signals appear frequently but resolve in both directions". Real Trading says the same in blunter words: "the indicator does not work well in ranging markets. It also provides false signals regularly".

Second, it lags. Four bars of weighting on the RVI, then four more on the signal line, means the cross you are waiting for describes bars that have already closed.

Third, the two lines sit close together by design, so the line is busy and crosses often. That is the same property that produces its signals.

And fourth, anyone trading the RVI as an overbought gauge is using a number the sources cannot agree on, including one that the shared formula makes unreachable. If you want threshold entries, this is the wrong tool, which is exactly what Bybit says in its own limitations list.

Next step

Write the rule down, including what counts as a divergence, then pick one symbol and one date range and step through it candle by candle before any money is on it. Start a 7-day free trial on ChartLabs, then one plan at $20 a month or $200 a year, no credit card required to start.

Related reading: forex backtesting, how to backtest a strategy step by step, and manual against automated testing.

Related Topics

relative-vigor-indexrelative-vigor-index-formularvi-indicatortrading-indicatorsmanual-backtesting