@page { margin: 2cm } p { margin-bottom: 0.25cm; line-height: 115% }
The true answer is that it doesn't matter. MAs, as traditionally used, do not work. The conventional wisdom is that a 200 day SMA has some value as a self fulfilling prophecy. Do not believe the conventional wisdom. If you insist on going down the rabbit hole of moving averages, at least learn to view them as lowpass filters, and learn how to engineer them. John Ehlers is the man to study for filters in finance.
Moving averages work in the sense that they pick up recent trends in the market, and if those trends persist then a moving average will be profitable. In many markets trends do seem to persist, and therefore moving averages are profitable. There are many other different ways of detecting trends. Moving averages are as good as any of them, but are inferior to using an ensemble of different methods. Of course if markets don’t trend then they won’t work.
Momentum is rarely a strong enough effect that it will always work (single moving averages on one instrument average Sharpe Ratios of ~0.25). Therefore it’s always possible to find an instrument or time period when it doesn’t work, especially if you only test a single moving average like 200 days on a small set of instruments. However tests of multiple moving averages over long history and many different instruments show they have been profitable in the past. Then there are the still profitable scores of profitable hedge funds and traders (including myself) who use moving averages (almost always as part of a larger set of signals).
Numerous backtests (see all the Perry Kaufman studies for instance) have shown that simple moving averages perform slightly better than more "exotic" moving averages like the exponential moving averages, including - ironically - Perry Kaufman so called "adaptive moving average" (KAMA).
Anyway.
Normally if I had two competing signals I’d trade them both with some risk allocation, but with MA and EMA this would be a bit pointless since they are so similar. So a choice is inevitable.
But a ‘slight’ difference in performance isn’t statistically significant. Anyway, this isn’t the correct criteria. When two systems give very similar performance you should be looking at other factors, which brings me on to:
Put an exponential moving average on any chart and see how it changes after each bar.
It is a repaint indicator, I have lost a great deal of money with that sucker, that's why I only use simple moving averages.
I am just sharing my experience folks, trade as you see fit.
Never heard the term ‘repaint’ before, but I agree that it would make sense to avoid a signal which frequently reverses itself. This is likely to be more costly to trade. Essentially for a given level of profitability, we want the signal which has the lowest turnover.
(There is a subtle difference here between ‘binary’ traders who go long/short one unit of risk when the MA crosses and ‘continuous’ traders like myself who are always adjusting positions. ‘Binary’ traders don’t care about turnover if it doesn’t change the sign of the signal, i.e. there is no cross. However a signal with higher turnover is also likely to cause more multiple crosses in a short period)
However the SMA is likely to have a higher turnover than EMA! This isn’t very apparent on a 200 day SMA where both will be very smooth so you will need to look at a much shorter period (also multiple crosses, and thus 'repainting' are relatively rare with a 200 day EMA anyway).
First you have to compare like with like, and set up the EMA so it has the same half life as SMA. A 20 day EMA has a half life of about 7 days whereas a 20 day SMA has a half life of exactly 10 days. To match the 20 day SMA you’d need a 28 day EMA.
If you plot them you will see that the SMA is more jagged and less smooth than the EMA, and hence 'repainting' is much less likely. You can also backtest which will confirm this result.
Even for matching moving average lengths the EMA . The exponential weighting provides a much smoother transition as large returns come in and out of the ‘window’.
For this reason I’d choose to use the EMA over the SMA.
GAT