Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnOrderUpdate before OnExecution?

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

    OnOrderUpdate before OnExecution?

    Hi NT support team,
    I have 2 basic questions.

    1 - If I have an IOrder which is filled, which one of these methods is called first?

    protected override void OnExecution(IExecution execution)
    or
    protected override void OnOrderUpdate(IOrder order)



    Also
    2- if an order is partially filled, do we still go within the OnExecution(IExecution execution) method?

    Thanks for your help

    Kind regards

    #2
    Hello jakjak74,

    Thanks for your post.

    With reference to the helpguide section here: http://ninjatrader.com/support/helpG...nexecution.htm

    "OnExecution is always called after OnOrderUpdate() is called"

    "An order can generate multiple executions (partial fills)"

    Other references:
    http://ninjatrader.com/support/helpG...n_program2.htm
    http://ninjatrader.com/support/helpG...rderupdate.htm

    Comment


      #3
      Thanks Paul.
      For an overfilled order, I suppose we also go within the OnExecution(IExecution execution) after the OnOrderUpdate(IOrder order) method?

      Comment


        #4
        Hello jakjak74,

        Thanks for your post.

        Yes, you are correct.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        149 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        84 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        129 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        125 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        102 views
        0 likes
        Last Post CarlTrading  
        Working...
        X