After submitting a buy-limit, or sell-limit order, the documentation suggests you can check the number of open buy/sell orders (including limit orders).
However using either the below approaches.
CSymbolInfo symbol; symbol.SessionSellOrders();
For example, to only have 1 open SellLimit order....
if (o_symbol.SessionSellOrders()>=1)) print "sell order open already";
if (SymbolInfoInteger(_Symbol,SYMBOL_SESSION_SELL_ORDERS)>=1) print "sell order open already";
After submitting a not yet dealt (but submitted) trade such as:
I've confirmed this doesn't appear to work properly.
This does seem to be new functionality, any advice on this?
I had assumed that SymbolInfoInteger(SYMBOL_SESSION_BUY_ORDERS) would tell you how many buy orders you have open, but it does not do this.