Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple plots on the indicator

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

    Multiple plots on the indicator

    I do this:

    protected override void Initialize()
    {
    Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "FC"));
    Add(new Plot(Color.FromKnownColor(KnownColor.Blue), PlotStyle.Line, "ThinRatio"));
    Add(new Plot(Color.FromKnownColor(KnownColor.DarkSeaGreen) , PlotStyle.Line, "MFRatio"));
    }
    and access them as

    Values[0].Set(c.stats.FC); // FC
    Values[1].Set(c.stats.thinRatio); // ThinRatio
    Values[2].Set(c.stats.mfRatio); // MoneyFlowCode

    this seems to work but I want to display each series in a different panel. This will allow me to display these with their Y axes making sense for each series. Is that possible? Also is this the most efficient way to have secondary values for an Indicator?

    Thanks,

    #2
    newworldguy, plotting to multiple panels would unfortunately not be possible directly for an indicator - only an option when your strategy adds the series as individual indicators for example (so each indicator one plot), then you could set which one to use.

    Comment


      #3
      Alternatively, Can I disable all but 1 of the plots?

      Comment


        #4
        You could set colors to transparent for the ones you don't want to see or displayed in the data box.

        Comment


          #5
          Can I have 2 y axes, right and left and specify which one to use for which plot?

          Comment


            #6
            No, as this would be a per indicator setting.

            Comment


              #7
              what is the data box?

              Comment


                #8
                found the data box description in the reference. I want to have an indicator that returns a string and display that with the candle somehow. what do you think is the best way to do it?

                Comment


                  #9
                  Hello newworldguy,

                  Thank you for your response.

                  You can use the DrawText() method to draw a string on the candle: http://www.ninjatrader.com/support/h...7/drawtext.htm

                  Comment

                  Latest Posts

                  Collapse

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