Want to find an alternative to using OrdersTotal() in MT4.
Need to count open orders only. Not pending orders. Don't want to use (OrderType == OP_BUY) since it requires use of OrderSelect. Want a simple one command function to do this that can be used globally in all functions within EA.
Is there any alternative?
Note to the makers of MT4: OrdersOpenTotal() and OrdersPendingTotal() would be nice.
Need to count open orders only. Not pending orders. Don't want to use (OrderType == OP_BUY) since it requires use of OrderSelect. Want a simple one command function to do this that can be used globally in all functions within EA.
Is there any alternative?
Note to the makers of MT4: OrdersOpenTotal() and OrdersPendingTotal() would be nice.