Download MetaTrader 5

all open orders - OrdersTotal()

To add comments, please log in or register
fulltilt
384
fulltilt  

i need to count the total open orders by all charts ...

can I use simply?

bool countok = false;

if (OrdersTotal() <= 3 )
{ countok = true;}
Keith Watford
Moderator
10614
Keith Watford  
OrdersTotal() is all you need
whroeder1
16096
whroeder1  
 Simplify
bool countok = false;

if (OrdersTotal() <= 3 )
{ countok = true;}
bool countok = OrdersTotal() <= 3;

To add comments, please log in or register