Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars.Count is not absolute when TickReplay is enabled

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

    Bars.Count is not absolute when TickReplay is enabled

    Hello!

    I use Bars.Count to immediately determine how many total bars are loaded on a chart. This works great when TickReplay is not enabled. So on the first call of OnBarUpdate, I know immediately there's 2000 bars on the chart, for example. Then on each call of OnBarUpdate, CurrentBar increments from 1 up to 2000

    However, when TickReplay is enabled, Bars.Count is NOT a total count. When TickReplay is enabled, It does not contain the total number of bars on the chart. Instead, Bars.Count starts at 1, and increases...same as CurrentBar in the prior example.


    So when TickReplay is enabled, how can I find out, immediately, the total number of bars on a chart?

    #2
    Hello,

    Thank you for the post.

    I am currently reviewing this case and will reply back here once I more details on this.

    I look forward to being of further assistance.

    Comment


      #3
      Hello,

      I just wanted to reply back on this item.

      It looks like this would be expected and there is no way to know ahead of time while using TickReplay what the Count will be. It was suggested to check if you are using TickReplay, and if so disable the logic that currently uses Count.

      The reason is because tick replay runs a true simulation of ticks to build the bars. The bars are NOT known ahead of time.



      I look forward to being of further assistance.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      599 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      344 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      558 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      557 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X