![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2007
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
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. Thanks Shimon Dekel |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Hi Shimon,
- 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.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| 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 |