Study: Buy ABIRLANUVO when near 200 SMA and above 200 SMA and RSI is above 50

In this study, we evaluate the performance of strategy "Buy ABIRLANUVO when near 200 SMA and above 200 SMA and RSI is above 50" under various conditions.

X Analysis

In the table below, we find out the performance of this trading strategy under following scenario:
buy ABIRLANUVO 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

13505.14

10

7

3

70

4022.91

15525.43

-4885.07

-10024.91

0.82

1.92

0.065

1350.51

2

15480.29

10

5

5

50

7054.95

13373.39

-3958.89

-8521.74

1.78

1.78

0.069

1548.03

3

24097.11

10

6

4

60

7449.45

13303.52

-5149.9

-8565.22

1.45

2.17

0.1

2409.71

4

43412.61

10

6

4

60

10814.64

19927.33

-5368.81

-7413.64

2.01

3.02

0.15

4341.26

5

46676.19

10

6

4

60

12024.94

19172.72

-6368.37

-14122.04

1.89

2.83

0.14

4667.62

6

71739.09

10

6

4

60

15921.79

43418.11

-5947.92

-11008.72

2.68

4.02

0.14

7173.91

7

80489.94

10

7

3

70

13746.86

41866.96

-5246.03

-7222.91

2.62

6.11

0.17

8048.99

8

109450

10

7

3

70

17228.94

59768.03

-3717.55

-4614

4.63

10.81

0.18

10944.99

9

125583

10

7

3

70

19357.83

68753.49

-3307.11

-3504.35

5.85

13.66

0.19

12558.35

10

118899

10

8

2

80

16705.11

64337.62

-7371.15

-7469.57

2.27

9.07

0.18

11889.86

From the table above, we see that best results are achieved by holding positions for 9 trading days. Profit factor is 13.66. Strategy is very good and impressively bullish. Percentage of profitable trades is 70%, which is good. Average return per trade is 6.28%, 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.

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

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 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

9

125583

10

7

3

70

19357.83

68753.49

-3307.11

-3504.35

5.85

13.66

0.19

12558.35

atr

trail

3

6.4

81369.49

10

6

4

60

15534.15

48972.15

-2958.85

-6087.88

5.25

7.88

0.16

8136.95

atr

trail

2

4.4

77775.43

10

6

4

60

14935.14

32648.1

-2958.85

-6087.88

5.05

7.57

0.22

7777.54

atr

trail

-1

7.9

53980.21

10

6

4

60

10969.27

25852.22

-2958.85

-6087.88

3.71

5.56

0.17

5398.02

atr

nil

3

7.89

93071.23

9

5

4

55.56

23297.23

48972.15

-5853.73

-7022.44

3.98

4.97

0.18

10341.25

200

trail

-1

3.91

45406.91

11

5

6

45.45

12186.31

35187.26

-2587.44

-3501.25

4.71

3.92

0.11

4127.9

atr

nil

2

4.6

66195.91

10

6

4

60

14935.14

32648.1

-5853.73

-7022.44

2.55

3.83

0.17

6619.59

200

nil

2

2.4

27464.57

10

6

4

60

6472.71

7971.85

-2842.92

-3501.25

2.28

3.42

0.18

2746.46

200

trail

2

2.18

23130.59

11

6

5

54.55

6138.94

7971.85

-2740.61

-3501.25

2.24

2.69

0.14

2102.78

200

trail

3

2.45

24247.11

11

5

6

45.45

7954.35

11957.78

-2587.44

-3501.25

3.07

2.56

0.11

2204.28

200

nil

3

3.6

24916.64

10

4

6

40

10444.96

11957.78

-2810.53

-3501.25

3.72

2.48

0.11

2491.66

In the table above, row 1 shows the best exit criterion. Profit factor is 13.66. Strategy is very good and impressively bullish. Percentage of profitable trades is 70%, which is good. Average return per trade is 6.28%, which is very good.Performance of strategy chart over time is same as above.