Relative Volatility Index Adaptive Moving Average (RVI-AMA) – Test Results

The Adaptive Moving Average (AMA) modifies the amount of smoothing it applies to data in an attempt to adjust to the changing needs of a dynamic market.  It makes these adjustments based on the readings from a Volatility Index (VI).  Any measure of volatility or trend strength can be used, however in this article we will focus on how the AMA performs using the Relative Volatility Index (RVI).

The RVI-AMA requires five user selected inputs: A Standard Deviation period, a Wilder’s Smoothing period, a High – Low smoothing period range for the AMA and a power that Alpha is raised to.  With five variables there are thousands of possible combinations so we had to make some educated assumptions based on our previous tests to narrow the choices down.

In our tests on the Relative Volatility Index in a RVI-VMA we revealed that a Wilder’s Smoothing (WS) period of 14 worked the best and there is no reason to suggest that this will not also be true for a RVI-AMA so:

WS = 14

We selected the SD lengths that corresponded with the approximate number of trading days in standard calendar periods: 10 days = two weeks, 20 days = 1 month, 40 days = 2 months, 80 days = ⅓ year, 126 days = ½ year and there are 252 trading days in an average year:

SD = 10, 20, 40, 80, 126, 252

In previous tests we have seen that a moving average range produces the best results when it can move to as little as 4 periods or less, therefore we will test:

AMA Actual Fast Moving Average (FN) = 1, 4, 10

With the slow moving average we have consistently seen 300 produce the best results while changing this setting hasn’t usually made a big impact.  However we still ran tests through several settings:

AMA Actual Slow Moving Average (SN) = 100, 150, 200, 250, 300

For the Alpha Power we also tried several variables:

Alpha Power (P) = 0.5, 0.75, 1, 1.5, 2, 2.5

We tested trades going Long, using Daily data, taking End Of Day (EOD) signals~ analyzing several combinations of the above settings.

Each time the Alpha Power was adjusted the SC and FC had to be modified to account for the change but the actual FN and SN stayed the same.

For instance a SC – FC range of 1 – 24 with alpha ^ 2 has an actual FN – SN range of about 1 – 300 due to the effect of squaring alpha.  Here is a table that shows the SC – FC ranges used so that the FN – SN ranges stayed constant regardless of ‘P’:

SC and FC values used to keep FN and SN constant as P was changed.

If that doesn’t make a lot of sense then please read our explanation of the Adaptive Moving Average.  A total of 321 different averages were tested and each one was run through 300 years of data across 16 different global indexes (details here).

Download A FREE Spreadsheet With Raw Data For

All 321 RVI-AMA Test Results


Relative Volatility Index Adaptive Moving Average – Test Array

Relative Volatility Index AMA - Ann Return as Alpha Power is Changed

Above we have charted the annualized returns achieved from each RVI with Alpha raised to different powers along the X axis.  The chart on the left shows the results when the FN = 1 and SN = 300 while on the right FN = 4 and SN = 300.  Clearly keeping the FN at 1 is important to achieve the best returns.  There was no SD period that really stood out so we shall go with 126 because of how it has performed in past tests.  Finally, when FN = 1, raising Alpha to the power of 0.5 clearly yielded the best results.

 

Best Relative Volatility Index Adaptive Moving Average

126 Day RVI-AMA, EOD 1, 45300 ^ 0.5 (WS 14) - Performance

Included on the above chart is the performance of the 126 Day FRAMA, EOD 4, 300 Long because so far this has been the best performing Moving Average.  The 126 Day RVI-AMA, EOD 1, 45300 Long ^ 0.5 (WS 14) produced an extremely fast moving average with a typical trade duration of just 4 days.  This makes it unpractical for a real world application.  Add to this the fact that it underperformed the best the FRAMA and this indicator is hardly worthy of further testing.  However lets take a quick look under the hood to see what makes it tick and the causes of its weaknesses:


126 Day RVI-AMA, EOD 1, 45300 ^ 0.5 (WS 14) – Smoothing Period Distribution

126 Day RVI-AMA, EOD 1, 45300 ^ 0.5 (WS 14) - Smoothing Distribution

Instantly you can see a big problem; there isn’t really any smoothing distribution at all from the 126 Day RVI-AMA, EOD 1, 45300 ^ 0.5 (WS 14), instead it is basically a 2 day EMA.  The far better performing FRAMA 0n the other hand has a wide spread of smoothing making on it much more adaptive to changing market conditions.

 

126 Day RVI-AMA 1, 45300 ^ 0.5 (WS 14) – Alpha Comparison

To get an idea of the readings that created these results we charted a section of the alpha for the 126 Day RVI-AMA 1, 45300 ^ 0.5 (WS 14) and compared it to the best performing FRAMA and the best RVI-VMA to see if we could learn what makes a good volatility index for use in an AMA:.

126 Day RVI-AMA, EOD 1, 45300 ^ 0.5 (WS 14) - Alpha Comparison

Higher alpha readings result in a faster average and instantly you can see the RVI-AMA has a very high Alpha compared to the best RVI-VMA and FRAMA.  Remember the RVI-AMA and the RVI-VMA both use the same volatility index but the different ways that the two modify Alpha result in a very different outcome.

 

Excel Spreadsheet

The RVI-AMA is not very useful but should you want to test it or another volatility index then we have build an excel spreadsheet for you to download free.  Simply use the flowing link and you will find it under Downloads – Technical Indicators: Adaptive Moving Average (AMA).

 

For more in this series see – Technical Indicator Fight for Supremacy


  • ~ An entry signal to go long for each average tested was generated with a close above that average and an exit signal was generated on each close below that moving average.  No interest was earned while in cash and no allowance has been made for transaction costs or slippage.  Trades were tested using End Of Day (EOD) signals on Daily data. Eg. Daily data with EOD signals would require the Daily price to close above a Daily Moving Average to open a long and to close below that Average to close the position.
  • We used the average annualized return of the 16 markets during the testing period.  The data used for these tests is included in the results spreadsheet and more details about our methodology can be found here.

252 Day ER-AMA, 9 – AMA Indicator Equivalent

Relative Volatility Index Variable MA (RVI-VMA) – Test Results

The Variable Moving Average (VMA) dynamically adjusts its own smoothing period to the changing market conditions based on a Volatility Index (VI).  While any VI can be used, in this article we will look at how the VMA performs using the Relative Volatility Index (RVI).

The RVI-VMA requires three user selected inputs: A Standard Deviation (SD) period, a Wilder’s Smoothing (WS) period and a VMA constant.  We tested trades going Long using Daily data taking End Of Day (EOD) signals~ analyzing all combinations of:

SD = 10, 20, 40, 80, 126, 252

WS = 9, 14, 19

VMA = 5, 10, 15, 20, 25, 30, 35, 40, 45, 50

The SD lengths were selected due to the fact that they correspond with the approximate number of trading days in standard calendar periods: 10 days = 2 weeks, 20 days = 1 month, 40 days = 2 months, 80 days = ⅓ year, 126 days = ½ year and there are 252 trading days in an average year.

The WS periods were selected because the standard setting for a RVI is 14 and it makes sense to test a few days either side of this in search of the best option.

The VMA periods were selected after preliminary tests showed that when combined with the different SD lengths they resulted in median smoothing periods between 3 and 173 days; a range that should capture the best results based on what we know from previous research into moving averages.

A total of 180 different averages were tested and each one was run through 300 years of data across 16 different global indexes (details here).

Download A FREE Spreadsheet With Raw Data For

All 180 RVI-VMA Long and Short Test Results

.

RVI Variable Moving Average EOD Returns, Long:

.RVI-VMA Annualized Return - Long, WS Period Comparison

.

As with our previous VMA tests, every single RVI-VMA using EOD signals outperformed the average buy and hold annualized return of 6.32%^ during the test period (before allowing for transaction costs and slippage).

The charts above are split into three sets according to their WS period.  Each set reveals very similar results but, low and behold the standard setting of 14 proved the best by a small margin.

To our surprise the Standard Deviation period didn’t really matter and despite testing a huge range from 10 days to 252 days, all the results were very similar.  So we decided to select 126 days as the best SD period becuase it has been the best Volatility Index setting in several previous VMA tests.

For the VMA constant, a period of 10 stood out as producing the best results across the board.  Therefore we want a RVI-VMA within a SD period of 126, a WS period of 14 and a VMA constant of 10:

.

Best EOD Relative Volatility Index Variable Moving Average:

.

126, 14 Day RVI-VMA, EOD 10, Long.

I have included on the above chart the performance of the 126 Day FRAMA, EOD 4, 300 Long becuase so far this has been the best performing Moving Average.  The 126, 14 Day RVI-VMA, EOD 10, Long can’t compare in terms of performance with the FRAMA and offers no outstanding attributes in any other areas.

.

126, 14 Day RVI-VMA, EOD 10 – Smoothing Period Distribution:

.

126 Day RVI-VMA, EOD 10 – Smoothing Period Distribution.

The RVI-VMA is very localized around its median smoothing period of 20.  Almost the entire distribution (96%) is covered with a 12 – 31 range which only represents 28% of the smoothing for the better performing FRAMA.

.

126, 14 Day RVI-VMA, 10 – Alpha Comparison

.

To get an idea of the readings that created these results we charted a section of the alpha for the 126, 14 Day RVI-VMA, 10 and compared it to the best performing FRAMA to see if there were any similarities that would reveal what makes a good volatility index:

.

126 Day ER-VMA, 1 – Alpha Comparison.

As you can see the Alpha for the 126, 14 Day RVI-VMA, 10 is very volatile but stays within a tight range.  The better performing 126 Day FRAMA 4, 300 on the other hand produces readings that are much more stable however they do move to extremes upon occasion resulting in a more ‘Variable’ Moving Average.

.

Conclusion

.

The RVI-VMA outperformed a buy and hold approach in our tests but is nowhere neat as effective as the FRAMA and therefore is not worthy of being used as a trading tool.

Want to have a play with this indicator anyway?  Get a free Excel spreadsheet at the flowing link under Downloads – Technical Indicators: Variable Moving Average (VMA).  It will automatically adjust to one of many different VIs that you can select including the Relative Volatility Index featured in this article.

.

For more in this series see – Technical Indicator Fight for Supremacy

.

  • ~ An entry signal to go long for each average tested was generated with a close above that average and an exit signal was generated on each close below that moving average. No interest was earned while in cash and no allowance has been made for transaction costs or slippage. Trades were tested using End Of Day (EOD) signals on Daily data. Eg. Daily data with EOD signals requires the Daily price to close above a Daily Moving Average to open a long and vice versa.
  • ^ This was the average annualized return of the 16 markets during the testing period. The data used for these tests is included in the results spreadsheet and more details about our methodology can be found here.

Relative Volatility Index (RVI)

The Relative Volatility Index was created by Donald Dorsey and first presented in the June 1993 issue of Technical Analysis of Stocks and Commodities – The Relative Volatility Index.  He noticed that most technical analysts look for confirmation from several indicators before initiating a trade in order to reduce the occurrence of false signals.  This is a logical approach however many indicators are simply variations on the same calculation.  Dorsey described this as “not unlike taking two wind direction readings rather than reading the wind direction and barometric pressure to predict tomorrow’s weather”.

Because most indicators measure price change, Dorsey developed the RVI as a confirming indicator that measures the direction of volatility.  It is almost identical to the Relative Strength Index (RSI) but uses the standard deviation of high and low prices.

“There is no reason to expect the RVI to perform any better or worse than the RSI as an indicator in its own right.  The RVI’s advantage is as a confirming indicator because it provides a level of diversification missing in the RSI.”

How To Calculate the Relative Volatility Index

RVI = 100 * U / (U + D)

Where:

U = Wilder’s Smoothing,N of USD

D = Wilder’s Smoothing,N of DSD

USD = If close > close(1) then SD,S else 0

DSD = If close < close(1) then SD,S else 0

S = User selected period for the Standard Deviation of the close (Dorsey suggested 10).

N = User selected smoothing period (Dorsey suggested 14)

(Instead of using Wilder’s Smoothing we use an EMA with a period of (N*2)-1 which produces the same result but is faster to calculate.)

Here is an example of a RVI with an “S” and “N” of 3:

RVI Formula

Relative Volatility Index Excel File

I have put together an Excel Spreadsheet containing the Relative Volatility Index and made it available for FREE download.  It contains a ‘basic’ version displaying the example above and a ‘fancy’ one that will automatically adjust to the length you specify.  Find it at the following link near the bottom of the page under Downloads – Technical Indicators: Relative Volatility Index (RVI)


Relative Volatility Index Example

RVI Example

How to use the Relative Volatility Index

The Relative Volatility Index measures the direction and magnitude of volatility.  High readings indicate the market is moving up strongly, low readings indicate a strong bearish move and readings round 50 indicate a lack of direction.  In this way the RVI can be used to measure the strength or lack of a trend.  However like the RSI, extreme readings often warn of a reversal.

Here are the buy and sell rules that Dorsey developed for the RVI.  Keep in mind that he intended this as a confirming indicator not a stand alone system:

  • Buy only  if RVI > 50
  • Sell short only if RVI < 50
  • If you miss the first RVI buy signal buy when RVI > 60
  • If you miss the first RVI Sell signal sell when RVI < 40
  • Close a long position when the RVI falls below 40
  • Close a short position when the RVI rises above 60

In the September 1995 issue of Technical Analysis of Stocks and Commodities, Dorsey wrote a follow up article – Refining the Relative Volatility Index.  Here he presented the idea of using the average of two RVIs; one of high prices and one of low prices and then smoothing the result with a 20 day Linear Regression Indicator.  He called the new version “Inertia”.

“A trend is simply the outward result of inertia.  Once a market starts to move, it takes significantly more energy for it to change direction than for it to continue along the same path.”

 

In Physics Inertia is described as the amount of resistance that an object requires for a change in velocity.  To get a reading of Inertia requires a measure of mass and direction.  In the stock market there are many different ways (each of varying effectiveness) to measure direction but what about mass?

Because volatility reveals the markets propensity to make various sized movements regardless of direction, Dorsey saw it as a possible measure for mass.  If his theory is correct then the RVI should be a particularly useful trend indicator.

His modified version of the Relative Volatility Index or “Inertia” can be used as a long term trend indicator where readings above 50 indicate positive Inertia and readings below 50 indicate negative Inertia or a bearish trend.


Test Results

As part of the ‘Technical Indicator Fight for Supremacy‘ We have tested/will test the Relative Volatility Index as a component in several technical indicators:

We will also be testing its stand alone buy and sell signals and if they are good then we see how it performs as a confirming indicator.