Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order of Operations

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

    Order of Operations

    Hello,

    Is there a help page that discusses the order of operations when a tick or price change comes in?

    My question is, is it deterministic that OnBarUpdate is executed for indicators first and then strategies? I'm realizing that logic I put into a custom indicator must be done in OnBarUpdate for the indicator before my strategy runs OnBarUpdate as it relies on the indicator to be updated for that tick (typically, the first tick of a bar) or price change is evaluated.

    Thanks,
    Matt

    #2
    Hello StealthM93,

    I don't know of a specific resource that just directly says what you stated but that would be the general expectation. The indicator will need to process before the strategy can access its values. There is one comment in the help guide that mentions you need to call the indicator to get its values and to have it calculate but not that it happens first (it does).



    Comment


      #3
      Thank you, Jesse!

      Comment

      Latest Posts

      Collapse

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