Need help in exit

When target or SL happens, a new position is taken immediately. How to avoid this. I want the next trade to happen only when the condition is true again.

Can someone help?!

check this thread:

What is your entry conditions? You need to modify it to stop take trade immediately after SL/TGT