{"id":2021221,"date":"2015-04-30T18:03:31","date_gmt":"2015-04-30T12:33:31","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2021221"},"modified":"2015-04-30T18:03:31","modified_gmt":"2015-04-30T12:33:31","slug":"long-short-trend-following","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2015\/04\/30\/long-short-trend-following\/","title":{"rendered":"Long-Short Trend Following"},"content":{"rendered":"<h3>Prior Work<\/h3>\n<p>We had <a title=\"ESCAPING THE WORST DAYS\" href=\"https:\/\/stockviz.biz\/2014\/08\/04\/cnx-100-50-day-tactical-theme\/\" target=\"_blank\">discussed<\/a> the SMA On\/Off Switch and its ability to escape the worst days. Based on this finding, we setup a <a title=\"Tactical allocation based on 50-day SMA\" href=\"https:\/\/stockviz.biz\/theme-eq\/85b516f0-3dc7-41d5-b68c-cb61b9f250c5\" target=\"_blank\">Tactical Theme<\/a> that would go long NIFTYBEES and JUNIORBEES if the CNX 100 index is trading above its 50-day SMA and move into LIQUIDBEES otherwise.<\/p>\n<p>What if, we could go long <em>and<\/em> short?<\/p>\n<h3>Naive Long-Short<\/h3>\n<p>Here&#8217;s how going long above 50-DMA and short below 50-DMA on the CNX 100 since 2001 compares:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021231\" src=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_.png\" alt=\"CNX 100.02-Jan-2007.28-Apr-2015.long.short\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n<small class=\"mute\">Long-Short SMA (black), Long-Only SMA (<span style=\"color: #ff0000\">red<\/span>) and Buy &amp; Hold (<span style=\"color: #339966\">green<\/span>)<\/small><\/p>\n<p>It looks like going both long and short is not significantly better than a long-only tactical strategy.<\/p>\n<h3>Long-Short with Volatility<\/h3>\n<p>But what if, we add a volatility metric into the mix? The logic here is that corrections are preceded by a bout of volatility. So if you go short if either or the volatility signal or the 50-DMA indicates a negative bias and long otherwise:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021241\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_.volatility.png\" alt=\"CNX 100.02-Jan-2007.28-Apr-2015.long.short.volatility\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_.volatility.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_.volatility-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_.volatility-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-100.02-Jan-2007.28-Apr-2015.long_.short_.volatility-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n<small class=\"mute\">Long-Short SMA w\/ Volatility (black), Long-Only SMA w\/ Volatility (<span style=\"color: #ff0000\">red<\/span>), Long-Only SMA (<span style=\"color: #339966\">green<\/span>) and Buy &amp; Hold (<span style=\"color: #3366ff\">blue<\/span>)<\/small><\/p>\n<p>It looks like there is significant alpha in the combination approach.<\/p>\n<h3>Long-Short NIFTY and BANKNIFTY<\/h3>\n<p>NIFTY returns since 2001:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021251\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2001.28-Apr-2015.long_.short_.volatility.png\" alt=\"CNX NIFTY.01-Jan-2001.28-Apr-2015.long.short.volatility\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2001.28-Apr-2015.long_.short_.volatility.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2001.28-Apr-2015.long_.short_.volatility-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2001.28-Apr-2015.long_.short_.volatility-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2001.28-Apr-2015.long_.short_.volatility-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>And the same for the BANK NIFTY since 2006:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021261\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.12-Jan-2006.28-Apr-2015.long_.short_.volatility.png\" alt=\"CNX BANK.12-Jan-2006.28-Apr-2015.long.short.volatility\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.12-Jan-2006.28-Apr-2015.long_.short_.volatility.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.12-Jan-2006.28-Apr-2015.long_.short_.volatility-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.12-Jan-2006.28-Apr-2015.long_.short_.volatility-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.12-Jan-2006.28-Apr-2015.long_.short_.volatility-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>NIFTY and BANKNIFTY since 2011:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021301\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.03-Jan-2011.28-Apr-2015.long_.short_.volatility.png\" alt=\"CNX NIFTY.03-Jan-2011.28-Apr-2015.long.short.volatility\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.03-Jan-2011.28-Apr-2015.long_.short_.volatility.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.03-Jan-2011.28-Apr-2015.long_.short_.volatility-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.03-Jan-2011.28-Apr-2015.long_.short_.volatility-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.03-Jan-2011.28-Apr-2015.long_.short_.volatility-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021291\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.03-Jan-2011.28-Apr-2015.long_.short_.volatility.png\" alt=\"CNX BANK.03-Jan-2011.28-Apr-2015.long.short.volatility\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.03-Jan-2011.28-Apr-2015.long_.short_.volatility.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.03-Jan-2011.28-Apr-2015.long_.short_.volatility-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.03-Jan-2011.28-Apr-2015.long_.short_.volatility-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.03-Jan-2011.28-Apr-2015.long_.short_.volatility-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>NIFTY and BANKNIFTY since 2013:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021271\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2013.28-Apr-2015.long_.short_.volatility.png\" alt=\"CNX NIFTY.01-Jan-2013.28-Apr-2015.long.short.volatility\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2013.28-Apr-2015.long_.short_.volatility.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2013.28-Apr-2015.long_.short_.volatility-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2013.28-Apr-2015.long_.short_.volatility-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-NIFTY.01-Jan-2013.28-Apr-2015.long_.short_.volatility-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2021281\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.01-Jan-2013.28-Apr-2015.long_.short_.volatility.png\" alt=\"CNX BANK.01-Jan-2013.28-Apr-2015.long.short.volatility\" width=\"1024\" height=\"768\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.01-Jan-2013.28-Apr-2015.long_.short_.volatility.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.01-Jan-2013.28-Apr-2015.long_.short_.volatility-300x225.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.01-Jan-2013.28-Apr-2015.long_.short_.volatility-400x300.png 400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/04\/CNX-BANK.01-Jan-2013.28-Apr-2015.long_.short_.volatility-900x675.png 900w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n<small class=\"mute\">Long-Short Combo (black), Long-Only Combo (<span style=\"color: #ff0000\">red<\/span>), Long-Only Tactical (<span style=\"color: #339966\">green<\/span>) and Buy &amp; Hold (<span style=\"color: #3366ff\">blue<\/span>)<\/small><\/p>\n<h3>Conclusion<\/h3>\n<p>It appears that there is long-term alpha in using a combination of volatility and 50-DMA to implement a long-short strategy. To put this to test using real-time data, we have created a theme to make it easy for you to follow along: <a title=\"An experimental strategy employing futures to go long and short.\" href=\"https:\/\/stockviz.biz\/theme-eq\/0fe7b97c-1b16-4726-8ed3-115cec17b683\" target=\"_blank\">Trend Long-Short<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prior Work We had discussed the SMA On\/Off Switch and its ability to escape the worst days. Based on this finding, we setup a Tactical Theme that would go long NIFTYBEES and JUNIORBEES if the CNX 100 index is trading above its 50-day SMA and move into LIQUIDBEES otherwise. What if, we could go long &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3471,9],"tags":[3411,3391,2761,2541],"class_list":["post-2021221","post","type-post","status-publish","format-standard","hentry","category-investing-insight","category-your-money","tag-banknifty","tag-nifty","tag-quant","tag-theme","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2021221","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=2021221"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2021221\/revisions"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=2021221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2021221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2021221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}