统计所有类型的订单的货币对数量
- int cnt1=0;
- int TradesonSymbol=0;
- for(cnt1=0;cnt1<OrdersTotal();cnt1++)
- {
- OrderSelect(cnt1, SELECT_BY_POS, MODE_TRADES);
- if ((OrderType()==OP_SELLSTOP || OrderType()==OP_BUYSTOP ||
- OrderType()==OP_SELLLIMIT || OrderType()==OP_BUYLIMIT ||
- OrderType()==OP_BUY || OrderType()==OP_SELL) &&
- OrderSymbol()==Symbol()) { TradesonSymbol=TradesOnSymbol+1;}
- }
|