NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-26-2008, 04:13 AM   #1
cls71
Senior Member
 
Join Date: Jan 2008
Location: Madrid, Spain
Posts: 229
Thanks: 2
Thanked 0 times in 0 posts
Default 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.
cls71 is offline  
Reply With Quote
Old 03-26-2008, 04:20 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> 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.
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Off Screen rabidturtle Miscellaneous Support 2 10-05-2007 11:30 AM
Multiple Windows pgabriel Miscellaneous Support 1 05-31-2007 08:15 AM
Open Windows stargazer Charting 1 05-01-2007 02:13 AM
Windows Vista ForexResearch Miscellaneous Support 1 04-24-2007 03:06 AM
Windows Vista gdargento Miscellaneous Support 1 01-18-2007 01:09 AM


All times are GMT -6. The time now is 07:32 PM.