Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

windows collections

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

    windows collections

    Greetings,

    Is there any maximum for declaring DataSeries ? (100, 1000, ... ? )

    and

    Which is the best solution for runtime optimizing; to use DataSeries or Windows collections: Lists, ArrayLists, Dictionaries, ... ???


    ( I am developing one strategy with 60-80 DataSeries. However I could replace these dataseries by 6-10 customer-typed windows Lists. But I dont know which would be the best solution for runtime ).

    Thanks very much.

    #2
    >> Is there any maximum for declaring DataSeries ? (100, 1000, ... ? )
    There is none. However, at some point you may hit the wall due to performance/resource issues. We don't know on when this would happen. You would need to try.

    >> use DataSeries or Windows collections: Lists, ArrayLists, Dictionaries, ... ???
    It depends on the use model: for relative bar addressing you would need the DataSeries anyway. If not, then you could go with the .NET collections.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by RookieTrader, Today, 09:37 AM
    2 responses
    11 views
    0 likes
    Last Post RookieTrader  
    Started by alifarahani, Today, 09:40 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by KennyK, 05-29-2017, 02:02 AM
    3 responses
    1,285 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by AttiM, 02-14-2024, 05:20 PM
    11 responses
    186 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X