Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

which method execute first

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

    which method execute first

    Hi all,

    I would like to know which method execute first between OnBarUpdate() and OnMarketData()



    Thanks

    #2
    Hello blar58,

    There isn't always the same sequence. With NinjaTrader being multi-threaded, you should not rely on any particular sequence of events like OnMarketData() always being called before OnBarUpdate() or vice versa.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks RyanM

      Comment


        #4
        How about the Plot method ?

        Comment


          #5
          Plot() is tied to OnBarUpdate(), so when there is a new trade, these are both called.
          Ryan M.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          586 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          340 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X