Fractal Dimension Adaptive Moving Average (D-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 Fractal Dimension (D).  This is the VI used in the FRAMA which has so far been the best performing Moving Average we have tested.

We did have to make one slight modification to the Fractal Dimension however.  The Volatility index in an AMA needs to shift through a 0 – 1 range where higher readings indicate a stronger trend.  The Fractal Dimension shifts through a 1 – 2 range where lower readings indicate a stronger trend.  Therefore we shall use = ABS(D – 2).

The D-AMA requires four user selected inputs: A Fractal Dimension 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:

D = 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 D lengths were selected due to the fact that they correspond with the approximate number of trading days in standard calendar periods: 40 days = 2 months, 80 days = ⅓ year, 126 days = ½ year and there are 252 trading days in an average year.  In many of out past tests we have also tested VI lengths of 10 and 20 days, however these setting have always failed to yield the best results so we felt that it would be safe to omit them from this set of tests.

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 960 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 960 D-AMA Test Results


Fractal Dimension 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.  When we tested this theory on the ER-AMA we found it to be false but with a different VI we may reach a different conclusion.  So lets look at the affect of raising Alpha to different powers:

Fractal Dimension – AMA, Alpha to the Power of  1 – Annualized Return

Fractal Dimension - AMA ^ 1 - Annualized Return

With Alpha ^1 there is no modification to Alpha at all.  Clearly as the FC is increased the returns decline and as the FC gets higher the change in SC has more impact.  Generally it appears as though a SC of 100 is best on a D-AMA with an unmodified Alpha.   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.

Fractal Dimension – AMA to the Power of  2 – Annualized Return

Fractal Dimension - AMA ^ 2 - Annualized Return

By raising Alpha to the power of 2, returns at almost all the data points increased which is just the opposite of what we experienced when testing the ER-AMA.  This shows that Kaufman’s theory of rapidly slowing the AMA during times where a trend is lacking had merit but is dependent on the VI being used.

The best results again came from ER lengths of 80 and 126 although an ER length of 40 did produce some notable returns.  Changing the SC did not have as much of an effect with Alpha ^2 compared to Alpha ^ 1 however a SC of 24 (SN equivalent of 300) and a short FC tends to produce the best results.  So lets rework the charts to focus on what we now know works best:

D-AMA Annualized Return with Alpha to Different Powers

Now we are only looking at ER periods of 40, 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 2.  Therefore when using the Fractal Dimension in an Adaptive Moving average you are best to square alpha as suggested in the original formula..

 

Best EOD Fractal Dimension Adaptive Moving Average

126 Day D-AMA, EOD 2, 24 Long ^ 2

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 D-AMA, EOD 2, 24 Long ^ 2 put up a good fight against the FRAMA but ultimately underperformed by most measures to a small degree.  On the Short side, the the D-AMA also underperformed slightly.


126 Day D-AMA, EOD 2, 24 ^ 2 – Smoothing Period Distribution

126 Day D-AMA 2, 24 ^ 2 Smoothing Period Distribution

Looking at the smoothing distribution you can see the 126 Day D-AMA, EOD 2, 24 ^ 2 is very similar to that of the 126 Day FRAMA, EOD 4, 300 but the FRAMA allows the average to slow down more often.


126 Day D-AMA 2, 24 ^ 2 – Alpha Comparison

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

126 Day D-AMA 2, 24 ^ 2 - Alpha Comparison

You can clearly see that all three use the same VI, the only difference is how they manipulate Alpha.  Remember, higher readings result in a faster average so the D-AMA is obviously the fastest of the three while the FRAMA appears to shift through the widest range.


Best EOW Fractal Dimension 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, here is the one that came out trumps:

252 Day D-AMA. EOW 111, 372 Long ^ 0.75

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 D-AMA, EOW 111, 372 Long ^0.75 is almost identical to the FRAMA but does outperform it by a fraction.  They are so similar in fact that they may as well be the same average.  Performance on the short side tells the same story.


252 Day D-AMA, EOW 111, 372 ^ 0.75 – Smoothing Period Distribution

252 Day D-AMA, EOW 111, 372 ^ 0.75 - Smoothing Period Distribution

The smoothing distribution for the 252 Day D-AMA 111, 372 ^ 0.75 has a smaller range than that of the 252 Day FRAMA 40, 250 but the median, lower quartile and minimum are almost identical.  You can view an Alpha Comparison Here.

 

Conclusion

In our tests on the ER-AMA we came to the conclusion that the squaring of alpha as suggested in the standard AMA formula was actually detrimental to performance.  However when using the Fractal Dimension as the VI, squaring Alpha was beneficial.  Therefore the best Power to use in manipulating alpha varies depending on the VI in use.

Overall the D-AMA produced results that were near identical to that of the FRAMA but the D-AMA is a slightly faster average.  The best performing EOD D-AMA was the 126 Day ER-AMA, EOD 2, 26 ^ 2 while the best EOW or ‘slower’ moving average was the 252 Day D-AMA, EOW 111, 372 ^ 0.75.

It is very difficult to pick between the FRAMA and the D-AMA but becuase the FRAMA offers a slightly longer trade duration it the best Moving Average we have tested so far.

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 Fractal Dimension 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

Fractal Dimension Variable Moving Average (D-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 Fractal Dimension (D).  This measure was originally used by John F Ehlers as a component in his Fractal Adaptive Moving Average (FRAMA) which has so far set the standard in our moving average tests.

We did have to make one slight modification to the Fractal Dimension however.  The Volatility index in a VMA needs to shift through a 0 – 1 range where higher readings indicate a stronger trend.  The Fractal Dimension shifts through a 1 – 2 range where lower readings indicate a stronger trend.  Therefore we shall use = ABS(D – 2).

The D-VMA requires two user selected inputs: A Fractal Dimension 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:

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

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

The D 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 12 and 133 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 D-VMA Long and Short Test Results

.

D Variable Moving Average EOD vs EOW Returns:

.Fractal Dimension Variable Moving Average - Average Annualized Return, Long

.

It must be noted that every single D-VMA using EOD or EOW 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).  This is very impressive when you consider that most fund managers fail to out perform a simple buy and hold approach.

Clearly the D 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 D-VMA with a constant of 10 stands out as the best performer with EOD signals while the 252 Day D-VMA with a constant of 30 was the best when taking EOW signals.

Because the returns hold up so well when using EOW signals lets take a closer look at the how the probability of profit and trade duration compares for EOD and EOW signals with a D of 126 and 252:

.

Fractal Dimension 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 D-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 Day D-VMA, EOD 10, Long produced almost identical results to the best that the FRAMA could produce and there is really very little between the two.

.

126 Day D-VMA, EOD 10 – Smoothing Period Distribution

.

126 Day D-VMA, EOD 10 - Smoothing Period Distribution.

The smoothing distribution for the two averages has a similar shape but the D-VMA starts from 10 and the FRAMA starts from 4.

.

126 Day D-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 D-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 D-VMA, 10 - Alpha Comparison.

It is not surprising that the shapes of the alpha readings are almost identical because they are both based on the same Fractal Dimension reading.  The only real difference is that the FRAMA tends to move to extremes more readily.

.

Best EOW Efficiency Ratio Variable Moving Average

.

252 Day D-VMA EOW, 30 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 D-VMA, EOW 30, produced almost the exact same results but did under perform ever so slightly.

.

252 Day D-VMA, EOW 30 – Smoothing Period Distribution

.

252 Day D-VMA, 30 - Smoothing Period Distribution.

The smoothing distribution for the 252 Day D-VMA, 30 is more spread than that of the FRAMA but is still very similar.

.

252 Day D-VMA, 30 – Alpha Comparison

.

252 Day D-VMA, 10 - Alpha Comparison.

Not surprisingly you can see the close similarity between the alpha readings for the D-VMA and the FRAMA thus the similar performance.

.

Conclusion

.

The fact that the D-VMA produces almost the exact same results to the FRAMA shows that the volatility index is more important than the method for translating those readings into an ‘intelligent’ moving average.  However because the FRAMA offers more control and fractionally better returns it remains the best moving average we have found so far.

Want to use the Fractal Dimension Variable Moving Average?   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 Fractal Dimension 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