Re-entry thrice after SL is hit

My strategy basically sells CE and PE at 9:30 AM and I have target profit conditions and SL conditions set with repair continously but I want my strategy to re-enter after SL hit at current ATM only thrice. how to do it?