NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

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

Reply
 
Thread Tools Display Modes
Old 01-14-2008, 12:31 PM   #1
GreenTrade
Member
 
Join Date: Jan 2008
Posts: 97
Thanks: 0
Thanked 1 time in 1 post
Default Multi Time Frame/Multi Instrument?

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
GreenTrade is offline  
Reply With Quote
Old 01-14-2008, 01:33 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

The following Help Guide reference should put you in the right direction.

http://www.ninjatrader-support.com/H...struments.html
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-14-2008, 02:12 PM   #3
GreenTrade
Member
 
Join Date: Jan 2008
Posts: 97
Thanks: 0
Thanked 1 time in 1 post
Default

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
GreenTrade is offline  
Reply With Quote
Old 01-14-2008, 02:24 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

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.
NinjaTrader_Ray is offline  
Reply With Quote
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
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


All times are GMT -6. The time now is 12:31 AM.