Getting Error - no one of the overloads can be applied to the function call

 

I am getting the following error in the below code, request you to help plz, i want to delete the pending orders using the magic number


void DeleteAll()
{
   for(int ord=OrdersTotal()-1; ord>=0; ord--)
   if(orderInfo.SelectByIndex(ord) && OrderGetInteger(POSITION_MAGIC)==Magic){
         trade.OrderDelete(orderInfo.Ticket());
      }      
}
 
Sathish Justin:

I am getting the following error in the below code, request you to help plz, i want to delete the pending orders using the magic number

void DeleteAll()
{
   for(int ord=OrdersTotal()-1; ord>=0; ord--)
   if(orderInfo.SelectByIndex(ord) && OrderGetInteger(POSITION_MAGIC)==Magic){
         trade.OrderDelete(orderInfo.Ticket());
      }      
}

See what you are doing

 
Navdeep Singh #:

See what you are doing

Great!  Thanks Mr. Navdeep.