![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jan 2008
Posts: 97
Thanks: 0
Thanked 1 time in 1 post
|
I am new to NT from TS w/ some programming experience. I would like to know how to set up a multiple time frame strategies with multiple instruments. i.e. 60 min and 30 min bars with multiple stocks. I have seen examples of each done seperately but not together and wonder how to differentiate between BarArray[1] time and BarsArray[1] stock? Thanks.
GT |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
The following Help Guide reference should put you in the right direction.
http://www.ninjatrader-support.com/H...struments.html
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2008
Posts: 97
Thanks: 0
Thanked 1 time in 1 post
|
Sorry, I should have read that more closely. So it does not differentiate between time series' or instruments. BarsArray[1] , BarsArray[2] . . . and so on just depend on which order the data series or instruments are added during initialization? Do I have to manually add new instruments if I later decide to apply the strategy to more symbols?
GT |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Correct, its based on the order in which the Add() method is called. If at a later time you wanted to add different symbols to the strategy you would have to programatically add them.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CurrentBar and Multi Time Frame | maxpi | Strategy Development | 7 | 07-31-2009 01:07 PM |
| multi time frame does not take a trade | ceesvh | Strategy Development | 9 | 11-17-2008 05:47 PM |
| multi time frame error | woodside | General Programming | 3 | 12-10-2007 11:10 AM |
| multi time frame question | pdawg | Strategy Analyzer | 5 | 10-18-2007 02:23 PM |
| Multi-time frame | scjohn | Strategy Development | 1 | 06-06-2007 07:20 PM |