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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      36 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      14 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      22 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X