NinjaTrader Support Forum  

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

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-28-2010, 02:04 PM   #1
daven
Senior Member
 
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 329
Thanks: 0
Thanked 11 times in 8 posts
Default Indicators on Multiple Time Frame Charts

I've been reading to learn more about using multiple time frames on charts. I would like to implement an indicator which uses secondary five minute data on a primary lower time frame setting (say one minute, or even better 150 Tick). I looked at the sample multiple time frame setting but it is just reading price data on multiple time frames. What if I want to calculate a simple trend indicator on a larger time frame which can accessed by a strategy running on a smaller time frame. Is that possible and do you have some sample code which demonstrates how to do it? Here's what I would like to do:

Calculate if a short moving average is above a longer moving average on a secondary five minute time frame of the same instrument. If the five minute short average is greater than the five minute longer average, dsiplay a value of 1 on a bar chart. If the short ma on the five minute chart is lower than the long ma on the five minute chart display a -1 bar chart on the primary chart. I would also like to be able to reference these bar values in a strategy running on the 1 minute chart. Is any of this possible?
Thanks
DaveN
daven is offline  
Reply With Quote
Old 07-28-2010, 03:17 PM   #2
NinjaTrader_Tim
NinjaTrader Customer Service
 
NinjaTrader_Tim's Avatar
 
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi daven,

Yes, this is certainly possible.

You can create an indicator with Multiple series in NinjaTrader 7, which calculates the moving averages on different series, then plot the values. You can then access the indicator from a Strategy.


Have you seen this sample:
http://www.ninjatrader-support.com/H...ameInstruments

...which details how to access the CCI on different series.
NinjaTrader_Tim is offline  
Reply With Quote
Reply

Tags
indicators, multiple time frames

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
Charts: Time Window Size Adjustment in Multi-Time Frame Charts aviat72 Version 7 Beta General Questions & Bug Reports 3 06-28-2010 03:24 PM
Multiple time frame issue _db8r_ Strategy Development 3 03-17-2010 08:12 AM
Multiple Time Frame Stochastics maxreturn Indicator Development 2 02-04-2010 10:00 AM
Minute Time Frame Indicators in a TickTime Frame strategy Nathamus General Programming 5 04-10-2007 02:41 AM
Multiple Time Frame access stepwise General Programming 1 03-31-2007 03:33 AM


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