Page 1 of 1

Is there Order filled event? or how to track order status?

Posted: Sep 20 2015
by gztanwei
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.

Code: Select all

protected override void CalcBar(){
if(some conditions)
m_order_LE.Send();
}

Re: Is there Order filled event? or how to track order statu

Posted: Sep 24 2015
by Henry MultiСharts
Hello gztanwei,

OnBrokerStrategyOrderFilled, OnBrokerPositionChange, market position, amount of contracts in the current position, collections of Open and Closed Trades are indirect methods of checking whether an order was filled or not.

If you want to check the status of a specific order (whether it is filled, pending, working, cancelled, etc.) - please refer to the following code sample.

We are going to improve the algorithms of order handling in backtesting and auto trading in the new Auto Trading and Backtesting engine that is coming in one of the future versions of MultiCharts. Please see the corresponding PM entry.

Re: Is there Order filled event? or how to track order status?

Posted: Nov 10 2017
by joenetic
Hi Henry,

Any update on the this issue?
"to improve the algorithms of order handling in backtesting and auto trading in the new Auto Trading and Backtesting engine "

Joe

Re: Is there Order filled event? or how to track order status?

Posted: Nov 20 2017
by Henry MultiСharts
Hello joenetic,

It is not assigned to any specific version yet.
As soon as more info is available – the corresponding PM entry will be updated:
http://www.multicharts.com/pm/viewissue ... no=MC-1497