Strategy Premise:
The strategy works on the Support and Resistance . The user specifies the trigger price and the strategy will open trades as soon as the market closes after crossing the trigger price. The stoploss and target is compulsory and the trades will close if either the target or stoploss is hit or Intraday end session is reached in case of MIS (Intraday settings) or expiry is reached .
If the positional settings (NRML) has been chosen then the trades will close when either stoploss or target hits or expiry is reached
==========Consecutive trades==========
The strategy takes a long entry on call long put short setting and a short position on put long and call short settings so call long and put short entries can be taken one after another without the need of closing the one of them. Similarly put long and call short can be taken one after another.
But put long and call short can not be taken one after another with both the trades open because on tradingview closes the previous long or short when we take short or long respectively. Similarly call long and put short can not be taken one after another with both the trades open
Create Alert
Simply copy the text written in Alert Message field on the top of input section and replace everything in the message box of the alert with this text
Strategy Parameters
1. Alert Message : Copy the string in the input field and replace with the text in the message box of the alert to get the automated trades
2. Use Backtesting : Check this box to use the backtesting parameters . The backtesting parameters will only show trades between the specified intervals
3. Starting Date and Time : The strategy will only place trades after this time according to logic
4. Ending Date and Time : The strategy willonly place trades before this time according to logic
5. Segment Type : Choose the segment type . MIS is Intraday and NRML is normal cash and carry/Positional
6. Start Session : This is the session in which the strategy will take entry according to logic every day . This parameter works only with MIS and not NRML
7. Ending Session : This is the session which will square off all the open trades . This parameter works only with MIS and not NRML
8. Long : Check this box for Long/Buy Positions
9. Long Price : This is the trigger price , the strategy will Long/Buy when the price closes after crossing this line.
10. Call or Put on Long : Choose whether you want to Long/Buy Call or Put
11. Stoploss and Target type for Long : Choose from the given types
12. Long Target : specify the target
13. Stoploss Value for Long : Specify the stoploss value
14. Use TSL : Check this to use trailing stoploss
15. ATR settings : Set the atr settings to use atr based stoploss
16. Short : Check this to Short/Sell
17. Short Price : This is the trigger price , the strategy will Long/Buy when the price closes after crossing this line.
18. Call or Put on Short: Choose whether you want to Long/Buy Call or Put
19. Stoploss and Target type for Short: Choose from the given types
20. Short Target : specify the target
21. Stoploss Value for Short: Specify the stoploss value
22. Use TSL : Check this to use trailing stoploss
23. ATR settings : Set the atr settings to use atr based stoploss
24. Instrument Type : Choose the option type
25. Expiry Settings : Configure the expiry date . the strategy will not take entry after expiry
26. Symbol : Specify Symbol name if want to trade in symbol other than current chart symbol
27. Strike Type/Money Type : select the money type
28. Strike Difference : Enter the difference between the two consecutive strikes of the choosen asset
29. Strike Distance from ATM : Enter the distance of strike from ATM which you want to buy in any strike type/money type . If zero has been choosen in case of OTM/ ITM then the strike dif will used as default
30. Quantity : Specify the number of lots you want to trade
31. Strategy Tag : Specify the strategy tag you wan to use with APIBRIDGE . If left blank it will trade in the strategy tag fed in the APIBRIDGE