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.
Hi,
I'm testing an EA on Strategy Tester with the debugging mode on MT5.
I put a break point somewhere and wait for it to trigger.
Then, I store the value of PositionsTotal() on a variable to debug it.
While on my trading tab, I can see two open positions, the PositionsTotal() is returning only one.
What's wrong?
These are the positions open at the time of the break point is reached.
It's only detecting the position with ticket 6.
Who can help?