help need

 

pls i have an EA that open buy and sell at thesame time i want it to be be closing the whole open order if the profit it make is more than the initial open balance and before it re open another one. Kindly help with the code thanks.

Reason: