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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X