Sellinf od straddle at atm( n recording nifty spot)

i want to sell STRADDLE at ATM at specified time and Based on movement of Nifty in Points ( At the time of selling and user defined price want to book SL etc) pl help code.
Eg : Nifty straddle is Sold at 9:30 AM and NIFTY spot was 14200 at that time , the User enters 100 points that implies if the Nifty Moves up 100 Points Call will be squared off and put will be squared off when Nifty Spot is 14100.