![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2006
Location: Bellingham, WA , USA
Posts: 329
Thanks: 0
Thanked 11 times in 8 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
|
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.
Tim
NinjaTrader Customer Service |
|
|
|
![]() |
| Tags |
| indicators, multiple time frames |
| Thread Tools | |
| Display Modes | |
|
|
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 |