{"id":2027411,"date":"2015-06-28T18:08:48","date_gmt":"2015-06-28T12:38:48","guid":{"rendered":"http:\/\/stockviz.biz\/index.php\/?p=2027411"},"modified":"2015-06-28T18:08:48","modified_gmt":"2015-06-28T12:38:48","slug":"stop-loss-and-re-entry","status":"publish","type":"post","link":"https:\/\/stockviz.biz\/index.php\/2015\/06\/28\/stop-loss-and-re-entry\/","title":{"rendered":"Stop-loss and Re-entry"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>A <a href=\"https:\/\/stockviz.biz\/2012\/10\/04\/trailing-stop-loss\/\" target=\"_blank\">trailing stop<\/a> is a percentage below the most recent high at which you exit a trade. It allows you to lock-in gains while avoiding catastrophic loss. There are lot of opinions about where these should be set. And more importantly, when to re-enter. What follows is a discussion on how different stops and re-entry rules affect trading frequency and returns. <\/p>\n<p>We will consider time-series from 2010 through now on the NIFTY, BANK NIFTY and CNX MIDCAP indices. During this time, the cumulative buy-and-hold returns were <strong>61.47%<\/strong>, <strong>104.81%<\/strong> and <strong>75.61%<\/strong> respectively.\t\t<\/p>\n<h3>A simple 5-3 Rule<\/h3>\n<div class=\"row-fluid well well-small\">\n&#8220;A good plan violently executed now is better than a perfect plan executed next week.&#8221;<br \/>\n&#8211; George S. Patton\n<\/div>\n<p>To get us started, we propose a trailing-stop loss at 5% and a re-entry rule that triggers when the index covers 3% from the lowest level since exiting the trade. This rule significantly increases returns and reduces draw-downs across all indices.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.5.3.png\" alt=\"nifty.stop-loss.2010.5.3\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027461\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.5.3.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.5.3-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.5.3-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.5.3-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.5.3-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.5.3.png\" alt=\"bank-nifty.stop-loss.2010.5.3\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027451\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.5.3.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.5.3-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.5.3-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.5.3-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.5.3-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.5.3.png\" alt=\"mid-cap.stop-loss.2010.5.3\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027441\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.5.3.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.5.3-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.5.3-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.5.3-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.5.3-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<div class=\"row-fluid\">\n<div class=\"span6\">\n<table class=\"table table-bordered table-condensed\">\n<thead>\n<tr>\n<th>Index<\/th>\n<th>#trades<\/th>\n<th>cum. returns<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Nifty<\/td>\n<td>139<\/td>\n<td>366%<\/td>\n<\/tr>\n<tr>\n<td>Bank Nifty<\/td>\n<td>209<\/td>\n<td>2291%<\/td>\n<\/tr>\n<tr>\n<td>Midcap<\/td>\n<td>159<\/td>\n<td>382%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"span6\">\nThe boost in returns come at additional trading costs. And even though the average number of trades work out to less than one a week, there maybe periods where it might trigger every day.\n<\/div>\n<\/div>\n<h3>The 5-3 Trading frequency<\/h3>\n<p>Let&#8217;s plot the days on which this rule triggers (both buys and sells.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.png\" alt=\"nifty.stop-loss.trades\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027481\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.png\" alt=\"bank-nifty.stop-loss.trades\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027491\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.trades.png\" alt=\"mid-cap.stop-loss.trades\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027471\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.trades.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.trades-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.trades-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.trades-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.trades-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>By the looks of it, the stop-loss and re-entry bands are too narrow.<\/p>\n<h3>The 10-5 Rule<\/h3>\n<p>Suppose we set the trailing-stop loss at 10% and re-enter when the index covers 5%, we end up with a strategy with lower number of trades and yet, better returns and buy-and-hold.<\/p>\n<div class=\"row-fluid\">\n<div class=\"span6\">\n<table class=\"table table-bordered table-condensed\">\n<thead>\n<tr>\n<th>Index<\/th>\n<th>#trades<\/th>\n<th>cum. returns<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Nifty<\/td>\n<td>50<\/td>\n<td>100%<\/td>\n<\/tr>\n<tr>\n<td>Bank Nifty<\/td>\n<td>103<\/td>\n<td>536%<\/td>\n<\/tr>\n<tr>\n<td>Midcap<\/td>\n<td>66<\/td>\n<td>162%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"span6\">\nLower trading but lower returns as well.\n<\/div>\n<\/div>\n<p><strong>Returns:<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.10.5.png\" alt=\"nifty.stop-loss.2010.10.5\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027531\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.10.5.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.10.5-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.10.5-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.10.5-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.2010.10.5-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.10.5.png\" alt=\"bank-nifty.stop-loss.2010.10.5\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027521\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.10.5.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.10.5-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.10.5-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.10.5-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.2010.10.5-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.10.5.png\" alt=\"mid-cap.stop-loss.2010.10.5\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027511\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.10.5.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.10.5-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.10.5-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.10.5-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/mid-cap.stop-loss.2010.10.5-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><strong>Trading Events:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.10-5.png\" alt=\"nifty.stop-loss.trades.10-5\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027551\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.10-5.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.10-5-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.10-5-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.10-5-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/nifty.stop-loss.trades.10-5-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.10-5.png\" alt=\"bank-nifty.stop-loss.trades.10-5\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027541\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.10-5.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.10-5-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.10-5-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.10-5-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/bank-nifty.stop-loss.trades.10-5-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/cnx-midcap.stop-loss.trades.10-5.png\" alt=\"cnx-midcap.stop-loss.trades.10-5\" width=\"1200\" height=\"600\" class=\"alignnone size-full wp-image-2027561\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/cnx-midcap.stop-loss.trades.10-5.png 1200w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/cnx-midcap.stop-loss.trades.10-5-300x150.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/cnx-midcap.stop-loss.trades.10-5-1024x512.png 1024w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/cnx-midcap.stop-loss.trades.10-5-500x250.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/cnx-midcap.stop-loss.trades.10-5-900x450.png 900w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h3>Trailing stop-loss and re-entry scenarios<\/h3>\n<p>The master list of different strategies, their trading frequencies and cumulative returns.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/trailing-stop-loss-and-re-entry-scenarios.png\" alt=\"trailing stop-loss and re-entry scenarios\" width=\"953\" height=\"533\" class=\"alignnone size-full wp-image-2027581\" srcset=\"https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/trailing-stop-loss-and-re-entry-scenarios.png 953w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/trailing-stop-loss-and-re-entry-scenarios-300x168.png 300w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/trailing-stop-loss-and-re-entry-scenarios-500x280.png 500w, https:\/\/portalvhds29z8xdrqhczq.blob.core.windows.net\/wordpress\/2015\/06\/trailing-stop-loss-and-re-entry-scenarios-900x503.png 900w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/p>\n<h3>Conclusion<\/h3>\n<p>Having a trailing stop-loss and re-entry strategy enhances returns but at the price of increased trading frequency. No combination of strategies can escape the doldrums &#8211; where the index is basically flat and you are getting whipsawed. <\/p>\n<p>With a 15% tax on short-term gains, over the 5-year period, you should handicap strategy returns by 75% to do an apples-to-apples comparison on the tax-free buy-and-hold returns. If you use the 10-5 rule, it means you will only come-out ahead trading the Bank Nifty. So you are better off with the 5-3 rule given where trading costs stand.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction A trailing stop is a percentage below the most recent high at which you exit a trade. It allows you to lock-in gains while avoiding catastrophic loss. There are lot of opinions about where these should be set. And more importantly, when to re-enter. What follows is a discussion on how different stops and &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":[2761],"class_list":["post-2027411","post","type-post","status-publish","format-standard","hentry","category-investing-insight","category-your-money","tag-quant","entry"],"_links":{"self":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2027411","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=2027411"}],"version-history":[{"count":0,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/posts\/2027411\/revisions"}],"wp:attachment":[{"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/media?parent=2027411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/categories?post=2027411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockviz.biz\/index.php\/wp-json\/wp\/v2\/tags?post=2027411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}