Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT 8 OnOrderUpdate and OnExecutionUpdate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NT 8 OnOrderUpdate and OnExecutionUpdate

    I would like a clear and unambiguous explanation of the circumstances that trigger these two events.

    From the OnOrderUpdate documentation, this appears:
    Critical: If you want to drive your strategy logic based on order fills you must use OnExecutionUpdate() instead of OnOrderUpdate(). OnExecutionUpdate() is always triggered after OnOrderUpdate(). There is internal strategy logic that is triggered after OnOrderUpdate() is called but before OnExecutionUpdate() that can adversely affect your strategy if you are relying on tracking fills within OnOrderUpdate().


    What "adverse" actions could change once an Order state is filled in OnOrderUpdate??

    Empirically (from the Log) I see that an order submitted by a strategy to, say, open a Long ES position for two contracts causes TWO OnExecutionUpdates after a series of OnOrderUpdates (if I can believe that things are logged in the order they actually occur), and the ExecutionOrder.Order.OrderState for BOTH OnExecutionUpdate events is OrderState.Filled, even though at the strategy level only ONE order was submitted. If the top level order has been split, I was expecting that the first OnExecutionUpdate ExecutionOrder.Order would have an OrderState of PartFilled, but that seems not to be the case.

    Other documentation states that the return of the Order object from the Submit order cannot be relied on until it is set in OnOrderUpdate.
    So can the Order object, if set in OnOrderUpdate, be relied on in OnExecutionUpdate? I want to when I can rely on the OrderState in the Order, so that I know how to update internally (within the strategy) privately managed position objects.
    Thanks.

    #2
    Hello TurtleBeach, and thank you for your query.
    Please send me your log and trace files so that I may look into what occurred.
    You can do this by going to the Control Center-> Help-> Mail to Platform Support.
    Please reference the following ticket number in the body of the email: 1517294
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bosajin, Today, 09:51 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Newant, Today, 08:13 AM
    2 responses
    18 views
    0 likes
    Last Post Newant
    by Newant
     
    Started by alejandro888, Yesterday, 10:14 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by devro, Yesterday, 07:00 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by mr_trade, Today, 07:13 AM
    0 responses
    18 views
    0 likes
    Last Post mr_trade  
    Working...
    X