Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy or an Indicator?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy or an Indicator?

    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
    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.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, 04-17-2024, 06:40 PM
    6 responses
    49 views
    0 likes
    Last Post algospoke  
    Started by arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    61 views
    0 likes
    Last Post samish18  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    11 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    21 views
    0 likes
    Last Post traderqz  
    Working...
    X