Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to cluster child indicators under a parent indicator?

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

    How to cluster child indicators under a parent indicator?

    I have several indicators that gather real time data, each one a different type of data.

    The idea is to join the data so it can be shared with any other ninjascript running. I do this through public static variables, and it works fine.

    What I would like to do, for one instrument, is to just launch one indicator (parent) and have all the others (child) start up with that indicator, I guess the child indicators would be "attached" or "added"?

    Then the parent indicator would run in Market Analyzer and bring all the child indicators with it.....and would it run on the same data series, say 1 minute bars?

    This way I only have to launch the parent indicator in Market Analyzer, not all the children....

    Is there an easy way to do this?


    #2
    Hello vantojo,

    Thanks for your question.

    You could create an indicator that adds new plots for all child indicator plots, and also adds all child indicators to that parent indicator's code. The parent indicator could then assign the plot values to what is calculated from the child indicators. Please see AddPlot documentation for how to add plots and assign values to plots.

    AddPlot - https://ninjatrader.com/support/help...8/?addplot.htm

    Please note: This would include the child indicators within the parent indicator, but this would not make it faster to set up a Market Analyzer.

    You would still have to select each specific plot that reflects the child indicator plot, and this would be just as much work as configuring the Market Analyzer without your combination indicator.

    My recommendation would be to set up the Market Analyzer as you like, and then save a template so you can quickly recreate the same Market Analyzer. To use templates in the Market Analyzer, please right click in the Market Analyzer window, and navigate to the Templates menu.

    We look forward to assisting.

    Comment


      #3
      Ok, thanks. Well I guess your suggestion is the best. To save a template.

      The child output data is accessible system wide, per instrument, so adding plots, etc, is just more code to do the same but with more restriction.


      Instead of starting another thread...I'll ask this...

      in testing I am setting up a lot of Strategies in the control Center Strategy Tab....and some conditions (replay / sim account changes) delete the strategy entries, and then I have to set them all up again.

      I would love to have a Template so I could restore all the strategies and not have to set them up again, but it appears there is none?

      Is there a way to save all the strategies, like in the Templates?

      Comment


        #4
        Hello vantojo,

        Strategies are logged in the database file (Documents\NinjaTrader 8\db\NinjaTrader.sdf.) While a workspace can associate a chart to a strategy, the strategy is only associated in the chart by the strategy ID. Since the strategy properties for configured strategies is saved in the database and associated with accounts, we could not load a workspace or a template to restore strategies in bulk.

        It would then be best to set up multiple templates so you can quickly add those strategies with the properties you desire. A few mouse clicks more, but much less trouble than configuring each strategy from scratch.

        We look forward to assisting.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X