Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Understanding the new AddDataSeries constructor

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

    Understanding the new AddDataSeries constructor

    Can anyone explain further than the documentation one parameter in the new AddDataSeries constructor:

    barsToLoad


    What exactly will that do in common situations. Say I have a tick chart, added a second instrument via AddDataSeries, both series are using same period (ticks) and the same Trading Session. When would barsToLoad be needed in such a situation?

    Regards,

    Number1

    #2
    Originally posted by number1 View Post
    Can anyone explain further than the documentation one parameter in the new AddDataSeries constructor:

    barsToLoad


    What exactly will that do in common situations. Say I have a tick chart, added a second instrument via AddDataSeries, both series are using same period (ticks) and the same Trading Session. When would barsToLoad be needed in such a situation?

    Regards,

    Number1
    Maybe your primary series is Daily bars with 2 years of data, and you're adding a tick series. With the other AddDataSeries() calls, it would return just as much data that is requested on the primary. However, maybe you do not need actually need that much historical tick data. You can then set the barsToLoad to 50 for example, and it would reduce the overhead in calculating the script.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X