Download MetaTrader 5
To add comments, please log in or register
Find out the most discussed Forum topics. Have a look at the Wall section!
fulltilt
367
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
9451
Keith Watford 2015.01.31 12:23  
OrdersTotal() is all you need
whroeder1
14206
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