Study: Buy HDFC when there is bullish divergence in RSI

home > technical-strategy > hdfc > 45

In this study, we evaluate the performance of strategy "Buy HDFC when there is bullish divergence in RSI" under various conditions.

X Analysis

In the table below, we find out the performance of this trading strategy under following scenario: buy HDFC 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
1-4591.65422502719.214030.62-5015.04-9996.460.540.54-0.045-1147.91
2-17590.14422501259.41815.43-10054.47-19496.860.130.13-0.1-4397.53
3-26877.12422502603.042840.81-16041.6-24187.260.160.16-0.13-6719.28
4-31460.44413252075.652075.65-11178.7-16863.050.190.062-0.2-7865.11
5-5310.12422504176.634353.67-6831.69-7498.090.610.61-0.05-1327.53
63509.98431754958.349564.63-11365.05-11365.050.441.310.024877.49
721820.85431759956.1711548.16-8047.66-8047.661.243.710.145455.21
832038.284317511627.2518546.29-2843.48-2843.484.0912.270.228009.57
930284.534317512096.7915078.16-6005.85-6005.852.016.040.197571.13
1026712.064317510970.9315447.97-6200.73-6200.731.775.310.176678.02
Although, strategy looks good but profit factor on day 4 is less than minimum accepted value so avoid this, see below for further analysis.
HDFC Performance, X=8, Profit Factor:12.3

Yearwise Summary of trades in above chart

YearNumber of TradesTrade Dates
2003121 Apr 2003 (9.27%)
2002129 May 2002 (4.66%)
1997113 Nov 1997 (3.5%)
1996104 Oct 1996 (-1.42%)

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
atrtrail-12.86-3488.9871614.2928398.5228398.52-5314.58-8212.865.340.89-0.0087-498.43
atrtrail32.29-4808.9471614.2927078.5627078.56-5314.58-8212.865.10.85-0.012-686.99
atrnil32.29-12932.971614.2927078.5627078.56-6668.58-8212.864.060.68-0.033-1847.56
atrtrail22.14-13835.1271614.2918052.3818052.38-5314.58-8212.863.40.57-0.049-1976.45
atrnil22.14-21959.0971614.2918052.3818052.38-6668.58-8212.862.710.45-0.075-3137.01

In the table above, row 1 shows the best exit criterion. Profit factor is 0.89. Number of signals (total trades) generated is low, don't trade solely on the basis of this study. Profit factor is showing that this strategy doesn't give any edge over rendomness and it is only as good as tossing a coin and doing the trade. Percentage of profitable trades is 14.29%, which is not acceptable. Avoid this strategy. Average return per trade is -0.25%, we advise you not to use this strategy.
In the chart below, we plot cumulative trade gain versus trades using the best exit criterion.
HDFC Performance, Profit Factor:0.891

Yearwise Summary of trades in above chart

YearNumber of TradesTrade Dates
2003321 Apr 2003 (-2.98%), 24 Apr 2003 (-4.11%), 25 Apr 2003 (14.2%)
2002229 May 2002 (-2.81%), 30 May 2002 (-1.62%)
1997113 Nov 1997 (-0.93%)
1996104 Oct 1996 (-3.5%)



View performance of other stocks for this trading system.

Get Clearnifty's Android App.

Get clearnifty on Google Play
Get clearnifty on Google Play