Comment on Basics on Options Shorting/Writing
Setting trigger like what you said, take an option strategy if Nifty trades at a price, it is little tricky, mainly because of the regulations. Exchange would consider that as an algo, which is not allowed for retail.