Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-DataSeries Indicator works differently in Market Replay

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

    Multi-DataSeries Indicator works differently in Market Replay

    Hi, I built an indicator that I add to a 400 tick chart. In its Initialize() event, the indicator creates two additional dataseries (via the Add(instrument, PeriodType, count) method), based on the same instrument as the 400 tick chart, but for different time frames: a dataseries for one second, and another for five minutes.

    During OnBarUpdate(), the code checks BarsInProgress and branches to the appropriate code for each dataseries. The code for the 400 tick dataseries also tests Count and CurrentBar, to determine when historical data has finished loading.

    What I've noticed is, BEFORE historical data has finished loading -

    - when running in real time, OnBarUpdate() events arrive for all three dataseries, in the proper order, as you would expect.

    - when running under Market Replay, only OnBarUpdate() events for the original 400 tick dataseries - the series on the chart - arrrive. No events arrive for the one second or five minute dataseries.

    After historical data has finished loading, Market Replay behaves like real time - with OnBarUpdate events arriving for all three data series.

    Is it supposed to work this way? Is there a way my code can programmatically tell that it's running under Market Replay, so I can get (force) the indicator to behave the same way under both conditions?

    thanks

    #2
    SatChitAnanda, sorry for our late reply here.

    There would be unfortunately no supported code way to check for being in replay, however as a hint you can look into this snippet from our BarTimer indicator -

    Bars.MarketData.Connection.Options.Provider == Cbi.Provider.Replay

    The behavior you've seen in replay for the MultiSeries is unfortunately expected in this loading scenario.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 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
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X