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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X