Efficiency Ratio Adaptive Moving Average (ER-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 an Efficiency Ratio (ER).  This is the VI that Perry Kaufman used when he presented the AMA in his book Smarter Trading (1995).

The ER-AMA requires four user selected inputs: An Efficiency Ratio Period, a High – Low smoothing period range for the AMA and a power that Alpha is raised to.  We tested trades going Long, using Daily data, taking End Of Day (EOD) and End of Week (EOW) signals~ analyzing combinations of:

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

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

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

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

The ER 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 AMA ranges were selected because they should capture the best results based on what we know from previous research into moving averages.  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 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 1020 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 1020 ER-AMA Test Results


ER Adaptive Moving Average – Modifying Alpha by Raising to a Power

Kaufman had a theory that by squaring Alpha and thus causing the AMA to slow rapidly when the data lacked a strong trend he would achieve better results.  Here we will put this theory to the test and be looking at the affect of raising Alpha to different powers:

Efficiency Ratio – AMA, Alpha to the Power of  1 – Annualized Return

Efficiency Ratio - AMA ^ 1 - Annualized Return

With Alpha ^1 there is no modification to alpha at all and the results are impressive.  It can be said that in most cases as the FC increased the returns declined while changing the SC did not have much of an impact.  ER lengths of 80 and 126 yielded the best returns, this finding is similar to that of our previous tests on other ‘intelligent’ moving averages.

Efficiency Ratio – AMA to the Power of  2 – Annualized Return

Efficiency Ratio - AMA ^ 2 - Annualized Return

By raising Alpha to the power of 2 the returns drop almost across the board which immediately brings into question the need to include this function in the AMA formula and what would happen if we used a power below 1?  It would appear as though the ER length needs to be at least 40 to be of value in this context with the best results again coming from ER lengths of 80 and 126.  Clearly the FC is best when kept short so lets rework the charts to focus on what we now know works best:

ER-AMA Annualized Return with Alpha to Different Powers

Now we are only looking at ER periods of 80 and 126 with a FN of 1 and 4 and a SN of 300.  Each data point plots the change in returns with Alpha raised to different powers.  As you can see, the best returns resulted from an ER period of 126 with alpha raised to the power of 0.75.  As the Power was increased beyond this point, the returns decreased almost across the board.  Therefore when using an Efficiency Ratio in an Adaptive Moving average you definitely should not square alpha as suggested in the original formula..

 

Best EOD Efficiency Ratio Adaptive Moving Average

126 Day ER-AMA EOD 1, 1600 Long ^ 0.75

We 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 Day ER-AMA, EOD 1, 1600 Long ^ 0.75 actually outperformed the best FRAMA up until 2008 when the market had a big pull back.  As a result, over the full term of the test the FRAMA did perform slightly better.  Also the FRAMA has a few added benefits such as turning a profit on the bear ravaged Nikkei 225 and having a 40% longer average trade duration (14 vs 10 Days).

On the Short side, the the ER-AMA also underperformed over the full term but again outperformed until 2008.  This makes it very difficult to pick which moving average is the better of the two.  But because our personal preference leans towards a longer trade duration we will stick with the FRAMA as being the best moving average we have found so far.  (See the results on the short side)


126 Day ER-AMA, EOD 1, 1600 ^ 0.75 – Smoothing Period Distribution

126 Day ER-AMA, EOD 1, 1600 ^ 0.75 - Smoothing Period Distribution

Looking at the smoothing distribution you can see the 126 Day ER-AMA, EOD 1, 1600 ^ 0.75 is quite similar to that of the 126 Day FRAMA, EOD 4, 300 but the FRAMA spends more time as a slow average which explains the longer trade duration.


126 Day ER-AMA, 1, 1600 ^ 0.75 – Alpha Comparison

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

126 Day ER-AMA, 1, 1600, ^ 0.75 - Alpha Comparison

Because the ER-AMA and the ER-VMA both use the same volatility index, obviously their Alpha is identical apart from the slight modifications caused by the separate method of manipulating alpha.  Remember, the higher the Alpha the faster the resulting average so you can see why the best ER-AMA was faster moving than the best ER-VMA.  The Alpha patterns of the best FRAMA and best ER-AMA do have strong similarities but notice how the FRAMA is far less volatile.  It is always preferable to work with indicators that generate clean readings with low levels of noise assuming they still produce good results.


Best EOW Efficiency Ratio Adaptive Moving Average

There are times when an average with a longer trade duration better suits ones needs so we also ran the tests looking for the best average using EOW signals:

252 Day ER-AMA, EOW 10, 100 Long ^ 1

We have included on the above chart the performance of the 252 Day FRAMA, EOW 40, 250 Long becuase so far this has been the best performing EOW Moving Average.  The 252 Day ER-AMA, EOW 10, 100 Long ^1 underperforms by a fraction in most measures and while almost identical to the FRAMA it certainly is not superior.  Performance on the short side tells the same story.


252 Day ER-AMA, EOW 10, 100 ^ 1 – Smoothing Period Distribution

252 Day ER-AMA, EOW 10, 100 ^ 1 - Smoothing Period Distribution

Looking at the smoothing distribution for the 252 Day ER-AMA 10, 100 ^ 1 you can see that it is far faster than the 252 Day FRAMA 40, 250 and has a more limited range despite the median, upper and lower quartiles being almost identical.


252 Day ER-AMA 10, 100 ^ 1 – Alpha Comparison

252 Day ER-AMA 10, 100 ^ 1 - Alpha ComparisonWe have included on this chart the best EOW FRAMA and EOW ER-VMA.  The ER-VMA and ER-AMA use the same volatility index but the 252 Day ER-AMA 10, 100 ^1 results in a higher Alpha which explains the faster average.  The Alpha for the FRAMA and the AMA does stay in a similar zone but the FRAMA is far less volatile which is preferable.


Conclusion

In the standard formula for the AMA, alpha is squared to force the average to slow rapidly during times when there is a lack of trend.  When using an Efficiency Ratio as the Volatility Index (which is most commonly used VI in an AMA) we have clearly shown that squaring Alpha has a detrimental effect on returns.  We suggest instead not modifying alpha at all or raising it to the power of 0.75

Overall the ER produced some impressive returns during out tests as the VI in an AMA as it did when we used in a VMA.  The best performing EOD ER-AMA was a 126 Day ER-AMA, EOD 1, 1600 Long ^ 0.75 which did show periods of out performance over our current best performing MA the 126 Day FRAMA, EOD 4, 300 Long.  However due to a longer trade duration we still rate the FRAMA as superior.

When it comes to an EOW or ‘slower’ moving average the 252 Day ER-AMA, EOW 10, 100 ^ 1 is almost identical to our current best ‘slow’ MA the 252 Day FRAMA, EOW 40, 250 Long but certainly does not offer any benefits.

Both the Efficiency Ratio and the Adaptive Moving Average have proven themselves against some formidable competition but based on our findings so far the FRAMA still remains slightly superior.

Want to use this indicator? Get a free Excel spreadsheet at the flowing link under Downloads – Technical Indicators: Adaptive Moving Average (AMA).  It will automatically adjust to your choice of many different VIs including the Efficiency Ratio used in this article.


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


  • ~ An entry signal to go long (or exit signal to cover a short) for each average tested was generated with a close above that average and an exit signal (or entry signal to go short) 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) and End Of Week (EOW) signals on Daily data. Eg. Daily data with an EOW signal would require the Week to finish above a Daily Moving Average to open a long or close a short while Daily data with EOD signals would require the Daily price to close above a Daily Moving Average to open a long or close a short and vice versa.
  • 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

Efficiency Ratio Variable Moving Average (ER-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 an Efficiency Ratio (ER).  This is identical to the modified CMO that Tushar S. Chande suggested be used in his October 1995 article in Technical Analysis of Stocks & Commodities – ‘Identifying Powerful Breakouts Early‘.

The ER-VMA requires two user selected inputs: An Efficiency Ratio Period and a VMA period.  We tested trades going Long and Short, using Daily data, taking End Of Day (EOD) and End Of Week (EOW) signals~ analyzing all combinations of:

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

VMA = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

The ER 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 VMA periods were selected after preliminary tests showed that when combined with the different ER lengths they resulted in median smoothing periods between 6 and 207 days; a range that should capture the best results based on what we know from previous research into moving averages.

A total of 240 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 240 ER-VMA Long and Short Test Results

.

ER Variable Moving Average EOD vs EOW Returns:

.Efficiency Ratio Variable Moving Average - Average Annualized Return, Long

.

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

Clearly the ER periods of 126 and 252 produced the best results using both EOD and EOW signals.  This echoes previous results on other ‘intelligent’ moving averages.  The 126 Day ER-VMA with a constant of 1 stands out as the best performer with EOD signals while the 252 Day ER-VMA with a constant of 9 was the best when taking EOW signals.  (The results on the short side reiterate this).

It is interesting to note that the returns hold up quite well when using EOW signals on a 252 ER so lets take a closer look at the how the probability of profit and trade duration compares for EOD and EOW signals:

.

Efficiency Ratio VMA - Probability of Profit and Average Trade Duration, Long

.

Clearly there is a large jump in the probability of profit and the average trade duration when using EOW signals; both are highly desirable characteristics especially if they can be achieved without sacrificing too much return.

.

Best EOD Efficiency Ratio Variable Moving Average

.

126 Day ER-VMA EOD, 1 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 Day ER-VMA, EOD 1, Long produced almost identical results to the best that the FRAMA could produce but still under performs slightly (The same is true on the short side).  Plus there are other little things that go against the 126 Day ER-VMA, EOD 1 like a slight increase in the biggest loss and not turning a profit on the Nikkei 225.

.

126 Day ER-VMA, EOD 1 – Smoothing Period Distribution

.

.

Looking at the smoothing distribution you can see it is quite similar to the FRAMA but with a lower median and a MASSIVE range.

.

126 Day ER-VMA, 1 – Alpha Comparison

.

To get an idea of the readings that created these results we charted a section of the alpha for the 126 Day ER-VMA, 1 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

.

The alpha does have a very similar pattern for both the 126 Day FRAMA 4, 300 and the 126 Day ER-VMA 1 and this further helps to explain why their performance is so similar.  Notice however that the FRAMA is far less volatile.  It is always preferable to work with indicators that generate clean readings with low levels of noise assuming they still produce good results.

.

Best EOW Efficiency Ratio Variable Moving Average

.

252 Day ER-VMA, EOW 9, Long

.

I have included on the above chart the performance of the 252 Day FRAMA, EOW 40, 250 Long becuase so far this has been the best performing ‘slower’ Moving Average.  The 252 Day ER-VMA, EOW 9, under performs by a small amount by almost every measure but it does offer a longer average trade duration of 86 days compared to 63 days for the FRAMA.  This makes the 252 Day ER-VMA, EOW 9 a very strong candidate as the best ‘slower’ moving average although its performance on the short side under performs by a slightly greater margin.

.

252 Day ER-VMA, EOW 9 – Smoothing Period Distribution

.

252 Day ER-VMA, 9 - Smoothing Period Distribution.

Looking at the smoothing distribution for the 252 Day ER-VMA, 9 you can see that it is far more spread out with just 33% of its the periods covered in the first 50 data points while the same range covers 82% for the FRAMA.  It also has a much higher median smoothing period of 119 compared to 52 for the FRAMA which explains why it has a longer average trade duration.

.

252 Day ER-VMA, 9 – Alpha Comparison

.

252 Day ER-VMA, 9 - Alpha Comparison.

This time we see that the alphas are very different but once again the FRAMA is far less volatile.  Remember the higher the reading the faster the resulting smoothing period; the ER-VMA stays much lower than the FRAMA which results in a slower average.

.

Conclusion

.

The ER-VMA produces some impressive returns and gives the FRAMA a good run for its money.  For a ‘fast’ moving average the 126 Day FRAMA, EOD 4, 300 is definitely superior to the 126 Day ER-VMA, 1 because it outperforms by almost every measure and is guided by readings (D) that are far less volatile.

For the ‘slower’ moving average it is more difficult to select the winner.  I like the fact that the 252 ER-VMA, 9 has a much more even distribution of smoothing and a longer average trade duration.  However it is unfortunate that there is so much more noise in the readings (ER) that guide it.  The ER-VMA certainly warrens mention and perhaps further research but based on our findings so far the FRAMA remains slightly superior in almost every way.

Want to use this indicator?  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 Efficiency Ratio used in this article.

.

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

.

  • ~ An entry signal to go long (or exit signal to cover a short) for each average tested was generated with a close above that average and an exit signal (or entry signal to go short) 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) and End Of Week (EOW) signals on Daily data. Eg. Daily data with an EOW signal would require the Week to finish above a Daily Moving Average to open a long or close a short while Daily data with EOD signals would require the Daily price to close above a Daily Moving Average to open a long or close a short 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.

252 Day ER-AMA, 9 – Alpha Comparison