i do not know what is the mean? if (OrderType()>1)

 
total = OrdersTotal();
for(i = 0; i <= total; i++)
{
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if(OrderMagicNumber() == 12321)
{
if (OrderType()==OP_BUY)OrderClose(OrderTicket(),OrderLots(),Bid,3,Green);
if (OrderType()==OP_SELL)OrderClose(OrderTicket(),OrderLots(),Ask,3,Green);
if (OrderType()>1)OrderDelete(OrderTicket()); ????
}
}
 
MT4 has the list of constants:
OP_BUY=0;
OP_SELL=1;
OP_BUYLIMIT=2;
OP_SELLLIMIT=3; etc
so (OrderType()>1) means all pending orders.