PDA

View Full Version : OnExecution Ref Sample Not Working


mjuviler
05-13-2008, 09:27 AM
Josh,
The Sample for OnExcution and my own strategy code as well does not place stop and target orders (in Replay) because the "entryorder IORDER" object is always null when OnExecution is called, so that the code to place stops and targets is never executed.
Not Sure how the OnExecution method would ever be helpful if the entryorder object is null when it is called. Is this just an issue with Replay?
I am stuck here, any help would be greatly apprciated.

Mark

NinjaTrader_Ray
05-13-2008, 09:44 AM
Will check it out.

mjuviler
05-13-2008, 11:42 AM
Thanks Ray

This happens with OnOrderUpdate as well in Replay.

BTW I test all my strategies using Replay so I can see how the orders move around in the trade, which you can't see when you just apply to a chart historically.

I have a live system who's orders are not behaving properly that is why I am trying to get this to work and why I need the replay to do it.

Thanks again........

Mark

NinjaTrader_Josh
05-14-2008, 02:13 AM
Just keeping you posted, we are investigating at the moment.

mjuviler
05-14-2008, 06:51 AM
Thanks Josh, I am waiting for a solution, I'll keep checking back.

Thanks again....

Mark

mjuviler
05-15-2008, 08:03 AM
Any update on this issue.

I have a strategy that is live and trading real money. It is predicated on the OnOrderUpdate() and OnExecution() working properly.

I have been trying to code a fix, but can't make progress because of the issues outlined in this thread.

Thanks for your attention to this matter.....

Mark

NinjaTrader_Dierk
05-15-2008, 08:06 AM
We're looking into that one and will report back shortly.

mjuviler
05-19-2008, 07:35 AM
Guys,

Any update on this issue?

Thanks....

Mark

NinjaTrader_Dierk
05-19-2008, 07:37 AM
Yep, the problem is an NT internal race condition which was exposed on market replay. This will be resolved by a fix available with next update (latest early June). Thanks for reporting that issue.