I was wondering if anybody had come across some resources or books explaining the significance of the different and more popular moving average periods?
For example what is the significance of 20 days when we are using the 20 day moving average why not 22 days why not 30?
Or another example would be why the 200. Moving average, why not 220.
I figured there must be some science behind this and I wanted to delve into it a lot more.
Any help on this would be very much appreciated.
Thanks
Different MA lengths pick up different length trends. Trends occur at different time periods. There is no significant difference (in the statistical sense) between the pre-cost performance of different length moving averages in the period when financial assets are generally held to trend (say between a couple of weeks and a year or so, give or take).
Ratios of 1:2 to 1:4 between the fast and slow moving average crossovers work best at capturing trends. This is true with artifical and real data. Given a piece of paper, a pencil, and some stochastic calculus I could probably show why this is the case and find the 'correct' ratio. This about as much science as you will get for this question. It matters not, since there is no significant difference between the performance of ratios in any sensible range.
Do not, as someone has said, try and optimise the moving average to use unless you do so in a robust way. Better to use many moving averages, or crossovers, and take an average.
It's intuitive to use logical MA lengths. Using business day calendars, 10 = two weeks. 20 = about a month. 40 = about two months. 60 = about 3 months, 80 = about 4 months, 120 = about 6 months, 160 = about 8 months.
Doubling the MA each time gives a similar correlation pattern. I use 10,20,40,80,160,320. Or try working downwards from a year in base 2: 256 = about a year, 128 = about 6 months, 64 = about 3 months, 32 = about 6 weeks, 16 = about 3 weeks, 8 = just under 2 weeks.
None of this will make you extra money, but it will discourage you from trying to fit 31 or 29 day MA lengths.
GAT
PS Some pics
This shows, for Eurodollar, the Sharpe Ratio (Z-axis) for crossovers A and B. Any trend following system of medium length (lower left triangle) works pretty well (bright yellow).
This shows the T-statistics (bootstrapped, non parametric) comparing the optimum to the relevant system. Anything in dark blue can't be distinguished from the optimium, and is just as good as it (optimium is white). There are a wide range of possible crossover pair values in dark blue.
Finally this shows the T-statistics with all insignificant results whited out. Any trading system in the white area is as good as any other. So for example 30,175 is as good as 8,20.
Another way of looking at this, here is the box and whiskers plot for some commonly used crossovers (averages taken across 40 futures, pre-cost returns):
Apart from the first two, there are no significant differences in performance.