Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator plots issue

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

    Indicator plots issue

    Hello,

    I am working on custom indicator. Please find below code extract regarding plots:

    In Initialize():

    Code:
    Add(new Plot(Color.LightGray, PlotStyle.Dot, "SC_0_long"));		// StochCross
    Add(new Plot(Color.LightGray, PlotStyle.Dot, "K_0_long"));		// Korekta prosta
    Add(new Plot(Color.LightGray, PlotStyle.Dot, "KF_0_long"));		// Korekta prosta Fibo
    Add(new Plot(Color.LightGray, PlotStyle.Dot, "V_0_long"));		// Value
    In Properties:

    Code:
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries SC_0_long
    {
    get { return Values[0]; }
    }
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries K_0_long
    {
    get { return Values[1]; }
    }
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries KF_0_long
    {
    get { return Values[2]; }
    }
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries V_0_long
    {
    get { return Values[3]; }
    }
    I have more plots but the issue here is that when I run the indicator I do not see these plots.

    Please find attached a screenshot where you will see that there in no plots I have defined.
    This is a screenshot from the current version of the indicator but the plots I see here are as they would be from the previous version. I do not understand why?

    Is there any reset option for indicators in NT?

    Please support.
    Attached Files

    #2
    Do you see the same after applying the changed and compiled indicator completely fresh to your chart?

    Comment


      #3
      Yes, I do.

      Comment


        #4
        So for all your plots a unique Values index is assigned, so you don't accidentially overwrite some? Do you see any errors in the log tab when applying this script to your charts?

        Comment


          #5
          Yes, Values are unique. No, no errors in the log tab.

          Comment


            #6
            Did you save any settings template prior to the modifications? Please have a look into

            Documents\NinjaTrader 7\templates\Indicator

            If you see a template for your study, please delete it and then recheck on a freshly applied instance.

            Comment


              #7
              This was the reason. Thanks.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              144 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              70 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              125 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              78 views
              0 likes
              Last Post PaulMohn  
              Working...
              X