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 charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            67 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            150 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            162 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            99 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            286 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X