Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataSeries verses Array: Processing and storing non-sequential data

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

    DataSeries verses Array: Processing and storing non-sequential data

    Hello:
    I have been working quite some time on this problem. In an indicator, one uses a DataSeries to store and then display sequential data for each bar on a chart. For example:

    myDataSeries.Set(Value); // store and display sequential data

    Question: How does one process data in a DataSeries from any bar other than the current bar and store it sequentially ([0], [1], etc.) ?

    Some simple examples I have tried to handle this problem includes:

    As a DataSeries: newDataSeries.Set(myDataSeries[5]); // [5], [10], … stored sequentially as [0], [1], …

    As an Array: newDataSeries(myDataSeries[5]) // same as DataSeries example

    The resultant data can then be used in formulas as they are now in sequential order. Any ideas?

    Thanks.
    Tony

Latest Posts

Collapse

Topics Statistics Last Post
Started by CarlTrading, 05-11-2026, 05:56 AM
0 responses
27 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, 05-10-2026, 08:12 PM
0 responses
20 views
0 likes
Last Post CarlTrading  
Started by Hwop38, 05-04-2026, 07:02 PM
0 responses
183 views
0 likes
Last Post Hwop38
by Hwop38
 
Started by CaptainJack, 04-24-2026, 11:07 PM
0 responses
335 views
0 likes
Last Post CaptainJack  
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
260 views
0 likes
Last Post Mindset
by Mindset
 
Working...
X