Total pending orders placed by the EA
Buba Akhrakhadze:
Hello everyone,
I am trying to count pending orders placed by an EA. There is a very odd result -134545644 or so. This function runs in OnTick() function. Can someone help to get the correct result? I've included the code below. Thanks!
You should set expertOrders to zero before you count.
Else it might have anything in it stored.
for(int i = 0; i <= ordersTotal - 1; i++){
If there are n orders, their indexes are [0 … n-1].
Hello everyone,
I am trying to count pending orders placed by an EA. There is a very odd result -134545644 or so. This function runs in OnTick() function. Can someone help to get the correct result? I've included the code below. Thanks!