Need help in improvement of EA WHICH WORKS! - page 2

 
So, how to change that?
 

The return() is like a barrier that prevents the code from proceeding any further. Like any barrier, if you don't want it there, you remove it.

Just be sure that you fully understand the logic of the code and that removing the barrier won't cause further problems.

In this case, it appears that the code is (poorly) constructed to only have 1 open order at a time