I have a problem with inquire the avgprice in that moment when I open an order. I'd like to use the avgprice to the stopprice immediatly after opening an order at one tick. My problem is, the avgprice will update, at the next tick, not at the moment of an open. I tried it inquire using IPosition, IOrder, and IExecution methods, but all of them will update at the next tick. Could you send me the right solution how can I reach it immediatelly in OnBarUpdate()?
thanks Ron
Comment