Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

2017-02-10 14:36:15:100 ERROR: Could not save indicator 'pjsLights:'

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

    2017-02-10 14:36:15:100 ERROR: Could not save indicator 'pjsLights:'

    Hi,

    I have an indicator - It has no configuration vaiables. NT always removes it from my chart on start up.

    In the log I have this

    2017-02-10 14:36:15:100 ERROR: Could not save indicator 'pjsLights:' There was an error generating the XML document.
    2017-02-10 14:37:26:134 ERROR: Could not save indicator 'pjsLights:' There was an error generating the XML document.

    My whole properties section is this (which I belive saves nothing?)

    #region Properties

    [Browsable(false)]
    [XmlIgnore]
    public Series<double> SCORE
    {
    get { return Values[0]; }
    }

    [Browsable(false)]
    [XmlIgnore]
    public Series<double> ADD
    {
    get { return Values[1]; }
    }

    [Browsable(false)]
    [XmlIgnore]
    public Series<double> DELTA
    {
    get { return Values[2]; }
    }

    [Browsable(false)]
    [XmlIgnore]
    public Series<double> TICK
    {
    get { return Values[3]; }
    }

    [Browsable(false)]
    [XmlIgnore]
    public Series<double> TREND
    {
    get { return Values[4]; }
    }


    #endregion



    What am I missing? This is with the latest NT8, though has I think been an issue for some time.

    Thanks.

    #2
    Hello pjsmith,

    Thank you for your note.

    Without the full code we're unable to test on our end.

    If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      I belive I may have found the reason for this, and I think it may be an NT bug. I am not sure how to resolve, however.

      You appear to be able to cause this issue, which prevents your indicators being saved to your charts if you update an indicator that has been previously used so it no longer has one of it's plots.

      For instance, this indicator had 5 plots. I removed one as it is no longer used. Depsite the indicator unctioning normally and the correct plots showing, the indicator will not stay on a chart as NT reports an XML error when trying to save the setup. What I noticed is despite the indicator working and certainly having been updated, plot no longer in the code, the plot is still in the indicator properties. Somehow, NT appears to be recalling the plot that no longer exists and trying to save it, but of course failing as it no longer in the indicator.

      Just a theory, but is an issue no the less. That plot should not be in the indicator properties as it is certainly no longer in the code. I am unsure how NT handles the indicator properties/variables.

      If you can enlighten me how to manually remove this from NT, or reset it, I can test and confirm this is the issue causing the XML errors.

      Hope this makes sense.

      Thanks.

      Comment


        #4
        Hello pjsmith,

        I am unable to replicate.

        Are you removing all references to the plot within the code? Are you refreshing the chart after the modifications?

        I provided a screen shot of an indicators code I applied to a chart, commented out the references to the third plot, then saved the workspace with no problem.

        I look forward to your reply.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by BarzTrading, Today, 07:25 AM
        2 responses
        14 views
        1 like
        Last Post BarzTrading  
        Started by devatechnologies, 04-14-2024, 02:58 PM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by tkaboris, Today, 08:01 AM
        0 responses
        3 views
        0 likes
        Last Post tkaboris  
        Started by EB Worx, 04-04-2023, 02:34 AM
        7 responses
        162 views
        0 likes
        Last Post VFI26
        by VFI26
         
        Started by Mizzouman1, Today, 07:35 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X