Close last order
- luisneves: I pretend to close the last order maintaining the first order in place.In the USA you must close the oldest order first do to FIFO rules and hedging is not allowed.
GetLastError();This does nothing. Check your return codes and find out why. What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Hi all,
I pretend to close the last order maintaining the first order in place.
The ea is working fine to the moment that an opposite order is in place, but when I try to close the last order regarding it bounces back and passes the line of the indicator that do not happen.
Is that possible for you to support me on this issue?
Best regards
Luis Neves