why it says wrong parameters count?

 
bool PosOrdCheck(const ENUM_ORDER_TYPE OrderType)
  {
   for(int i = OrdersTotal()-1; i>=0; i--)
     {
      if(OrderSelect((OrderGetTicket(i))))
         if(OrderGetString(ORDER_SYMBOL) == _Symbol)
            return false;
     }

   for(int i = PositionsTotal()-1; i>=0; i--)
     {
      if(PositionSelectByTicket((PositionGetTicket(i))))
         if(PositionGetString(POSITION_SYMBOL) == _Symbol)
            return false;
     }
   return true;
  }

why?

 
ziyang2048:

why

check and show the line where you are calling this function

 
And why are you requiring an OrderType when you do not use that variable?