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

Range Bars using Calculate.OnEachTick useless?

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

    Range Bars using Calculate.OnEachTick useless?

    If the data series is set to Range Bars, what does calculate on each tick do in the strategy? is it basically useless as the bar is not complete unless a range of x up/down ticks is completed.

    #2
    Same as any other bar? Up and down inside the bar.

    Comment


      #3
      Hello Boonfly8,

      Thanks for your post.

      Calculate.OnEachTick means that your code is run on every incoming tick of data regardless if the price changes.

      Calculate.OnPriceChange means that your code will run if the current price is not equal to the previous price, which can occur on each tick but would skip processing on a particular tick if the price has not changed.

      Calculate.OnBarClose means your code is run only once per bar when it has closed. This is also how your historical data is processed.

      Reference: https://ninjatrader.com/support/help...?calculate.htm
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      21 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      45 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      21 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      181 views
      0 likes
      Last Post jeronymite  
      Working...
      X