Old trades get closed when the EA is reloaded or if the MT4/5 is restarted
-
It is possible to avoid the EA from closing older trades when the EA is reloaded or refreshed.
It happens every time, What I mean is can the EA be made to Recognize the trades already opened and continue trading when there are trades opened by the same EA with the same Magic number? -
@nesmill Yes, it is possible, but that depends on the current structure used to close those trades. In general you can use this:

-
Thank you, I just had to use it above the whole closing structure and it worked.
-
You're welcome.