Download MetaTrader 5
To add comments, please log in or register
Write articles and earn money. We pay 200 USD for them!
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
7979
Keith Watford 2015.01.31 12:23  
OrdersTotal() is all you need
whroeder1
13640
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