删除挂单
int DeleteSellPendingOrders(int Magic){
int total = OrdersTotal();
for (int cnt = total - 1; cnt >= 0; cnt--)
{
OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
if
(OrderMagicNumber()==Magic && OrderSymbol()==Symbol() &&
(OrderType()==OP_BUYSTOP || OrderType()==OP_BUYLIMIT || OrderType()==OP_SELLSTOP || OrderType()==OP_SELLLIMIT))
{
OrderDelete(OrderTicket());
}
}
return(0);
}
周总您好,我看您的帖子,试着加了个报警好像不行,能请您指导一下吗
页:
[1]