Study: Buy GODREJCP when above 200 SMA and near 50 SMA and above 50 SMA and RSI is above 50 and ADX is Trending
home > technical-strategy > godrejcp > 24In this study, we evaluate the performance of strategy "Buy GODREJCP when above 200 SMA and near 50 SMA and above 50 SMA and RSI is above 50 and ADX is Trending" under various conditions.
X Analysis
In the table below, we find out the performance of this trading strategy under following scenario: buy GODREJCP 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 Days | Net Profit | Total Trades | Winning Trades | Losing Trades | % Profitable | Avg Winning Trade | Max Winning Trade | Avg Losing Trade | Max Losing Trade | Win/Loss Ratio | Profit Factor | Sharpe Ratio | Avg Trade |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 25000.15 | 10 | 7 | 3 | 70 | 3998 | 9359.94 | -995.29 | -2106.69 | 4.02 | 9.37 | 0.18 | 2500.02 |
2 | 49792.08 | 10 | 8 | 2 | 80 | 7049.64 | 27523.25 | -3302.53 | -6388.04 | 2.13 | 8.54 | 0.13 | 4979.21 |
3 | 51896.44 | 10 | 7 | 3 | 70 | 8280.26 | 33689.29 | -2021.8 | -4557.29 | 4.1 | 9.56 | 0.12 | 5189.64 |
4 | 39337.02 | 10 | 6 | 4 | 60 | 8057.19 | 23114.02 | -2251.52 | -3572.91 | 3.58 | 5.37 | 0.12 | 3933.7 |
5 | 21306.99 | 10 | 5 | 5 | 50 | 6649.29 | 17395.8 | -2387.89 | -3667.53 | 2.78 | 2.78 | 0.079 | 2130.7 |
6 | 31899.24 | 10 | 6 | 4 | 60 | 6663.18 | 15501.21 | -2019.97 | -3060.98 | 3.3 | 4.95 | 0.13 | 3189.92 |
7 | 27114.59 | 10 | 6 | 4 | 60 | 6253.3 | 17154.67 | -2601.3 | -4738.4 | 2.4 | 3.61 | 0.1 | 2711.46 |
8 | 20837.83 | 10 | 5 | 5 | 50 | 7703.72 | 25938.68 | -3536.16 | -8026.03 | 2.18 | 2.18 | 0.054 | 2083.78 |
9 | 26357.37 | 10 | 5 | 5 | 50 | 9087.72 | 30623.49 | -3816.25 | -12171.61 | 2.38 | 2.38 | 0.057 | 2635.74 |
10 | 28835.8 | 10 | 6 | 4 | 60 | 7249.93 | 26834.31 | -3665.95 | -10363.94 | 1.98 | 2.97 | 0.072 | 2883.58 |
From the table above, we see that best results are achieved by holding positions for 3 trading days. Profit factor is 9.56. Strategy is very good and impressively bullish. Percentage of profitable trades is 70%, which is good. Average return per trade is 2.59%, which is very good.
In the chart below, we plot cumulative trade gain versus trades. This chart is important and informative as it shows the performance of strategy over time.

Yearwise Summary of trades in above chart
Year | Number of Trades | Trade Dates |
---|---|---|
2013 | 1 | 25 Jan 2013 (-0.52%) |
2011 | 1 | 02 Nov 2011 (0.18%) |
2008 | 1 | 07 Aug 2008 (2.72%) |
2005 | 2 | 09 May 2005 (16.84%), 24 Oct 2005 (-2.28%) |
2004 | 1 | 09 Oct 2004 (-0.24%) |
2003 | 4 | 04 Feb 2003 (3.16%), 09 May 2003 (0.51%), 31 Oct 2003 (4.99%), 17 Nov 2003 (0.58%) |
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.- Stop Loss: When you enter a trade and the trade goes against you, a stop loss determines the maximum loss
you want to take in that trade and you will exit/cover/close positions at predetermined stop loss price.
There are many ways to determine a stop loss price, to analyse this strategy we use 4 following ways of
putting stop loss:
- atr: Fix the stop loss at average true range. If you are long i.e you have bought the stock/futures, use average true range lower band as stop loss and vice-versa if we had sold short.
- nil: No stop loss. We don't exit positions unless we reach the target or predetermined number of trading days have passed.
- 200: This is a special stop loss for strategies designed using 200 Simple Moving Average. If we are long, we set the stop loss at 1 percent below 200SMA and vice-versa.
- 50: This is a special stop loss for strategies developed using 50 Simple Moving Average.
- Adjusting Stop Loss: After entering a trade and calculating a stop loss, we can adjust stop loss
daily to make sure that we get partial returns even if price goes against us after moving in a favorable
direction initially. In the backtesting below, we use 2 adjustment techniques:
- trail: It is a widely used technique. It means that if stock has moved in a favorable direction, we also adjust/move stop loss in the favorable direction. For example, if we are long NIFTY futures, and NIFTY has moved up 2 percent today, then we also move up the stop loss. Important thing to note here is that stop loss never goes down when we are long and it never goes up when we are short.
- nil: No adjustment of stop loss on daily basis. Use the stop loss which was determined while entering the trade, if any.
- Target Price: When entering a trade, we can also define a target price. In the backtesting, we have used following
3 cases:
- 2: Target price is set such that reward to risk ratio is 2. That means we are taking x rupees of loss then we are setting target such that profit should be as low as 2x.
- 2: Target price is set such that reward to risk ratio is 3.
- -1: This means that we don't set any stop target price. Exit positions only if stop loss gets hit or predetermined number of trading days have passed
Stop Loss | Adjust Stop Loss | Target | Avg Holding Period | Net Profit | Total Trades | Winning Trades | Losing Trades | % Profitable | Avg Winning Trade | Max Winning Trade | Avg Losing Trade | Max Losing Trade | Win/Loss Ratio | Profit Factor | Sharpe Ratio | Avg Trade |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nil | nil | -1 | 3 | 51896.44 | 10 | 7 | 3 | 70 | 8280.26 | 33689.29 | -2021.8 | -4557.29 | 4.1 | 9.56 | 0.12 | 5189.64 |
atr | trail | 3 | 6.77 | 15850.62 | 13 | 4 | 9 | 30.77 | 13792.27 | 23644.15 | -4368.72 | -8011.83 | 3.16 | 1.4 | 0.027 | 1219.28 |
atr | trail | 2 | 6.08 | 8317.33 | 13 | 4 | 9 | 30.77 | 11908.95 | 15762.77 | -4368.72 | -8011.83 | 2.73 | 1.21 | 0.017 | 639.79 |
atr | trail | -1 | 7.15 | 7565.45 | 13 | 4 | 9 | 30.77 | 11720.98 | 22883.45 | -4368.72 | -8011.83 | 2.68 | 1.19 | 0.015 | 581.96 |
atr | nil | 3 | 8.15 | 496.94 | 13 | 3 | 10 | 23.08 | 23485.81 | 23644.15 | -6996.05 | -8630.51 | 3.36 | 1.01 | 0.00068 | 38.23 |
50 | nil | 3 | 2.78 | -1419.15 | 18 | 5 | 13 | 27.78 | 8582.52 | 10255.17 | -3410.13 | -3994.21 | 2.52 | 0.97 | -0.0033 | -78.84 |
50 | nil | 2 | 2.33 | -6163.62 | 18 | 6 | 12 | 33.33 | 5830.26 | 6836.78 | -3428.76 | -3994.21 | 1.7 | 0.85 | -0.018 | -342.42 |
50 | trail | -1 | 2.6 | -10534.72 | 20 | 4 | 16 | 20 | 7765.87 | 28828.8 | -2599.89 | -3994.21 | 2.99 | 0.75 | -0.017 | -526.74 |
50 | trail | 2 | 2 | -12715.16 | 20 | 5 | 15 | 25 | 5628.95 | 6776.44 | -2723.99 | -3994.21 | 2.07 | 0.69 | -0.039 | -635.76 |
atr | nil | 2 | 7 | -22988.87 | 13 | 3 | 10 | 23.08 | 15657.2 | 15762.77 | -6996.05 | -8630.51 | 2.24 | 0.67 | -0.042 | -1768.37 |
50 | trail | 3 | 2.2 | -15544.03 | 20 | 4 | 16 | 20 | 6513.55 | 10164.66 | -2599.89 | -3994.21 | 2.51 | 0.63 | -0.043 | -777.2 |
In the table above, row 1 shows the best exit criterion. Profit factor is 9.56. Strategy is very good and impressively bullish. Percentage of profitable trades is 70%, which is good. Average return per trade is 2.59%, which is very good.
Performance of strategy chart over time is same as above.
View performance of other stocks for this trading system.