I want to get the amount of open trades in MQL5
on a demo account during strategy testing.
PositionsTotal()
and OrdersTotal()
always return 0
even if there are open trades.
The solution suggested here does not work.
Any help will be appreciated.