{"id":2090224,"date":"2018-10-25T17:25:14","date_gmt":"2018-10-25T11:55:14","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2090224"},"modified":"2018-10-25T17:25:14","modified_gmt":"2018-10-25T11:55:14","slug":"timing-entries-and-exits-based-on-profits-and-drawdowns","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2018\/10\/25\/timing-entries-and-exits-based-on-profits-and-drawdowns\/","title":{"rendered":"Timing Entries and Exits based on Profits and Drawdowns"},"content":{"rendered":"<p>We previously looked at a couple of popular &#8220;buy the dip&#8221; strategies &#8211; one <a href=\"https:\/\/stockviz.biz\/2018\/10\/05\/systematic-buy-the-dip-sma-crosses\/\">based on SMA crosses<\/a> and another <a href=\"https:\/\/stockviz.biz\/index.php\/2018\/10\/04\/systematic-buy-the-dip-an-update\/\">based on drawdowns<\/a> &#8211; and showed how they underperform a systematic daily SIP. Further, we showed how a daily SIP is not that different from a monthly SIP <a href=\"https:\/\/stockviz.biz\/index.php\/2018\/10\/08\/daily-vs-monthly-sip\/\">here<\/a>. These studies were based on maximizing the terminal asset size. i.e., a strategy was labeled superior if it accumulated the maximum number of units of an index, mutual fund or stock. They weren&#8217;t trading strategies trying to maximize profits but investment strategies looking to maximize assets. Here, we turn our gaze to a strategy that lies in between investment and trading &#8211; exiting based on profit-booking and re-entering.<\/p>\n<h3>Book profits and re-enter<\/h3>\n<p>We often hear media pundits asking their followers to &#8220;book profits and re-enter at a lower level.&#8221; We wanted to see if it can be quantified systematically. What exactly does it mean in numbers? Is it better than buy and hold? So, we setup a backtest:<\/p>\n<ol>\n<li>Start with a long<\/li>\n<li>Once the long reaches a profit threshold, exit.<\/li>\n<li>Stay out of the market until a drawdown point has been reached and then re-enter.<\/li>\n<li>Do this for NIFTY 50, MIDCAP 100 and SMLCAP 100 indices.<\/li>\n<\/ol>\n<h3>Results<\/h3>\n<p>The tables below collate returns for 10-year rolling windows. <\/p>\n<div class='row-fluid'>\n<div class='span4'>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.NIFTY%2050.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.NIFTY%2050.png\" alt=\"NIFTY 50\" class=\"alignnone size-full\" \/><\/a>\n<\/div>\n<div class='span8'>\n<div class='row-fluid'>\n<div class='span6'>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.NIFTY%20MIDCAP%20100.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.NIFTY%20MIDCAP%20100.png\" alt=\"NIFTY MIDCAP 100\" class=\"alignnone size-full\" \/><\/a>\n<\/div>\n<div class='span6'>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.NIFTY%20SMLCAP%20100.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.NIFTY%20SMLCAP%20100.png\" alt=\"NIFTY SMLCAP 100\" class=\"alignnone size-full\" \/><\/a>\n<\/div>\n<\/div>\n<div class='row-fluid'>\n<small>&#8216;BH&#8217; indicates buy&amp;hold.<br \/>\n&#8216;RET_SEN&#8217; and &#8216;RET_MAX&#8217; are the scenarios that produce the best returns, respectively.<br \/>\n&#8216;IR_SEN&#8217; and &#8216;RET_IR&#8217; are the scenarios that produce the best information ratio and its corresponding returns, respectively.<\/small>\n<\/div>\n<\/div>\n<\/div>\n<p>As you can see, there is no clear winner here. However, there are some configurations that seem to repeat. For NIFTY 50, it appears to be 35%:10% i.e., sell once returns have reached 35%, re-enter on a 10% correction. For MIDCAP, you could probably go with 70%:10% and for SMLCAP, 80%:15%. Below are their respective cumulative and yearly return charts:<\/p>\n<h4>NIFTY 50<\/h4>\n<p><a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.cumulative.NIFTY%2050.S-0.35-0.10.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.cumulative.NIFTY%2050.S-0.35-0.10.png\" alt=\"NIFTY 50 entry\/exit\" class=\"alignnone size-full\" \/><\/a><br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.annual.NIFTY%2050.S-0.35-0.10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.annual.NIFTY%2050.S-0.35-0.10.png\" width=\"7500\" height=\"3600\" alt=\"NIFTY 50 yearly\" class=\"alignnone size-full\" \/><\/a><\/p>\n<h4>MIDCAP 100<\/h4>\n<p><a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.cumulative.NIFTY%20MIDCAP%20100.S-0.70-0.10.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.cumulative.NIFTY%20MIDCAP%20100.S-0.70-0.10.png\" alt=\"MIDCAP 100 entry\/exit\" class=\"alignnone size-full\" \/><\/a><br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.annual.NIFTY%20MIDCAP%20100.S-0.70-0.10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.annual.NIFTY%20MIDCAP%20100.S-0.70-0.10.png\" width=\"7500\" height=\"3600\" alt=\"NIFTY 50 yearly\" class=\"alignnone size-full\" \/><\/a><\/p>\n<h4>SMLCAP 100<\/h4>\n<p><a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.cumulative.NIFTY%20SMLCAP%20100.S-0.80-0.15.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.cumulative.NIFTY%20SMLCAP%20100.S-0.80-0.15.png\" alt=\"SMLCAP 100 entry\/exit\" class=\"alignnone size-full\" \/><\/a><br \/>\n<a href=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.annual.NIFTY%20SMLCAP%20100.S-0.80-0.15.png\"><img decoding=\"async\" src=\"https:\/\/github.com\/stockviz\/blog\/raw\/master\/entries%20and%20exits\/binary\/simple.entry.exit.annual.NIFTY%20SMLCAP%20100.S-0.80-0.15.png\" alt=\"SMLCAP 100 entry\/exit\" class=\"alignnone size-full\" \/><\/a><\/p>\n<p>Applying the strategy to MIDCAP and SMLCAP seem to have some merit. However, when you look at the yearly returns chart, it is obvious that a bulk of the out-performance came from just two or three years of the ~20 year dataset. Another key observation here is that these strategies do not offer any significant downside protection. Also, these back-tests do not incorporate the tax impact and transaction costs of these strategies.<\/p>\n<h3>Takeaway<\/h3>\n<p>&#8220;Book profits and re-enter at a lower level&#8221; may sound like a nice thing to do but there is no consistent rule that can be applied that can justify the added costs and tax impact.<\/p>\n<p>Code and more charts on <a href=\"https:\/\/github.com\/stockviz\/blog\/tree\/master\/entries%20and%20exits\/binary\" rel=\"noopener\" target=\"_blank\">github<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We previously looked at a couple of popular &#8220;buy the dip&#8221; strategies &#8211; one based on SMA crosses and another based on drawdowns &#8211; and showed how they underperform a systematic daily SIP. Further, we showed how a daily SIP is not that different from a monthly SIP here. These studies were based on maximizing &hellip; <\/p>\n","protected":false},"author":2,"featured_media":2066041,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3471],"tags":[3541],"class_list":["post-2090224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-investing-insight","tag-backtest","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2090224","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=2090224"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2090224\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media\/2066041"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=2090224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2090224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2090224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}