all open orders - OrdersTotal()

 

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

can I use simply?

bool countok = false;

if (OrdersTotal() <= 3 )
{ countok = true;}
 
OrdersTotal() is all you need
 
 Simplify
bool countok = false;

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

Reason: