|01-24-2008, 06:55 AM||#1|
Join Date: Dec 2007
Thanked 0 times in 0 posts
Strategy or an Indicator?
The reason I post this here is that I don’t know if I should write a Strategy or an Indicator.
I am trying to write a simple “detector” that will alert me if any of a selected group of Instruments will meet a preset criteria.
To do this, I need to apply that “detector” to a list of Instruments.
The natural choice is the “Market Analyzer”
The “Detector” will have to look at a 5 minuet bars of this instrument and possibly another set of bars that is not part of this instrument (such as an index or a future.)
From what I could work out, the function Add() in an Indicator is what I should use to load an array of bars while Add() in the indicators has a different function altogether.
The problem is that I don’t know if and how I can load and run a Strategy to work on a list of instruments and on the other hand I know I can run an indicator on such a list within the market analyzer but an indicator cannot look at an external list of bars using the Add() function.
I wonder if I can get help on this.
|01-24-2008, 07:13 AM||#2|
Join Date: Nov 2004
Location: Denver, CO, USA
Thanked 45 times in 32 posts
- Unfortunatley multi-series indicators are not supported so an indicator is not an option
- Strategies do support multi-series but you can not run them in the MA
So, what are the options?
- You could write the indicator and then have a separate indicator in the MA for the other instrument. Color code the MA column cells based on the indicator conditions (maybe even add an alert condition) and then monitor for both conditions to be true.
Multi-series indicators is on our list of future enhancements.
NinjaTrader Customer Service
|Thread||Thread Starter||Forum||Replies||Last Post|
|Indicator Delay in Strategy||shliang||Strategy Development||11||10-07-2007 01:16 AM|
|Indicator vs Strategy||ATI user||Indicator Development||17||09-05-2007 09:06 PM|
|Using Strategy Wizard to develope Indicator on Indicator||mrlucky1x||Indicator Development||3||08-25-2007 04:09 PM|
|Drawing from a strategy or from an indicator||grd974||Charting||3||06-30-2007 05:20 AM|
|Drawing Ray on indicator from Strategy||funk101||Strategy Development||3||05-04-2007 05:26 AM|