{"id":2088383,"date":"2018-10-05T11:32:16","date_gmt":"2018-10-05T06:02:16","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2088383"},"modified":"2018-10-08T11:20:58","modified_gmt":"2018-10-08T05:50:58","slug":"systematic-buy-the-dip-sma-crosses","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2018\/10\/05\/systematic-buy-the-dip-sma-crosses\/","title":{"rendered":"Systematic Buy-the-Dip, SMA crosses"},"content":{"rendered":"<p><a href=\"https:\/\/stockviz.biz\/index.php\/2018\/10\/04\/systematic-buy-the-dip-an-update\/\">Previously<\/a>, we looked at a dip buying strategy based on how low an index is trading below its peak. We now run some numbers against another popular strategy: the SMA crossover.<\/p>\n<h3>Introduction<\/h3>\n<p>Everybody wants to buy markets that are trending up. When a lower SMA (say, 3-day) crosses an upper SMA (say, 200-day) an uptrend is identified. What if one only buys when such a crossover occurs? What if one accumulates cash otherwise and collects interest while waiting for such crosses?<\/p>\n<p>The following chart shows the periods in which NIFTY is below the upper SMA in red. Purchases are shown as green dots.<br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/tactical%20sip\/NIFTY%2050.SMA.3x200.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/tactical%20sip\/NIFTY%2050.SMA.3x200.png\" width=\"7200\" height=\"3600\" alt=\"NIFTY cross-over\" class=\"alignnone size-full\" \/><\/a><\/p>\n<p>Here&#8217;s the one for the small-cap index:<br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/tactical%20sip\/NIFTY%20SMLCAP%20100.SMA.3x100.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/tactical%20sip\/NIFTY%20SMLCAP%20100.SMA.3x100.png\" width=\"7200\" height=\"3600\" alt=\"small cap cross over\" class=\"alignnone size-full\" \/><\/a><\/p>\n<h3>Results<\/h3>\n<p>We calculate the min, max and mean difference in the final amount of the index accumulated over rolling 5-year periods. The second column in the table below is the lower SMA used in the cross-over.<br \/>\n<a href=\"https:\/\/raw.githubusercontent.com\/stockviz\/blog\/master\/tactical%20sip\/table.asset-diff.SMA.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/stockviz\/blog\/master\/tactical%20sip\/table.asset-diff.SMA.png\" width=\"6300\" height=\"1500\" alt=\"difference in assets accumulated\" class=\"alignnone size-full\" \/><\/a><\/p>\n<p>When it comes to small-caps, there are some configurations where, <em>on average<\/em>, the cross-over strategy accumulates more assets. However, investors are taking a risk where they could encounter 5-year periods where there is a shortfall in assets by an equal amount.<\/p>\n<p>Waiting for the dip using this strategy is not a good idea compared to a simple daily SIP.<\/p>\n<p>Note that we define success as the terminal value of the number of units of the index purchased. This is different from each unit being profitable.<\/p>\n<p>Code is on <a href=\"https:\/\/github.com\/stockviz\/blog\/tree\/master\/tactical%20sip\" rel=\"noopener\" target=\"_blank\">github<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previously, we looked at a dip buying strategy based on how low an index is trading below its peak. We now run some numbers against another popular strategy: the SMA crossover. Introduction Everybody wants to buy markets that are trending up. When a lower SMA (say, 3-day) crosses an upper SMA (say, 200-day) an uptrend &hellip; <\/p>\n","protected":false},"author":2,"featured_media":2050211,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3471],"tags":[960,3833],"class_list":["post-2088383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-investing-insight","tag-returns","tag-sip","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2088383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/comments?post=2088383"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2088383\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media\/2050211"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=2088383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2088383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2088383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}