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
To add comments, please log in or register