Is it possible to retrieve the (stop) price for a pending / non-filled STP order? I would like to do this without using static variables, if possible.
I can retrieve my pending order by using code like this:
pendingOrderId = StaticVarGetText("pendingOrderIdKey");
I can then check if my order is really pending:
If this condition is true, I would like to get the (stop) price of this order.
I need this because my strategy continuously adjusts the stop price based on some computation, and I only want to invoke ibc.ModifyOrder(…) if the newly computed price is different from the current one.
I saw in the doc that there is an IB controller method
GetExecInfo( string OrderId, , string Field)
but this seems to return a field for an order in the execution list. My order is not filled however, so it won’t show up in this list.
Any help is appreciated.