Is there Order filled event? or how to track order status?
Posted: Sep 20 2015
Hi I would like to, on the event of order filled, do something in the strategy.
So normally, after we send the order, how do we get the status of the order?
I checked, the IOrderObject has ID property, so I guess I can reference by ID in some way, but it does not have fill status.
The other way maybe try to reference by "Positions[0].OpenTrades[0].EntryOrder.BarNumber". But this is not totally safe.
Could you give some advice?
Thanks.
So normally, after we send the order, how do we get the status of the order?
I checked, the IOrderObject has ID property, so I guess I can reference by ID in some way, but it does not have fill status.
The other way maybe try to reference by "Positions[0].OpenTrades[0].EntryOrder.BarNumber". But this is not totally safe.
Could you give some advice?
Thanks.
Code: Select all
protected override void CalcBar(){
if(some conditions)
m_order_LE.Send();
}