- for(int aa = OrdersTotal() - 1 ; aa >= 0 ; aa=aa - 1)
- {
- if(OrderSelect(aa,SELECT_BY_POS,MODE_TRADES) && OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNum && OrderType() > 1 && (TimeCurrent()-OrderOpenTime()) > PendingExpiration*60 )
- bool OD = OrderDelete(OrderTicket(),Blue);
- }
复制代码
|