Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

More than 4 Plots for an Indicator?

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

    More than 4 Plots for an Indicator?

    Hi,

    Please help me:
    How to plot more than 4 plots(default setting) in an Indicator?
    I want 7 plots in an indicator.

    I added more plots in the code, but they do not appear in the chart although they are listed in the indicator menu box.

    #2
    Hello Dowhk,

    You have to expand the properties region and add code for each plot:

    Code:
     
    [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
    [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
    public DataSeries Plot5
    {
    get { return Values[5]; }
    }
    This is for Plot5 (would actually be the 6th plot if using convention 0-5)

    Note the Values[] index increases by one for each plot you need to add
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello Dowhk,

      You have to expand the properties region and add code for each plot:

      This is for Plot5 (would actually be the 6th plot if using convention 0-5)

      Note the Values[] index increases by one for each plot you need to add

      Hi Ryan,

      Thank you very much.
      It works !!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      153 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      89 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      133 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      128 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X