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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    77 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    27 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X