Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is Add() method creat a new thread for each data series?

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

    Is Add() method creat a new thread for each data series?

    I want to use Add() method to add around 500 stocks 1-min data to the same strategy. If the Add() does not create a new thread for each data series, can it sustain when the OnBarUpdate event happens?

    So my questions are:
    1. Is Add() implemented in a multiple-thread way?
    2. How is the limitation of data series I can add using Add() without dragging the performance on a 3GHZ core2 quad cpu? Did anybody try this?

    thanks.

    #2
    belllab, adding 500 instruments to a single strategy is starting to push the limit. We don't have solid figures for an upper limit because people's hardware and software varies by an incredible amount. I would recommend starting with around 100 or so and slowly add on until you find the limit of your computer.

    There was a similar question a few months back where someone was trying to monitor 500 instruments at once. I ran his script on my computer with all 500 instruments and it performed correctly. The original poster's computer couldn't quite handle it.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    62 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X