Bhavesh Shah / Publications
Forum
how to count open orders and not include pending orders?
Dear how to count only open orders like OP_BUY and OP_SELL only. i like to compare order count and after i want to execute the program. i made the function as below. int totalordercount() { int total=0; for(int i=0;i<=OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); {