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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      150 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      302 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      243 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      345 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      174 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X