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 10-09-2007, 01:56 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 Strategy: Synchronizing a DataSeries object to a secondary time frame

DataSeries objects are useful for storing interim calculations to your strategy. Sometimes you will want to store calculations based on another time frame that is not the primary bar series in a strategy.

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:
  • Reset()
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
Note: This tutorial will also help in understanding DataSeries objects.
Attached Files
File Type: zip SampleDataSeries.zip (2.9 KB, 1834 views)
Last edited by NinjaTrader_Josh; 10-09-2007 at 01:05 PM.
NinjaTrader_Josh is offline  
Reply With Quote
The following 2 users say thank you to NinjaTrader_Josh for this post:
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
Weekend data not triggering on secondary time series gert74 Strategy Development 12 08-28-2007 08:12 PM
Dynamic base pointer or time reference for secondary time interval ct Strategy Development 11 06-20-2007 02:27 PM
Accessing High value in a multi time frame strategy PrTester Strategy Development 4 05-02-2007 01:13 AM
Strategy Analyzer Chart Displays Too Much When Time Frame is Changed KBJ Strategy Analyzer 1 04-23-2007 07:30 AM
Minute Time Frame Indicators in a TickTime Frame strategy Nathamus General Programming 5 04-10-2007 02:41 AM


All times are GMT -6. The time now is 12:05 PM.