Skip to main content
Question
F&O
Asked a question 2 years ago

Hi, My entry order message is now - TYPE: LE, SYMBOL: BANKNIFTYCALL. Sometimes I need to exit the trade when it hits the SL or Target, sometimes I need to close the existing position and buy a BANKNIFTYPUT, What is the code for exiting the CALL option and buying a new PUT option? Can anyone help?

Join FYERS Community to pick others' brains on Trading/Investing

Hi Geevar, you need to write the below code for your logic:

Symbol: NIFTYCALL                                                                                                                                 TYPE: LX

Symbol: NIFTYPUT                                                                                                                              TYPE: LE

For more info, plz check the below link:-                                               https://mycoder.pro/apibridge/how-to-set-powerful-algo-alerts-in-tradingview/180

For your references, going forward you can drop a mail to "support@fyers.in49" or can visit our Support portal for such queries.

 

 

Related Questions