Spot price and strike selection

i want to make strategy by putting condition that trade should hapen only when
spot price of index and ATM strike Difference is between -20 to +20, if this condition
is met then buy OTM3 CE AND OTM3 PE on that spot price basIs