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/109
For your references, going forward you can drop a mail to "email@example.com" or can visit our Support portal for such queries.