• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    Paul H.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by saltminer, Today, 05:19 PM
        0 responses
        3 views
        0 likes
        Last Post saltminer  
        Started by martyn73, Today, 04:18 PM
        0 responses
        2 views
        0 likes
        Last Post martyn73  
        Started by aprendiz, Today, 03:42 PM
        0 responses
        2 views
        0 likes
        Last Post aprendiz  
        Started by 1001111, Today, 09:10 AM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by usero86, Today, 06:02 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X