Code required for Option trading with Nifty future levels

Hi, I am not a coder so just asking a code for my strategy. I want a code that executes:

whenever the nifty future touches a specific point (x) i want to buy/sell a particular Nifty call/put option (y) at market price

Please help me out

Thanks in Advance!

-Satish

you can use price alert indicator and specify nifty price and you will get alert once the price touches

https://zerodha.com/expert-advisors/code/price-alert-indicator

but it can not be coded for buy with respect to nifty call/put   as both are different scripts

Can it be done by this way…

  1. Will draw support & resistance line on Nifty future chart

  2. When resistance line crossed then but ITM call & vice versa when support line breaks.