Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Event Driven programming

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

    Event Driven programming

    If I asign an entry order to an IOrder Object in the OnBarUpdate()?, Is necessary (a must) to call later at the OnOrderUpdate() to reset the entry order to null?

    Thanks.

    #2
    Correct, CJS you want to nullify the IOrder in order to submit another order then, otherwise your order submission would get 'stuck' as the IOrder was in a so called terminal state (rejected, cancelled, filled).

    Comment


      #3
      But, if the entry order has been filled, Is necessary (a must) to call later at the OnExecution() to reset the entry order to null? Or the entry order can be reset to null (if filled) within the OnOrderUpdate() ?

      Comment


        #4
        CJS, if it got cancelled and is not partfilled > reset it in OnOrderUpdate() - else reset it in OnExecution() - http://www.ninjatrader.com/support/f...ead.php?t=7499

        Comment


          #5
          Is there any difference about Internal Order Hadling rules whether I work with normal order or if I use objects IOrder?

          Comment


            #6
            No, the IOrders would just offer you more control.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            64 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            35 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            59 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            51 views
            0 likes
            Last Post CarlTrading  
            Working...
            X