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 chbruno, Today, 04:10 PM
              0 responses
              3 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Started by josh18955, 03-25-2023, 11:16 AM
              6 responses
              436 views
              0 likes
              Last Post Delerium  
              Started by FAQtrader, Today, 03:35 PM
              0 responses
              6 views
              0 likes
              Last Post FAQtrader  
              Started by rocketman7, Today, 09:41 AM
              5 responses
              19 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by frslvr, 04-11-2024, 07:26 AM
              9 responses
              127 views
              1 like
              Last Post caryc123  
              Working...
              X