NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Educational Resources > Reference Samples

Reference Samples Official NinjaScript reference code samples

Reply
 
Thread Tools Display Modes
Old 04-30-2008, 01:19 AM   #1
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default Indicator: Using a DataSeries object to store calculations

DataSeries objects are useful for storing various types of values. Since they are linked to your historical bars object, you can store and link a value to each bar. This allows you the flexibility of accessing the values at any point in the future for further calculations or plotting.

The attached reference sample demonstrates the following concepts:
  • Creating DataSeries objects
  • Storing and retrieving values from DataSeries objects
Important methods and properties include:
Other methods and properties of interest include:
Import instructions:
  1. Download the file contained in this thread to your PC desktop
  2. From the Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file
Attached Files
File Type: zip SampleCustomDataSeries.zip (3.8 KB, 1444 views)
NinjaTrader_Josh 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
Indicator calculations PKFFW Charting 4 03-19-2008 04:58 PM
To use the MAX indicator for Bars Object other than [0], what is needed? dendy General Programming 2 11-15-2007 06:16 PM
Strategy: Synchronizing a DataSeries object to a secondary time frame NinjaTrader_Josh Reference Samples 0 10-09-2007 01:56 AM
Error: Object reference not set to an instance of an object. Januson Market Analyzer 1 05-18-2007 12:12 AM
Exposing a non DataSeries property in an indicator tquinn Indicator Development 4 01-11-2007 02:29 PM


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