I have created a small EA which has manage to successfully sends a pair of buy/sell stop orders correctly. Now, if any of them gets triggered, the other pending order is deleted.
I use the above commands, but they are not working. PositionsTotal() keeps giving me zero, and positionSelect() keeps returning false, even when pending orders are triggered. Whats wrong with my code:
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I have created a small EA which has manage to successfully sends a pair of buy/sell stop orders correctly. Now, if any of them gets triggered, the other pending order is deleted.
I use the above commands, but they are not working. PositionsTotal() keeps giving me zero, and positionSelect() keeps returning false, even when pending orders are triggered. Whats wrong with my code: