{"id":2021801,"date":"2015-05-03T15:54:32","date_gmt":"2015-05-03T10:24:32","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2021801"},"modified":"2015-05-03T15:54:32","modified_gmt":"2015-05-03T10:24:32","slug":"basis-trades-using-futures","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2015\/05\/03\/basis-trades-using-futures\/","title":{"rendered":"Basis Trades using Futures"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>When we <a href=\"https:\/\/stockviz.biz\/2015\/01\/12\/nifty-cash-futures-basis\/\" target=\"_blank\">discussed<\/a> cash-futures basis, it was pointed out that the fair value of a futures contract is a function of the underlying price, interest rates, dividends and time to expiration. The same logic applies to the fair value of contracts across expiration dates. For example, as of close on April 30, 2015, NIFTY futures contracts had the following values: 8177.35 (April), 8244.05 (May), 8275.30 (June). <\/p>\n<p>Some of our clients wanted us to check if this basis can be traded. Is it possible to profit from going long the near contract and short the far contract on a consistent basis? Before we look at profitability, lets chart the basis.<\/p>\n<h3>The basis<\/h3>\n<p>Here is how the basis between different contracts look (2000 through now):<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.png\" alt=\"NIFTY.futures.basis\" width=\"1400\" height=\"1400\" class=\"alignnone size-full wp-image-2021811\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.png 1400w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_-150x150.png 150w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_-300x300.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_-1024x1024.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_-144x144.png 144w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_-900x900.png 900w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><\/a><\/p>\n<p>Here is the summary statistic of the basis:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/summary1.png\" alt=\"summary statistics\" width=\"457\" height=\"90\" class=\"alignnone size-full wp-image-2021821\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/summary1.png 457w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/summary1-300x59.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/p>\n<p>Here is the same data with futures expiry dates removed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/summary2.png\" alt=\"summary statistics\" width=\"457\" height=\"90\" class=\"alignnone size-full wp-image-2021831\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/summary2.png 457w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/summary2-300x59.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/p>\n<p>With the extreme values removed, we can now check if we can trade the nearest expiry contract with the farthest.<\/p>\n<h3>50-day Average Basis Trade Back-Test<\/h3>\n<p>Lets take a look at the Near vs. Farthest basis and draw a 50-dma through it:<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma1.png\" alt=\"NIFTY.futures.basis.50dma\" width=\"1500\" height=\"700\" class=\"alignnone size-full wp-image-2021871\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma1.png 1500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma1-300x140.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma1-1024x478.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma1-500x233.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma1-900x420.png 900w\" sizes=\"auto, (max-width: 1500px) 100vw, 1500px\" \/><\/a><\/p>\n<p>The basis is not stable and what&#8217;s worse, it appears to be trending. Lets try our simple trading rule: go long the basis if it is above 50-dma and short if otherwise. <\/p>\n<p>Here&#8217;s how the back-test works out (2005 through now):<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.20051.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.20051.png\" alt=\"NIFTY.futures.basis.50dma.trade.2005\" width=\"1200\" height=\"800\" class=\"alignnone size-full wp-image-2021881\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.20051.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.20051-300x200.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.20051-1024x683.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.20051-450x300.png 450w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.20051-900x600.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p>Lets check the back-test on a smaller subset (2010 through now):<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.2010.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.2010.png\" alt=\"NIFTY.futures.basis.50dma.trade.2010\" width=\"1200\" height=\"800\" class=\"alignnone size-full wp-image-2021891\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.2010.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.2010-300x200.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.2010-1024x683.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.2010-450x300.png 450w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/05\/NIFTY.futures.basis_.50dma.trade_.2010-900x600.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p>A ~20% profit in a 10 year time-frame is barely enough to cover transaction costs. Besides, it looks like the strategy hit a wall in 2010.<\/p>\n<h3>Conclusion<\/h3>\n<p>It appears that the basis trade described above is not profitable enough after considering transaction costs and taxes. Also, whatever meager profits were there seem to have been arbitraged away lately.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction When we discussed cash-futures basis, it was pointed out that the fair value of a futures contract is a function of the underlying price, interest rates, dividends and time to expiration. The same logic applies to the fair value of contracts across expiration dates. For example, as of close on April 30, 2015, NIFTY &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":[3541,3391,2761],"class_list":["post-2021801","post","type-post","status-publish","format-standard","hentry","category-investing-insight","category-your-money","tag-backtest","tag-nifty","tag-quant","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2021801","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=2021801"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2021801\/revisions"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=2021801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2021801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2021801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}