OrdersTotal() then check each order's type (BUY,SELL, Buylimit....)
int total=OrdersTotal();
for(int pos=0;pos<total;pos++)
{
if(OrderSelect(pos,SELECT_BY_POS)==false) continue;
if (OrderType()==OP_BUY )
......................................
}
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Using OrdersTotal() returns the total number of orders including any pending orders - how do I test if I have any open market order in progress rather than pending orders?