NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 01-12-2008, 02:04 PM   #1
LlewS
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default How do I create memory efficient Time Series Data

Hi,

I've got a general general question about using Time Series Data in Ninja Trader. Please note, I am new to NT, and have gone through the various tutorials and been searching through the help files. Also note, I am new to C#, but have other programming experience.

Question What is the most memory efficient way to access and manipulate the data that I see on the chart. In particular, say I have the ESH8 contract charted. How do I create a new data series, starting at some arbitrary point in the past, and continuing to the present bar. For example, if is is 7:00pm CT, then I'd like to create a data series that starts at 3:15pm CT. It would have the general format of (Current Price minus Closing Price at 3:15pm). That is, it would be 0, at 3:15, and then give the offset, plus or minus, from the closing price at 3:15. I suspect that there is a standard newbie way to do this, but that there is probably a slicker more memory efficient way to do this, that I might not discover for a while. Any help would be greatly appreciated.

Thanks,

Llew
LlewS is offline  
Reply With Quote
Old 01-12-2008, 02:08 PM   #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

Please read here on how to use a DataSereis object: http://www.ninjatrader-support.com/H...iesObject.html
NinjaTrader_Dierk is offline  
Reply With Quote
Old 01-12-2008, 03:10 PM   #3
LlewS
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks. I'm working through it now.

Llew
LlewS 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
IB-BackFill-Format Data series MrBaffalo Miscellaneous Support 25 01-14-2008 01:24 AM
Time series question ashish General Programming 6 11-20-2007 06:16 AM
Cannot Create Chart & Load Data momentom Charting 1 09-19-2007 03:10 AM
Weekend data not triggering on secondary time series gert74 Strategy Development 12 08-28-2007 08:12 PM
Data Series question NinjaTrader_Josh Indicator Development 4 05-25-2007 12:43 AM


All times are GMT -6. The time now is 08:28 PM.