Announcement

Collapse
No announcement yet.

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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X