{"id":2092913,"date":"2018-11-20T18:37:41","date_gmt":"2018-11-20T13:07:41","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2092913"},"modified":"2018-11-21T11:46:47","modified_gmt":"2018-11-21T06:16:47","slug":"macro-using-currencies-to-predict-nifty-part-iv","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2018\/11\/20\/macro-using-currencies-to-predict-nifty-part-iv\/","title":{"rendered":"Macro: Using Currencies to Predict NIFTY, Part IV"},"content":{"rendered":"<p><small><em>Please read <a href=\"https:\/\/stockviz.biz\/index.php\/2018\/11\/16\/macro-using-currencies-to-predict-nifty-part-i\/\">Part I<\/a> and <a href=\"https:\/\/stockviz.biz\/index.php\/2018\/11\/20\/macro-using-currencies-to-predict-nifty-part-ii\/\">Part II<\/a> for an introduction. <a href=\"https:\/\/stockviz.biz\/2018\/11\/20\/macro-using-currencies-to-predict-nifty-part-iii\/\">Part III<\/a> extends the treatment to other dollar indices.<\/em><\/small><\/p>\n<p>In this part of our ongoing series on using SVMs on dollar indices to predict the NIFTY 50, we create an ensemble of two models. We combine one on DTWEXB, using an 8th degree polynomial kernel and another on DTWEXM, using a 4th degree polynomial kernel, to create long-only and long-short portfolios.<\/p>\n<h3>Results<\/h3>\n<p>Here are the cumulative returns of the standalone models and the ensemble:<br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/macro\/machine%20learning\/svr-4\/DTWEXB%2BDTWEXM.NIFTY.cumulative.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/macro\/machine%20learning\/svr-4\/DTWEXB%2BDTWEXM.NIFTY.cumulative.png\" width=\"1400\" height=\"800\" alt=\"DTWEXB%2BDTWEXM.NIFTY SVM\" class=\"alignnone size-full\" \/><\/a><\/p>\n<p>The standalone model over DTWEXM (LS2) seems to outperform all other models, including buy and hold. However, the ensemble model (LS) has lower drawdowns and comes in at second place. Here are the list of drawdowns deeper than 5% over the test dataset:<\/p>\n<div class=\"row-fluid\">\n<div class=\"span6\">\n<h4>Buy and hold drawdowns<\/h4>\n<p><a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/macro\/machine%20learning\/svr-4\/DTWEXB%2BDTWEXM.NIFTY.BH.drawdowns.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/macro\/machine%20learning\/svr-4\/DTWEXB%2BDTWEXM.NIFTY.BH.drawdowns.png\" width=\"2100\" height=\"450\" alt=\"buy and hold NIFTY drawdowns over 5%\" class=\"alignnone size-full\" \/><\/a>\n<\/div>\n<div class=\"span6\">\n<h4>Ensemble drawdowns<\/h4>\n<p><a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/macro\/machine%20learning\/svr-4\/DTWEXB%2BDTWEXM.NIFTY.LS.drawdowns.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/macro\/machine%20learning\/svr-4\/DTWEXB%2BDTWEXM.NIFTY.LS.drawdowns.png\" width=\"2100\" height=\"600\" alt=\"DTWEXB+BDTWEXM.NIFTY SVM\" class=\"alignnone size-full\" \/><\/a>\n<\/div>\n<\/div>\n<p>In the <a href=\"https:\/\/stockviz.biz\/2018\/11\/21\/macro-using-currencies-to-predict-nifty-part-v\/\">next (and final) post<\/a>, we will explore if we can add a simple technical signal into to mix to boost returns and reduce drawdowns.<\/p>\n<p>Code and charts are on <a href=\"https:\/\/github.com\/stockviz\/blog\/tree\/master\/macro\/machine%20learning\/svr-4\" rel=\"noopener\" target=\"_blank\">github<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please read Part I and Part II for an introduction. Part III extends the treatment to other dollar indices. In this part of our ongoing series on using SVMs on dollar indices to predict the NIFTY 50, we create an ensemble of two models. We combine one on DTWEXB, using an 8th degree polynomial kernel &hellip; <\/p>\n","protected":false},"author":2,"featured_media":2077853,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3471],"tags":[3783,3481,3391,3551],"class_list":["post-2092913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-investing-insight","tag-machine-learning","tag-macro","tag-nifty","tag-support-vector-machine","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2092913","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=2092913"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2092913\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media\/2077853"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=2092913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2092913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2092913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}