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

Questions about MultiCharts .NET and user contributed studies.
gztanwei
Posts: 32
Joined: 15 Aug 2015
Has thanked: 6 times
Been thanked: 5 times

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

Postby gztanwei » 20 Sep 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.

Code: Select all

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

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

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

Postby Henry MultiСharts » 24 Sep 2015

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.

joenetic
Posts: 30
Joined: 13 Jun 2013

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

Postby joenetic » 10 Nov 2017

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

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

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

Postby Henry MultiСharts » 20 Nov 2017

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


Return to “MultiCharts .NET”