Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tick Data in "Calculate.OnBarClose" & "Calculate.OnEachTick"

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

    Tick Data in "Calculate.OnBarClose" & "Calculate.OnEachTick"

    As the topic name mentioned, what's the difference between applying AddDataSeries(Data.BarsPeriodType.Tick, 1) from Calculate.OnBarClose and use Calculate.OnEachTick instead?

    If I use the tick data from AddDataSeries(Data.BarsPeriodType.Tick, 1) with Calculate.OnBarClose at OnBarUpdate, I will get the same data as if I applied Calculate.OnEachTick ​​, correct?

    Thank you !​

    #2
    Hello Curerious,

    The Calculate setting will cause each series to calculate at that rate. If you were using a 1 minute primary and have a 1 tick secondary that would mean when using OnBarClose the OnBarUpdate is called every 1 minute for the primary and then every 1 tick for the secondary. Calculate would only change the result in realtime when you are using OnEachTick or OnPriceChange, that would let the series calculate at a faster or slower rate, for example the 1 minute could be called as frequently as every tick.

    Comment


      #3
      Got you, thanks Jesse !

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      239 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      155 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      164 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      247 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      199 views
      0 likes
      Last Post CarlTrading  
      Working...
      X