200 Bar Average
For a very long time, the 200 day average is seen as a barrier between bull and bear markets. While many a analyst questions the reasoning behind using the 200 and not 199 or 201 (which anyway will make for not much of a difference), the key reason 200 came to be seen as a major average was that in an earlier era, markets were open more or less 200 days in a year.
The key question though is should one use a simple moving average (DMA) or a exponential moving average for calculation. The key difference here being that while a simple moving average provides equal weight to all the bars, a exponential moving average provides more weight for recent data and less for the older data.
Exponential is what I personally prefer because I believe that if market data has predictive information, one should have much more weight for yesterday’s data bar than the data bar that is 10 months old. Of course, other than DMA and EMA, we have many a way to slice and dice the data when in comes to moving averages. For the sake of brevity, let me list out a few of them.
DEMA -> Double Exponential Moving Average
TEMA -> Triple Exponential Moving Average
WMA -> Weighted Moving Average
While much of the Industry usage is limited to DMA or EMA, lets test out the viability of all the above variations of the Moving Average to see if thinking differently leads to a better output.
The test is as usual conducted on Nifty Futures (Rolling – No Adjustments) with no compounding of position sizes. All trades are taken at the closing price. A commission / slippage factor of 0.05% per trade is applied. While 0.05% may appear excessive in these days of discount brokerage, traders paid a brokerage which was much higher than even that just a few years back.
Nifty was tested from 12-06-2000 till 24-04-2015. We took only long trades (no Shorts). The key numbers to look out for in my opinion are
1. Profit generated (measured in Points)
2. Maximum Draw-down (measured in % from the highest peak to the lowest trough)
3. Number of Trades
So, here are the results
While no average is able to beat the Buy & Hold in terms of point returns, DEMA comes way close and as a added benefit is also one which has the lowest draw-down.
While the DMA was broken just today, the DEMA was broken way back on 9th March. But on the negative side, this average was broken multiple times over the last few months.
All in all, if you want to use a moving average that is not too short and not too long, 200 is worth a look.
how about a 40 week MA. wouldnt that lead to lesser number of trades (commissions) ?
Interesting question and even more interesting answer. Click on the link below for the answer 🙂
http://portfolioyoga.com/public/Nifty_40Week.png
did expect lesser no. of trades but a smaller draw-down was unexpected and a big bonus ! 🙂