Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fastest method to store all price data within the strategy

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

    Fastest method to store all price data within the strategy

    Hello,

    I need a method to store all of the tick data -close,time,bar index that has been loaded on to the chart. Is there a way to access all this data at once instead of looping thru each tick bar? Is there a way to quickly store this data into an array or a list? The problem right now that I am facing is, it's taking too long to store every tick information into an array. Once i have it stored in an array, i can vectorize the array and use transformation to quickly summarize data. Any help would be greatly appreciated.

    Thanks

    #2
    Hello MyFirstMillion,

    Thank you for your inquiry.

    There is no method to get the strategy to process all the available data in one pass of OnBarUpdate() or all at once from another method, unfortunately.

    The nature of strategy scripts is to process one bar update at a time. It will run through all historical bars before processing real-time bars.

    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    19 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    119 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X