Download MetaTrader 5

all open orders - OrdersTotal()

To add comments, please log in or register
Do you want to deposit to your account? Do this in any convenient way!
fulltilt
372
fulltilt 2015.01.31 12:13 

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
9604
Keith Watford 2015.01.31 12:23  
OrdersTotal() is all you need
whroeder1
14477
whroeder1 2015.01.31 15:35  
 Simplify
bool countok = false;

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

To add comments, please log in or register