![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Dec 2004
Location: , ,
Posts: 224
Thanks: 0
Thanked 11 times in 8 posts
|
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, |
|
|
|
|
|
#2 | ||
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Quote:
Quote:
Ray
NinjaTrader Customer Service |
||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |