Thank you for your patience.
Form the Help Guide at the following link: http://ninjatrader.com/support/helpG...rderupdate.htm
The change is that you now have access to the direct order object and when it is updated. NinjaTrader internal Order objects have been exposed to the NinjaScript methods and events giving direct access to order related information. So you would need to ensure to assign the order object (Order) in OnOrderUpdate() as it would not exist immediately in OnBarUpdate() after calling your desired order entry method.
In NinjaTrader 7 we had access to IOrder objects, which were really a container holding the hypothetical information of the order until it was updated in OnOrderUpdate(). In NinjaTrader 8 this was removed to allow more accurate information on the order objects.
Leave a comment: