NinjaTrader_Josh
04-30-2008, 02:19 AM
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:
DataSeries class (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Set() (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Other methods and properties of interest include:
BoolSeries class (http://www.ninjatrader.com/support/helpGuides/nt7/boolseries_class.htm)
IntSeries class (http://www.ninjatrader.com/support/helpGuides/nt7/intseries_class.htm)
ContainsValue() (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Reset() (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file
The attached reference sample demonstrates the following concepts:
Creating DataSeries objects
Storing and retrieving values from DataSeries objects
Important methods and properties include:
DataSeries class (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Set() (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Other methods and properties of interest include:
BoolSeries class (http://www.ninjatrader.com/support/helpGuides/nt7/boolseries_class.htm)
IntSeries class (http://www.ninjatrader.com/support/helpGuides/nt7/intseries_class.htm)
ContainsValue() (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Reset() (http://www.ninjatrader.com/support/helpGuides/nt7/dataseries_class.htm)
Import instructions:
Download the file contained in this thread to your PC desktop
From the Control Center window, select the menu File > Utilities > Import NinjaScript
Select the downloaded file