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 argusthome, 03-08-2026, 10:06 AM
              0 responses
              85 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              48 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              29 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              32 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              67 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X