Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Strategies, each calling OnOrderUpdate ...

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

    Multiple Strategies, each calling OnOrderUpdate ...

    Hi,

    I found some strange logs. I have multiple strategies running on the same ond on different instrument. When on of the strategies takes place Order the OnOrderUpdate-Method ist called ... but from each other strategie the OnOrderUpdate-Methode is called too ... so it is called for each strategies.

    Is this behaviour correct? How to prevent from calling the method (I think OnExecution is the same behaviour) several times?

    Thx
    DT

    #2
    DarthTraderson,

    Strategies are completely independent of each other. What happens in one does not impact the other. If other strategies are triggering, they triggered based on their own strategy's orders. Suggest you use TraceOrders and Print()s to track the orders of each strategy individually.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hm ... I cannot agree with you. 10 minutes ago I did a long trade with my strategy 'A' on NQ. Another strategy 'B' is running on NQ too. Every time calling the OnOrderUpdate() method a mail is sent ... and I got two mails. One from strategy A with a LONG-State and one from B with a flat state.

      So the strategies are not independent from each other on the same instruments.

      BTW: I saw my IOrder - objects are static in strategy B. Maybe this is the root cause ... or it is a bug in NT ...

      Comment


        #4
        Darth,

        All strategies are run independently of each other. OnOrderUpdate() can trigger for any number of reasons related to order updates. You should print the complete IOrder object and trace the states of it for all your strategies.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Oh, sorry not OnOrderUpdate is called but OnPositionUpdate is the curious method instead.

          I guess your solution is the same ...

          Comment


            #6
            Right. Print outs will offer insights into what your strategies are doing and allow us to isolate what is happening.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            573 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            575 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X