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

Visual of embedded indicator

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

    Visual of embedded indicator

    Hi there,

    I am sure this is dumb question, sorry about it, anyway ...

    ... inside one of my indicators, I am using other indicators, and I want these to automatically show-up & display on the chart (like in a strategy, when using Add(indicator) in the Initialize() method) .

    How do I do that?

    Thanks in advance,
    Dominique

    #2
    Hello Dominique,
    You cannot use the Add() method to add another indicator in an indicator. The Add overload to add an indicator is for the strategy only.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Joydeep,

      Thank you so much ... of course, I know I cannot use Add( indicator ) inside an indicator, hence my original question : how do I get embedded indicators to automatically show-up & display on the chart ?

      (without re-plotting them, which would be a waste of memory & cpu utilization)

      Comment


        #4
        Hello Dominique,
        Unfortunately you cant unless replotting them (which you are trying to avoid).
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          OK, so here is an interesting follow-up question ...

          ... one of the embedded indicators would display on the price panel, another embedded indicator would display in a separate indicator panel ... how do I get different plots of my "global" indicator to plot on different panels?

          Comment


            #6
            Hello Dominique,
            Two or more plots of an indicator can be plotted in one panel only. You cannot set one plot in panel 1 and another on panel 2 from the same indicator.

            You can however set the plot on one panel and a draw object on the price panel.
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Unless there is a Draw function that will draw a DataSeries using an indicator PlotStyle, your suggestion doesn't do me any good.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by sidlercom80, 10-28-2023, 08:49 AM
              172 responses
              2,279 views
              0 likes
              Last Post sidlercom80  
              Started by Irukandji, Yesterday, 02:53 AM
              2 responses
              17 views
              0 likes
              Last Post Irukandji  
              Started by adeelshahzad, Today, 03:54 AM
              0 responses
              4 views
              0 likes
              Last Post adeelshahzad  
              Started by Barry Milan, Yesterday, 10:35 PM
              3 responses
              13 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by WeyldFalcon, 12-10-2020, 06:48 PM
              14 responses
              1,431 views
              0 likes
              Last Post Handclap0241  
              Working...
              X