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?
    BertrandNinjaTrader Customer Service

    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?
        BertrandNinjaTrader Customer Service

        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.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              This was the reason. Thanks.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by pmachiraju, 11-01-2023, 04:46 AM
              8 responses
              148 views
              0 likes
              Last Post rehmans
              by rehmans
               
              Started by mattbsea, Today, 05:44 PM
              0 responses
              5 views
              0 likes
              Last Post mattbsea  
              Started by RideMe, 04-07-2024, 04:54 PM
              6 responses
              33 views
              0 likes
              Last Post RideMe
              by RideMe
               
              Started by tkaboris, Today, 05:13 PM
              0 responses
              5 views
              0 likes
              Last Post tkaboris  
              Started by GussJ, 03-04-2020, 03:11 PM
              16 responses
              3,283 views
              0 likes
              Last Post Leafcutter  
              Working...
              X