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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X