int NumberTrades() { int nTrades; nTrades = 0; for(int i=0;i<OrdersTotal(); i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if(OrderSymbol()==Symbol() && OrderComment()==Name_Expert) nTrades++; } return (nTrades); }
Tidak ada komentar:
Posting Komentar