Is orderstotal() for the current symbol, or for all symbols?

 
If it is for all symbols is there a function that returns the total orders open for the current symbol?
 

Nvm I have found the function

 

SymbolInfoInteger(Symbol(),SYMBOL_SESSION_DEALS); 

 If anyone else is wondering.

 
MetaNt:

Nvm I have found the function. 

 

 If anyone else is wondering.

OrdersTotal( ) returns the total number of pending orders for all symbols.

If you want to individualize the amount of pending orders for the current symbol, you might use:

for(int i=0;i<OrdersTotal();i++)
  {
   if(OrderSelect(OrderGetTicket(i)) && OrderGetString(ORDER_SYMBOL)==_Symbol)
     {
      // Your logic here
     }
  }

If you want to retrieve the number of pending orders for another symbol, you can substitute _Symbol by the desired symbol name, for instance:

OrderGetString(ORDER_SYMBOL)=="AUDCAD"

I hope it helps you somehow.
Malacarne 

Reason: