PDA

View Full Version : callback functions on orders execution


bbarroux
10-03-2007, 10:08 AM
Hi,
is there callback functions which might be called when enter orders are filled or when exit orders (stoploss or stopprofit) are triggered and/or filled? (having browsed the entire documentation, i guess the answer is no, but I ask anyway in case I would have missed sthg, or in case anyone would have the kindness of providing guidelines of what may be a workaround).

Thanks in advance,
B.

NinjaTrader_Ray
10-03-2007, 10:12 AM
This is not supported in the current production release (6.XXX) of NinjaTrader. This *will* be supported with our next major release (6.5) due out in production this fall.

bbarroux
10-03-2007, 10:18 AM
Thank you Ray,
Ok, I'll wait til Fall then. If it's always that quick, i won't hesitate asking for more new features ;)

Seriously, I guess the workarounds involve dealing with class variables, Positions, avgPrice, MarketPosition and that sort of things, am I correct?

NinjaTrader_Ray
10-03-2007, 10:51 AM
There are many things that need to be done internally to properly support this functionality withing the scope of the NinjaScript layer. Not too mention our ability to be able to provide technical support at this level.

alex.nt
12-04-2011, 12:58 AM
There are many things that need to be done internally to properly support this functionality withing the scope of the NinjaScript layer. Not too mention our ability to be able to provide technical support at this level.

Any news on that?

Is it possible to get events for order update?

alex.nt
12-04-2011, 01:03 AM
Ah, found the one:
protected override void OnOrderUpdate(IOrder order)

bukkan
12-04-2011, 02:46 AM
you might be also interested in OnExecution, OnPositionUpdate