NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM 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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-06-2007, 06:53 PM   #1
scjohn
Senior Member
 
Join Date: Dec 2004
Location: , ,
Posts: 224
Thanks: 0
Thanked 11 times in 8 posts
Default Multi-time frame

I would like to know if i understand the PeriodType and how it works. We will keep it simple in that the additional bars will all be for the same instrument.

Let's assume that the chart is running a 2-minute time interval. So my primary bars will be of a 2-minute data set. I now want to add a 5 minute bars object so I code:
Add(PeriodType.Minute, 5);
Now I add another a 1 minute bars object. So
Add(PeriodType.Minute, 1);
Is this legal? Can I add a bars object whose time frame is smaller than the primary bars?
I am assuming that I could not go to a Tick or Volume because those would be considered smaller than a 1-minute. Correct?

Let's go in the other direction. My primary bars are Tick. Can I add a 2 minute bars object:
Add(PeriodType.Minute, 2);
Or am I limited to adding bars object that are either Tick or Volume?

Thanks,
scjohn is offline  
Reply With Quote
 

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
Accessing High value in a multi time frame strategy PrTester Strategy Development 4 05-02-2007 01:13 AM
Minute Time Frame Indicators in a TickTime Frame strategy Nathamus General Programming 5 04-10-2007 02:41 AM
Multi-Time Frame & Instruments for indicators SuzyG Indicator Development 1 04-03-2007 09:14 AM
Backtest > Time frame sdooley Strategy Analyzer 3 03-22-2007 07:52 AM
Plotting values on multi-time frame and instruments chart SuzyG Strategy Development 1 01-19-2007 12:32 AM


All times are GMT -6. The time now is 09:28 AM.