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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          53 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          34 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          100 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          180 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          170 views
          0 likes
          Last Post CarlTrading  
          Working...
          X