Relative Volatility Index Formula, and What It Measures
The Relative Volatility Index formula and a worked example, which of the three RVIs this is, and why it cannot tell you how much volatility there is.
The Relative Volatility Index (RVI) is the RSI's arithmetic with a standard deviation in place of the price change, and it tells you which side of the market the movement came from, not how much movement there is.
The formula settles that, and the worked example checks it: multiply every price move in the series by ten and the RVI prints the same number to the last decimal. The standard deviation sits in the numerator and the denominator, so any factor applied to the whole series cancels. A number that does not move when volatility is multiplied by ten is not measuring volatility.
What is the Relative Volatility Index?
A momentum-style oscillator built the way the RSI is built, except that the quantity being compared up against down is the standard deviation of price rather than the size of the price change itself. It runs from 0 to 100.
Donald Dorsey is credited with it. b2broker gives a year, saying it was "developed by Donald Dorsey in 1993". That is one source for the date, so treat the year as b2broker's claim rather than as settled fact.
Dorsey's own stated intent survives in two places. TrendSpider writes that he "believed that a single technical indicator could not provide a comprehensive picture of market movements". TradingView puts it as a property: the RVI is a "confirming indicator" and "provides information and data that the RSI is otherwise lacking".
Which RVI is this?
There are three different indicators abbreviated RVI, and this is Dorsey's Relative Volatility Index.
- Relative Vigor Index: a different indicator entirely, built from (Close minus Open) divided by (High minus Low), smoothed.
- Relative Volatility Index: Dorsey's, the subject here.
- Relative Volume: a third thing again, comparing current volume against a typical level.
The vendors do not make this easier. On TradingView's own built-in indicator index, the previous and next links on the Relative Volatility Index page point at Relative Vigor Index and Relative Volume at Time.
MetaTrader is the sharper trap. On both MQL4's and MQL5's indicator documentation, the function named iRVI is documented as "Relative Vigor Index". If you reach for RVI on MetaTrader expecting Dorsey's indicator, you will get a different one.
What is the Relative Volatility Index formula?
Devexperts publishes the version with the step that decides whether your numbers match anyone else's: the calculation runs on highs and lows separately, and the RVI is the average of the two results.
RVI = (RVIorig of highs + RVIorig of lows) / 2
RVIorig = 100 * (14-days EMA of U) / (14-days EMA of SD)
U = SD, if current price is above the price of previous period
U = 0, if the current price is below the price of previous period
with SD the standard deviation over a lookback window. So: measure how spread out prices have been, credit that spread to the up column on bars that closed higher, and express the up column as a share of the total.
Algomatictrading prints what looks like a different formula:
RVI = 100 * EMA(upward_volatility, N) / (EMA(upward_volatility, N) + EMA(downward_volatility, N))
These are the same formula whenever no bar repeats the previous price. On such a series every bar is either up or down, so the up and down columns add up to the standard deviation on every bar, and devexperts' divisor and algomatictrading's sum are the same quantity.
They come apart on unchanged prices. Devexperts defines the up column for a rise and zero for a fall, and says nothing about a bar that closes level. On such a bar neither column gets anything, but the standard deviation in devexperts' divisor still counts it, so the two arrangements drift apart by exactly the weight those level bars carry. On a market where prices repeat often, two platforms using the two arrangements will not draw the same line.
The sources do not say whether the standard deviation is the population or the sample version, and it turns out not to matter much. On a full window the sample version is the population version multiplied by a constant, and that constant cancels in a ratio, so both give identical output. The only place they differ is at the very start of a series, while the window is still filling and the constant is not yet the same on every bar.
Which of the three does ChartLabs have?
All three, as three separate entries, and the menu headings are what tell them apart. Open the chart's Indicators menu and go to the Standard list. Dorsey's Relative Volatility Index sits under the Volatility heading and its legend reads RVI. Relative Vigor Index sits under Momentum & Oscillators, with the legend RVGI. Relative Volume sits under Volume. Pick by the heading and the full name rather than by the abbreviation.
The Relative Volatility Index opens in its own pane below price, on a scale pinned to 0 and 100, with lines drawn at 80, 50 and 20. It follows TradingView's built-in: a 10-bar standard deviation, which is the Length, split by direction and then smoothed with a 14-bar EMA, which is the Smoothing Length. It runs on one price series rather than a separate pass on highs and lows, the close by default, with Source as a setting. A bar that closes level counts as down, which means the up and down columns always add up to the standard deviation and the two arrangements above draw the same line.
How do you calculate the Relative Volatility Index? A worked example
A short example with whole-number bars, a 4-bar standard deviation and 3-bar smoothing. These are made-up numbers, not an instrument.
Highs: 102, 104, 103, 107, 109, 108, 111. Lows: 98, 99, 97, 101, 104, 102, 106.
Running the highs through it:
| Bar | High | Direction | 4-bar standard deviation | U |
|---|---|---|---|---|
| 1 | 102 | - | 0.0000 | 0.0000 |
| 2 | 104 | up | 1.0000 | 1.0000 |
| 3 | 103 | down | 0.8165 | 0.0000 |
| 4 | 107 | up | 1.8708 | 1.8708 |
| 5 | 109 | up | 2.3848 | 2.3848 |
| 6 | 108 | down | 2.2776 | 0.0000 |
| 7 | 111 | up | 1.4790 | 1.4790 |
On bar 7 the 3-bar EMA of U is 1.1702 and the 3-bar EMA of the standard deviation is 1.7651, so the highs give 100 x 1.1702 / 1.7651 = 66.30. The same work on the lows gives an EMA of U of 1.3836 against an EMA of the standard deviation of 2.0465, which is 67.61. The RVI is the average of the two: (66.30 + 67.61) / 2 = 66.95.
The standard deviations on bars 4 and 5 are the largest in the series and both landed in the up column, which is why the number sits well above 50. Nothing in that calculation records that they were large.
Now take the same series and make every move ten times bigger: highs of 102, 122, 112, 152, 172, 162, 192 and lows of 98, 108, 88, 128, 158, 138, 178. That is ten times the volatility. Every standard deviation in the table is multiplied by ten, every U with it, and both EMAs with those, so the ratio is unchanged. The highs still give 66.30, the lows still give 67.61, and the RVI is still 66.95.
What does the Relative Volatility Index actually tell you?
It tells you which direction the recent movement came from. It cannot tell you how much movement there is, and the scaling test is the proof.
Two pages tell readers otherwise, on the formula they themselves print. Algomatictrading says "RVI above 50 indicates increasing volatility, while below 50 indicates decreasing volatility", and repeats it. B2broker says "Higher values indicate greater fluctuations, while lower values reflect a more stable market". B2broker also contradicts itself twice over: its own key takeaways say the indicator "measures the direction of price volatility", and further down it says that "when the value is below 50, it points to decreasing prices and higher volatility", which makes below-50 both calmer and more volatile on one page.
The indicator reports skew. An RVI above 50 says more of the recent spread landed on up bars than on down bars. It says nothing at all about how wide that spread was.
What are the Relative Volatility Index levels, 50 or 80 and 20?
The sources disagree, and only one of the two answers has arithmetic behind it.
| Source | Levels it names | Period it names |
|---|---|---|
| Devexperts | 0 to 100 scale, 50 as the dividing line | 9, 10 and 14 all appear on the one page |
| TradingView | 50, plus overbought and oversold | 10 by default |
| TrendSpider | None stated | None stated anywhere |
| FXOpen | 50, with 80 and 20 "normally" | "usually 10" |
| B2broker | 50 | "typically 14" |
| Realtrading | 20 and 80 | Not stated |
| Algomatictrading | 50 | 14 |
On the RSI-form formula, 50 is a real dividing line: it is the point where the up column and the down column are equal. The 80 and 20 are borrowed from the RSI, and none of these pages derives them from its own scale.
There is a trap for anyone following fxopen or b2broker. Both print the formula as a plain ratio: "RVI = (Standard Deviation of Up Periods / Standard Deviation of Down Periods) * 100". That is not on a 0 to 100 scale at all. Equal up and down volatility gives 100, not 50, and there is no upper bound: twice as much up volatility as down gives 200, and five times gives 500. The same ratio divides by zero if a window happens to contain no down bars.
Which means their own levels read backwards. On that formula, 80 describes up-volatility running at 0.80 times down-volatility, and 20 describes 0.20 times. Both are readings where the movement is skewed downward, and one of them is labelled overbought.
B2broker's step list prints that same ratio and then adds "to express the result as a percentage between 0 and 100", which that arithmetic does not do.
What period should you use for the Relative Volatility Index?
There is no agreed default. TradingView ships 10, b2broker and algomatictrading both say 14, devexperts prints 9, 10 and 14 on the same page, and TrendSpider names no period at all.
Devexperts' three numbers are not alternatives, they are three parts of one page that do not line up: the introduction says "RVI uses 9-period standard deviation", the key under the formula says "SD – 10-days' standard deviation", and the formula itself says "14-days EMA". That page also labels the level inputs as prices, on an indicator it scales from 0 to 100: its Inputs table describes Overbought as the price to fix that level at.
A setting you have not tested on your own data is a preference, not a default. Pick one, write it down, and keep it fixed for the whole test.
What is the difference between the Relative Volatility Index and the RSI?
One substitution. The RSI compares the size of up moves against the size of down moves. The RVI compares the standard deviation on up bars against the standard deviation on down bars. Everything downstream is the same arithmetic.
TradingView puts it in one sentence: "The RVI is calculated much like the RSI, although it uses high and low price standard deviation instead of the RSI's method of absolute change in price." That sentence is also the whole of that page's section headed "Calculations", which is worth knowing if you went there looking for a formula.
Does the Relative Volatility Index work on forex?
Yes, in the sense that nothing is missing.
Unlike the volume-based indicators, the RVI needs only price: highs, lows and the direction from one bar to the next. A currency pair supplies all of those, so there is no absent input and no proxy standing in for one.
What does still differ is the bars themselves. Two brokers can disagree about a bar's high and low, and about where the trading day starts and ends, and the standard deviation is computed from exactly those numbers. An RVI reading is therefore tied to the feed it was computed on. That is a reason to run your test on one consistent set of data rather than comparing a reading from one chart against a reading from another.
ChartLabs charts the 1-minute candles we build from Dukascopy data, tick-level where it is available and cleaned to remove anomalies, and the timeframes above them, so a test runs on one consistent set of bars from start to finish.
Is the Relative Volatility Index built into MT4, MT5 or ChartLabs?
Not on MT4 or MT5. ChartLabs has it built in.
On MetaTrader, neither MQL4's nor MQL5's indicator documentation contains a Relative Volatility Index, and the iRVI on both is the Relative Vigor Index. Realtrading says the same thing in its own words: "The indicator is not found as a default in many platforms like the MT4. It can however be downloaded and installed in these platforms."
On our charts the indicator draws the line and nothing more, so there is no automatic backtest of a rule built on it.
How do you write an RVI rule you can test?
Pick one line, not both. Either you are testing the 50 cross or you are testing the 80 and 20 levels. They are different rules and they fire at different times.
Dorsey's intent, as it is reported, and every page that repeats it describe the RVI as a confirming indicator. A confirming indicator has nothing to confirm on its own. So a testable rule has to name the primary signal first, and the RVI condition second: what are you entering on, and what does the RVI have to be doing for you to take it?
Write down before the first bar:
- the primary signal, in full
- the RVI condition, the period, and which arrangement of the formula your platform uses
- which bar the condition is read on
- what cancels the setup
- the stop and the target as rules
Some of these pages state trade instructions directly. TradingView says that above 50 "a potential buy signal is confirmed". FXOpen says "traders might consider buying when the indicator crosses above 50 from the oversold region". Realtrading says "you should buy whenever the price of an asset moves to the oversold level", which also confuses the indicator's level with the price. Those are quoted as what those pages say, and none of them is a rule this guide adopts.
How do you backtest the Relative Volatility Index step by step?
One pair, one timeframe, one date range chosen before you look at it.
- Write the full rule down, primary signal first, before you see a chart.
- Fix the period and the arrangement, and leave them alone for the whole run.
- Step through the chart bar by bar so you only see what you would have seen at the time.
- Take every signal the rule gives.
- Put costs in. Our guide on backtesting accuracy covers what spread and commission do to a result.
- Log every trade as you go.
ChartLabs is built for this: replay real historical data bar by bar, place trades by hand with market, limit and stop orders carrying a stop loss and target, and every trade stores a snapshot of the chart and your drawings as they were at the moment of entry. The broader method is in our beginner's guide to backtesting a strategy, and the pair-specific parts are in the forex backtesting guide.
What should you record for each trade?
Date, direction, entry, stop, exit, result in R. Then:
- the primary signal that triggered the entry
- the RVI value at entry
- the period
- which arrangement of the formula your platform uses
Two charts labelled RVI are not necessarily the same line, and a reading recorded without the arrangement cannot be compared with anything later.
Where does the Relative Volatility Index fall apart?
It is a ratio, so it is silent on the size of the moves. A quiet market skewed upward and a violent market skewed upward print the same number, and the chart gives you no hint which one you are in.
It is a confirming indicator, so on its own it has nothing to say. If your rule does not name a primary signal, you do not have a rule.
The published settings and levels do not agree, and two widely-read pages print a formula whose scale does not match the levels on the same page.
And the levels themselves come with no measurement behind them, which leaves the measuring to you.
Test it on your own data
Whether the RVI helps your trading is not something these sources answer. ChartLabs gives you cleaned data from Dukascopy and bar-by-bar replay so you can find out by hand, with every trade logged and reviewable afterwards. One plan, $20 a month or $200 a year, everything included.
Start a free trial: 7 days, no credit card.
Related Topics
Related
Forex Backtesting: Test Your Strategy on Real Data
A practical guide to backtesting forex strategies: why session dynamics, spread variation, and pair-specific behavior change your results, what clean historical data actually means, and a five-step process for testing a strategy before you risk real capital.
Backtesting a Trading Strategy: A Beginner's Guide
What backtesting is, why it matters, and how to run one step by step: defining your rules, choosing clean historical data, stepping through the chart trade by trade, logging results, and reading the metrics that tell you whether your strategy has a real edge.
Backtesting Accuracy: How Slippage and Data Quality Matter
Why backtest results and live results drift apart, and what actually closes the gap: clean tick data, honest spread assumptions, and commission and slippage modelled directly on every trade you log.