Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Won't Load After a Restart

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

    Indicator Won't Load After a Restart

    I've created a watermark indicator. It compiles and works fine.

    I note that when I compile, the file in the indicators dir does not have an @ in front of the file name.

    When I start NinjaTrader, I get the following error message:

    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.

    I can add the indicator back to the chart and everything works fine until next restart. I am assuming the @ missing is what is causing the issue.

    I've deleted the cache dir, and ninjatrader.custom.dll, ​ninjatrader.custom.xml and ninjatrader.custom.pdb as well as the editor container to be certain I start from a clean slate. When I add it back, or even just a tiny test indicator, all get created without the @ and will cause the error after a restart and have to be manually added again.

    Can you please advise how to fix this?

    #2
    Hello BodhiKarma,

    The @ in the filename simply means a system indicator, that prevents you from being able to delete the system indicators.

    What specific code are you using when you see that error?

    To debug this you can create a new indicator and compile and apply it and restart to check that it works.
    Then copy a small portion of your logic to the new file and compile and re test..
    Once you see that it can no longer apply the most recently added code would be the reason. Once we know what code was used it would be more apparent what the solution is.

    Comment


      #3
      Thank you. I realized those were designated system ones shortly after my post... Feeling stupid now.

      Since my post, I've learned the issue is actually in saving it not loading. I've been shutting down and clicking the prompt to save to the workspace.

      I just tried to save under the workspace tab and get the error:
      Default Could not save indicator 'SymbolDisplay:' There was an error generating the XML document.
      I'm using ​System.Windows.Media.Brush to draw the text and just saw an article that says there may be issues serializing it. Could that be it? Something about it that Ninja Trader can't save the state and throws the error?​



      Comment


        #4
        Hello BodhiKarma,

        That means one of the public properties you have is not correct. Not all items can be saved to xml with the workspace. Brushes need specific structure to be saved, you can see a sample here: https://ninjatrader.com/support/help...definedbrushes

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 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
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X