Is it possible to automate options selling ?

I want to make a strategy selling nifty/Banknifty strangle or stradle everyday @10.30 and close position @12.30. what’s the best way to automate this? Also is it possible to put a SL on Mtm?