Study: Buy HDFCBANK when there is Bullish Crossover in MACD

home > technical-strategy > hdfcbank > 29

In this study, we evaluate the performance of strategy "Buy HDFCBANK when there is Bullish Crossover in MACD" under various conditions.

X Analysis

In the table below, we find out the performance of this trading strategy under following scenario: buy HDFCBANK at the closing price whenever the signal triggers (Rs. 2Lac per trade). Then cover the position "X" trading days later at close_price i.e. sell after "X" trading days. Here are the results of this study:

X DaysNet ProfitTotal TradesWinning TradesLosing Trades% ProfitableAvg Winning TradeMax Winning TradeAvg Losing TradeMax Losing TradeWin/Loss RatioProfit FactorSharpe RatioAvg Trade
176564.2420910210748.83991.7740823.33-3089.69-16162.281.291.230.014366.34
223764620910510450.246401.5936706.69-4178.08-16909.621.531.550.0291137.06
330099620910110848.337450.4754545.45-4180.57-23615.161.781.670.0321440.17
43294022099911047.378400.1868149.65-4565.6-21574.341.841.660.0331576.09
534015520910410549.768813.0689686.55-5489.55-22991.351.611.590.0291627.54
64087282091129753.598994.73112942-6171.97-29180.241.461.680.0311955.64
74606852091169355.59303.28109707-6650.49-38327.051.41.740.0352204.23
85125212091208957.429639.32101517-7238.17-31672.131.331.80.0392452.25
95932302091208957.4210396.02123761-7351.6-35509.821.411.910.0412838.42
107414252091228758.3711610.48117492-7759.24-41001.211.52.10.0493547.49
Although, strategy looks good but profit factor on day 1 is less than minimum accepted value so avoid this, see below for further analysis.
HDFCBANK Performance, X=10, Profit Factor:2.1

Yearwise Summary of trades in above chart

YearNumber of TradesTrade Dates
2019706 Feb 2019 (-0.67%), 07 Mar 2019 (7.04%), 02 May 2019 (-1.92%), 20 May 2019 (1.02%), 01 Jul 2019 (-3.65%), 09 Aug 2019 (-0.97%), 23 Sep 2019 (-2.31%)
20181015 Jan 2018 (5.15%), 27 Feb 2018 (-2.0%), 15 Mar 2018 (2.68%), 02 May 2018 (2.73%), 30 May 2018 (-0.83%), 25 Jun 2018 (1.47%), 28 Sep 2018 (0.1%), 15 Oct 2018 (-4.75%), 06 Nov 2018 (3.71%), 18 Dec 2018 (-0.33%)
2017821 Mar 2017 (-0.6%), 21 Apr 2017 (2.55%), 25 May 2017 (1.71%), 20 Jul 2017 (4.04%), 11 Sep 2017 (-1.29%), 13 Oct 2017 (-1.93%), 20 Nov 2017 (-0.22%), 15 Dec 2017 (-1.01%)
2016829 Jan 2016 (-7.47%), 01 Mar 2016 (4.7%), 18 Apr 2016 (2.78%), 26 May 2016 (-2.02%), 11 Jul 2016 (3.93%), 25 Aug 2016 (2.53%), 22 Sep 2016 (-1.91%), 06 Dec 2016 (-1.05%)
2015709 Jan 2015 (6.88%), 09 Apr 2015 (-4.7%), 14 May 2015 (3.87%), 19 Jun 2015 (4.25%), 11 Sep 2015 (5.37%), 27 Nov 2015 (-3.06%), 17 Dec 2015 (0.79%)
20141113 Jan 2014 (-3.51%), 12 Feb 2014 (4.95%), 09 May 2014 (4.34%), 03 Jun 2014 (2.69%), 17 Jun 2014 (-2.75%), 04 Jul 2014 (-2.82%), 24 Jul 2014 (-5.47%), 18 Aug 2014 (3.23%), 30 Sep 2014 (2.42%), 20 Oct 2014 (2.13%), 23 Dec 2014 (-1.54%)
2013811 Feb 2013 (-0.08%), 11 Mar 2013 (-7.0%), 02 Apr 2013 (5.31%), 16 May 2013 (0.33%), 01 Jul 2013 (3.99%), 26 Aug 2013 (4.37%), 09 Oct 2013 (3.1%), 02 Dec 2013 (3.49%)
2012702 Apr 2012 (1.76%), 03 May 2012 (-10.15%), 29 May 2012 (8.84%), 07 Aug 2012 (-0.4%), 14 Sep 2012 (1.65%), 29 Oct 2012 (1.67%), 12 Nov 2012 (4.48%)
2011909 Feb 2011 (4.54%), 25 Mar 2011 (3.86%), 20 May 2011 (1.77%), 27 Jun 2011 (4.48%), 18 Jul 2011 (-5.25%), 30 Aug 2011 (2.69%), 13 Oct 2011 (2.55%), 02 Dec 2011 (-12.88%), 23 Dec 2011 (3.6%)
2010907 Jan 2010 (-0.07%), 15 Feb 2010 (8.13%), 03 Jun 2010 (4.75%), 09 Jul 2010 (1.79%), 18 Aug 2010 (-1.95%), 09 Sep 2010 (11.15%), 04 Nov 2010 (-3.58%), 23 Nov 2010 (-0.85%), 28 Dec 2010 (-4.86%)
2009909 Feb 2009 (-7.06%), 17 Mar 2009 (17.54%), 04 May 2009 (14.9%), 18 May 2009 (4.03%), 11 Jun 2009 (-5.91%), 22 Jul 2009 (0.19%), 19 Aug 2009 (-0.76%), 09 Sep 2009 (10.05%), 11 Nov 2009 (3.85%)
2008711 Jan 2008 (-8.85%), 15 Feb 2008 (-6.75%), 25 Mar 2008 (-7.46%), 07 Jul 2008 (7.79%), 29 Aug 2008 (-5.74%), 04 Nov 2008 (-20.5%), 01 Dec 2008 (9.58%)
2007815 Jan 2007 (-1.41%), 12 Mar 2007 (2.44%), 09 Apr 2007 (1.61%), 16 May 2007 (6.63%), 02 Jul 2007 (6.11%), 28 Aug 2007 (3.23%), 16 Oct 2007 (7.48%), 04 Dec 2007 (-2.34%)
20061031 Jan 2006 (-2.45%), 03 Mar 2006 (0.77%), 31 Mar 2006 (9.59%), 19 Jun 2006 (8.1%), 26 Jul 2006 (3.55%), 01 Sep 2006 (0.19%), 27 Sep 2006 (6.66%), 30 Oct 2006 (2.57%), 13 Nov 2006 (5.22%), 29 Dec 2006 (2.44%)
20051019 Jan 2005 (9.3%), 07 Mar 2005 (-6.98%), 07 Apr 2005 (-4.08%), 25 Apr 2005 (0.05%), 17 May 2005 (0.51%), 30 Jun 2005 (1.44%), 26 Jul 2005 (-2.65%), 09 Sep 2005 (-0.9%), 09 Nov 2005 (9.37%), 14 Dec 2005 (3.63%)
20041216 Jan 2004 (-11.78%), 11 Feb 2004 (-2.5%), 01 Mar 2004 (-5.07%), 29 Mar 2004 (1.19%), 25 May 2004 (-1.31%), 08 Jun 2004 (3.11%), 21 Jul 2004 (-1.36%), 11 Aug 2004 (0.09%), 25 Aug 2004 (5.15%), 04 Oct 2004 (-1.72%), 01 Nov 2004 (14.84%), 24 Dec 2004 (-2.43%)
20031020 Jan 2003 (6.41%), 03 Feb 2003 (3.32%), 07 Apr 2003 (-3.62%), 16 May 2003 (-2.41%), 04 Jun 2003 (-0.1%), 01 Jul 2003 (6.01%), 06 Aug 2003 (4.07%), 01 Oct 2003 (10.77%), 03 Nov 2003 (-6.34%), 01 Dec 2003 (13.62%)
2002802 Jan 2002 (2.62%), 14 Feb 2002 (2.3%), 24 Apr 2002 (-1.36%), 09 May 2002 (-3.47%), 05 Jul 2002 (0.35%), 13 Aug 2002 (-0.78%), 07 Nov 2002 (0.31%), 13 Dec 2002 (5.6%)
2001709 Apr 2001 (5.5%), 07 May 2001 (-0.11%), 02 Jul 2001 (2.99%), 17 Aug 2001 (-1.82%), 28 Sep 2001 (4.97%), 15 Nov 2001 (1.72%), 07 Dec 2001 (-6.13%)
2000921 Jan 2000 (31.12%), 03 Mar 2000 (-6.35%), 25 Apr 2000 (13.73%), 06 Jun 2000 (4.09%), 08 Aug 2000 (-8.0%), 30 Aug 2000 (-1.44%), 29 Sep 2000 (1.11%), 11 Dec 2000 (-3.26%), 28 Dec 2000 (4.02%)
1999819 Feb 1999 (12.05%), 24 Mar 1999 (7.85%), 09 Jul 1999 (11.87%), 24 Aug 1999 (-2.04%), 07 Sep 1999 (4.83%), 30 Sep 1999 (-2.2%), 20 Oct 1999 (-9.86%), 26 Nov 1999 (58.75%)
1998921 Jan 1998 (-16.63%), 23 Feb 1998 (6.49%), 03 Apr 1998 (5.39%), 25 Jun 1998 (-1.96%), 09 Jul 1998 (5.32%), 12 Aug 1998 (-4.12%), 07 Sep 1998 (13.67%), 10 Nov 1998 (-4.55%), 02 Dec 1998 (-0.95%)
1997828 Jan 1997 (-4.21%), 01 Mar 1997 (-0.77%), 09 Apr 1997 (8.62%), 04 Jun 1997 (1.02%), 08 Jul 1997 (14.07%), 05 Sep 1997 (-1.64%), 29 Sep 1997 (16.8%), 08 Dec 1997 (6.87%)
1996702 Feb 1996 (16.12%), 29 Mar 1996 (5.55%), 03 Jun 1996 (12.17%), 07 Aug 1996 (-5.16%), 27 Aug 1996 (3.33%), 18 Oct 1996 (7.46%), 17 Dec 1996 (6.82%)
1995328 Sep 1995 (-6.04%), 01 Nov 1995 (-14.72%), 27 Nov 1995 (-1.67%)

Strategy Analysis - Exit Criteria

In the study above, exit criterion was that hold the position for "X" trading days. That's one possible exit criterion. However, we can have more elaborate exit criteria. Now we study this strategy under other exit criteria. There are 3 things which you must get to know before proceeding further. Table below shows the performance of this strategy under various exit combinations. Note that nil,nil,-1 is a special exit combination where we just take the best result of "X" Analysis study above.

Stop LossAdjust Stop LossTargetAvg Holding PeriodNet ProfitTotal TradesWinning TradesLosing Trades% ProfitableAvg Winning TradeMax Winning TradeAvg Losing TradeMax Losing TradeWin/Loss RatioProfit FactorSharpe RatioAvg Trade
atrtrail23.9627053125810115739.1510338.0737468.15-4927.48-16579.312.11.350.0251048.57
atrnil25.822790842459714839.5912714.5637468.15-6447.49-16579.311.971.290.0231139.12
atrtrail-15.132045042459315237.9610168.52100529-4876.11-16579.312.091.280.016834.71
atrtrail34.631974832479315437.6510229.8733828.3-4895.42-16579.312.091.260.018799.53
atrnil38.72095742256915630.6718037.5937180.17-6634.74-18734.082.721.20.016931.44

In the table above, row 1 shows the best exit criterion. Profit factor is 1.35. Strategy is showing mildly bullish results but we advice not to take a call solely on the basis of this study. Percentage of profitable trades is 39.15%, which is not acceptable. Avoid this strategy. Average return per trade is 0.52%, which is not very high, don't trade solely on the basis of this study. Sharpe Ratio is 0.025, which is low, don't trade solely on the basis of this study.
In the chart below, we plot cumulative trade gain versus trades using the best exit criterion.
HDFCBANK Performance, Profit Factor:1.35

Yearwise Summary of trades in above chart

YearNumber of TradesTrade Dates
2019806 Feb 2019 (-0.38%), 07 Mar 2019 (2.89%), 02 May 2019 (-1.01%), 20 May 2019 (-1.66%), 01 Jul 2019 (-1.1%), 09 Aug 2019 (-1.9%), 13 Aug 2019 (-1.59%), 23 Sep 2019 (-2.49%)
20181315 Jan 2018 (2.45%), 27 Feb 2018 (-1.53%), 15 Mar 2018 (-1.41%), 16 Mar 2018 (-0.59%), 02 May 2018 (-0.57%), 30 May 2018 (2.99%), 31 May 2018 (-1.7%), 25 Jun 2018 (0.24%), 05 Jul 2018 (3.03%), 28 Sep 2018 (-0.35%), 15 Oct 2018 (-2.13%), 06 Nov 2018 (-1.33%), 18 Dec 2018 (-1.6%)
20171021 Mar 2017 (-1.26%), 21 Apr 2017 (2.65%), 24 Apr 2017 (-1.11%), 25 May 2017 (2.8%), 20 Jul 2017 (2.53%), 11 Sep 2017 (0.79%), 13 Oct 2017 (-0.37%), 20 Nov 2017 (0.78%), 15 Dec 2017 (-1.37%), 18 Dec 2017 (-1.26%)
20161029 Jan 2016 (-1.04%), 01 Mar 2016 (0.96%), 18 Apr 2016 (3.28%), 26 May 2016 (-1.29%), 11 Jul 2016 (2.95%), 25 Aug 2016 (-1.27%), 31 Aug 2016 (-0.62%), 22 Sep 2016 (-0.84%), 06 Dec 2016 (-1.89%), 07 Dec 2016 (-0.5%)
2015709 Jan 2015 (-1.64%), 09 Apr 2015 (-2.02%), 14 May 2015 (4.34%), 19 Jun 2015 (3.72%), 11 Sep 2015 (4.6%), 27 Nov 2015 (-1.21%), 17 Dec 2015 (-0.51%)
20141413 Jan 2014 (-1.04%), 12 Feb 2014 (-2.14%), 17 Feb 2014 (0.83%), 09 May 2014 (4.14%), 12 May 2014 (-2.2%), 03 Jun 2014 (-0.01%), 04 Jul 2014 (-2.12%), 07 Jul 2014 (-2.22%), 24 Jul 2014 (-2.07%), 18 Aug 2014 (3.66%), 30 Sep 2014 (-1.82%), 20 Oct 2014 (0.39%), 23 Dec 2014 (-1.7%), 24 Dec 2014 (0.52%)
20131111 Feb 2013 (3.41%), 11 Mar 2013 (-1.96%), 12 Mar 2013 (-2.03%), 02 Apr 2013 (-2.47%), 16 May 2013 (-2.06%), 01 Jul 2013 (-2.56%), 26 Aug 2013 (-3.54%), 02 Sep 2013 (-4.27%), 05 Sep 2013 (9.19%), 09 Oct 2013 (-0.85%), 02 Dec 2013 (5.02%)
2012702 Apr 2012 (-2.26%), 03 May 2012 (-2.03%), 29 May 2012 (-2.26%), 07 Aug 2012 (-0.33%), 14 Sep 2012 (-1.52%), 29 Oct 2012 (-2.03%), 12 Nov 2012 (-1.68%)
20111009 Feb 2011 (6.7%), 25 Mar 2011 (4.94%), 20 May 2011 (-2.26%), 23 May 2011 (4.74%), 27 Jun 2011 (3.72%), 18 Jul 2011 (-1.88%), 30 Aug 2011 (0.12%), 13 Oct 2011 (1.53%), 02 Dec 2011 (-2.98%), 23 Dec 2011 (-2.23%)
20101107 Jan 2010 (-2.09%), 18 Jan 2010 (-1.62%), 15 Feb 2010 (5.49%), 03 Jun 2010 (-2.48%), 09 Jul 2010 (4.15%), 18 Aug 2010 (-0.2%), 09 Sep 2010 (3.9%), 04 Nov 2010 (-2.16%), 23 Nov 2010 (-2.82%), 02 Dec 2010 (-2.5%), 28 Dec 2010 (5.19%)
20091109 Feb 2009 (-1.3%), 17 Mar 2009 (9.16%), 04 May 2009 (-4.44%), 18 May 2009 (-5.2%), 19 May 2009 (-3.03%), 11 Jun 2009 (-4.14%), 22 Jul 2009 (-2.9%), 31 Jul 2009 (-3.61%), 19 Aug 2009 (-0.59%), 09 Sep 2009 (5.34%), 11 Nov 2009 (1.1%)
2008711 Jan 2008 (-2.3%), 15 Feb 2008 (-5.17%), 25 Mar 2008 (-4.02%), 07 Jul 2008 (0.28%), 29 Aug 2008 (-0.25%), 04 Nov 2008 (-8.29%), 01 Dec 2008 (18.73%)
20071015 Jan 2007 (-3.09%), 12 Mar 2007 (-3.65%), 20 Mar 2007 (2.75%), 09 Apr 2007 (-1.86%), 16 May 2007 (6.37%), 02 Jul 2007 (5.53%), 28 Aug 2007 (-0.63%), 16 Oct 2007 (-3.27%), 25 Oct 2007 (9.46%), 04 Dec 2007 (0.11%)
20061231 Jan 2006 (-3.01%), 01 Feb 2006 (1.05%), 03 Mar 2006 (-2.6%), 31 Mar 2006 (6.44%), 19 Jun 2006 (3.91%), 26 Jul 2006 (9.45%), 01 Sep 2006 (-2.16%), 27 Sep 2006 (5.1%), 28 Sep 2006 (-2.72%), 30 Oct 2006 (-3.21%), 13 Nov 2006 (5.44%), 29 Dec 2006 (-3.08%)
20051419 Jan 2005 (-3.57%), 20 Jan 2005 (-3.66%), 27 Jan 2005 (8.19%), 07 Mar 2005 (1.03%), 07 Apr 2005 (-3.6%), 08 Apr 2005 (-0.93%), 25 Apr 2005 (-2.3%), 17 May 2005 (-0.85%), 30 Jun 2005 (-2.93%), 01 Jul 2005 (-0.79%), 26 Jul 2005 (7.52%), 09 Sep 2005 (6.39%), 09 Nov 2005 (7.03%), 14 Dec 2005 (-2.59%)
20041316 Jan 2004 (-3.75%), 11 Feb 2004 (-2.59%), 01 Mar 2004 (-0.32%), 29 Mar 2004 (-3.75%), 30 Mar 2004 (7.72%), 25 May 2004 (-4.73%), 07 Jun 2004 (0.61%), 21 Jul 2004 (-1.24%), 11 Aug 2004 (-2.41%), 25 Aug 2004 (-1.11%), 04 Oct 2004 (-2.43%), 01 Nov 2004 (4.25%), 24 Dec 2004 (1.85%)
20031120 Jan 2003 (4.86%), 03 Feb 2003 (7.39%), 07 Apr 2003 (-3.59%), 16 May 2003 (-2.57%), 04 Jun 2003 (5.88%), 01 Jul 2003 (6.01%), 06 Aug 2003 (-3.7%), 19 Aug 2003 (-1.01%), 01 Oct 2003 (6.23%), 03 Nov 2003 (-3.23%), 01 Dec 2003 (6.2%)
20021002 Jan 2002 (5.73%), 14 Feb 2002 (5.56%), 24 Apr 2002 (-2.88%), 08 May 2002 (-1.85%), 05 Jul 2002 (-2.95%), 13 Aug 2002 (-1.92%), 19 Aug 2002 (-1.57%), 07 Nov 2002 (-0.55%), 13 Dec 2002 (5.16%), 16 Dec 2002 (5.51%)
2001809 Apr 2001 (8.5%), 07 May 2001 (-3.64%), 02 Jul 2001 (-3.64%), 11 Jul 2001 (6.46%), 17 Aug 2001 (-2.55%), 28 Sep 2001 (-5.05%), 15 Nov 2001 (0.94%), 07 Dec 2001 (-2.72%)
20001021 Jan 2000 (11.28%), 03 Mar 2000 (-5.96%), 06 Mar 2000 (-4.45%), 25 Apr 2000 (1.47%), 06 Jun 2000 (12.83%), 08 Aug 2000 (-5.54%), 30 Aug 2000 (-1.21%), 29 Sep 2000 (-2.42%), 11 Dec 2000 (6.72%), 28 Dec 2000 (6.67%)
19991619 Feb 1999 (-4.71%), 22 Feb 1999 (-4.97%), 03 Mar 1999 (9.84%), 24 Mar 1999 (10.68%), 09 Jul 1999 (7.29%), 12 Jul 1999 (7.37%), 24 Aug 1999 (-3.9%), 25 Aug 1999 (-3.52%), 07 Sep 1999 (7.94%), 08 Sep 1999 (7.88%), 30 Sep 1999 (-4.82%), 01 Oct 1999 (-5.14%), 12 Oct 1999 (-5.21%), 13 Oct 1999 (-3.93%), 26 Nov 1999 (7.84%), 29 Nov 1999 (7.8%)
19981121 Jan 1998 (-4.36%), 23 Feb 1998 (3.21%), 03 Apr 1998 (7.44%), 06 Apr 1998 (-3.86%), 25 Jun 1998 (0.74%), 09 Jul 1998 (10.54%), 12 Aug 1998 (-5.08%), 19 Aug 1998 (-4.63%), 07 Sep 1998 (8.33%), 10 Nov 1998 (-0.75%), 02 Dec 1998 (-4.01%)
19971228 Jan 1997 (-4.35%), 01 Mar 1997 (6.66%), 03 Mar 1997 (7.03%), 09 Apr 1997 (-3.78%), 10 Apr 1997 (-1.65%), 04 Jun 1997 (-0.77%), 08 Jul 1997 (5.06%), 09 Jul 1997 (5.33%), 05 Sep 1997 (-2.19%), 29 Sep 1997 (-2.78%), 30 Sep 1997 (-3.23%), 08 Dec 1997 (-3.56%)
1996902 Feb 1996 (7.44%), 12 Feb 1996 (-4.66%), 29 Mar 1996 (7.8%), 03 Jun 1996 (6.56%), 07 Aug 1996 (-3.74%), 27 Aug 1996 (-0.07%), 18 Oct 1996 (6.44%), 22 Oct 1996 (6.61%), 17 Dec 1996 (4.6%)
1995328 Sep 1995 (4.77%), 01 Nov 1995 (-2.97%), 27 Nov 1995 (-3.14%)



View performance of other stocks for this trading system.

Get Clearnifty's Android App.

Get clearnifty on Google Play
Get clearnifty on Google Play