Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator is disappearing

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

    Indicator is disappearing

    Hi,

    I have a simple indicator that plots a graph on the chart - however, every time I restart ninja or duplicate the tab into new tab, the indicator is disappearing and doesn't exist in the new tab.
    I tried to debug and see if there are any errors, but couldn't get any - the indicator is never loaded on the new tab (unlike other indicators).

    Thanks,
    Haim

    #2
    Hello Haim,

    Thanks for your post.

    What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.?.?.?)​

    Do you receive an error on screen when this behavior occurs? Are there errors on the Log tab of the Control Center? If so, what do these errors report?

    Is the indicator in question one that you programmed yourself? Is the indicator from a third-party developer? Or, is this an indicator that comes default with NinjaTrader?
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi,
      Thanks for the reply.

      NinjaTrader version: 8.0.28.0
      I don't have an error message, but I do have a log lines:
      10/15/2023 9:47:45 PM NinjaScript Failed to restore Indicator 'Unknown'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
      10/15/2023 9:47:45 PM Default Could not save indicator 'ChartMarkup:' There was an error generating the XML document.
      I programmed the indicator.

      Thanks again,
      Haim

      Comment


        #4
        Hello Haim,

        Thanks for your notes.

        Do you have any public Brush properties being defined in your script?

        If so, are you calling [XmlIgnore] on that defined public Brush property?

        See this help guide page for more information about the XmlIgnore attribute: https://ninjatrader.com/support/help...eattribute.htm

        Working with Brushes: https://ninjatrader.com/support/help...th_brushes.htm

        Below are forum threads discussing this reported behavior which you might find helpful.


        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Thanks, I used the instructions above to resolve the problem.
          I wonder, in other indicators I wrote, I was able to store the Brush - it seems to be inconsistent.

          Thanks again.

          Comment


            #6
            One other question: now that I changed the serialization, there is very long text in the indicator description on the chart - can I shorten or hide it?

            Comment


              #7
              Hello Haim,

              Thanks for your notes.

              Are you referring to the indicator label in the top left corner of the chart when the indicator is enabled on the chart?

              You could modify the 'Label' field in the Properties section of the Indicators window.

              See the 'How to edit an indicator's parameters' section of this help guide page: https://ninjatrader.com/support/help...indicators.htm

              Or, you could override the DisplayName in your indicator's code to customize the chart label.

              See this help guide page for more information about DisplayName and sample code: https://ninjatrader.com/support/help...isplayname.htm
              <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

              Comment


                #8
                Thanks again!!!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                597 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                343 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                556 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                555 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X