Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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).



    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you, Jesse!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ZenCortexAuCost, Today, 04:24 AM
      0 responses
      5 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by ZenCortexAuCost, Today, 04:22 AM
      0 responses
      2 views
      0 likes
      Last Post ZenCortexAuCost  
      Started by SantoshXX, Today, 03:09 AM
      0 responses
      15 views
      0 likes
      Last Post SantoshXX  
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      3 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      42 views
      0 likes
      Last Post yertle
      by yertle
       
      Working...
      X