Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing multi-time frame data

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

    Accessing multi-time frame data

    I'm trying to develop an indicator (later using the same data structures in a strategy) that reads in both the last and ask data. I've learned to load both into my chart within the data series and overlay them so I can see them together. Now I'd like to access them within my indicator (strategy). But when I read about BarsArray, it says it can only access the data if I use AddDataSeries(). Is that true or can I access the data like Opens[index]?

    Secondly when I read about the BarsArray it says I can only access one at a time in separate iterations in OnBarUpdate(). But I want them all at the same time. Is that possible? I need to pass both the last and ask PriceSeries data to one of my addOns concurrently. Is this possible?

    #2
    Hello dweems,

    Yes you need to use AddDataSeries to be able to use the Opens or other plural multi series.

    To access all the timeframes at once you need to use the Plural series like Opens[1][0] that would be for the second series. OnBarUpdate is only called for 1 BarsArray at a time, that is the BarsInProgress property which denotes the series that called OnBarUpdate.

    Passing data to an addon is not something the platform has specific features for, that highly depends on what you mean by addon.


    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    169 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    326 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    252 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    353 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    180 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X