Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about workspace/template serialization

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

    Question about workspace/template serialization

    So this might be a weird question, but if there's a chance I can get some ideas about it...

    In the templates/workspaces normally the indicator header looks like this:

    <Indicator BarsIndex="0" Instrument="ES 03-20 Globex" Name="NinjaTrader.NinjaScript.Indicators.TestIndic ator" Panel="-1" DisplayName="TestIndicator">

    Now after getting only ERROR: Failed to restore Indicator 'Unknown'.errors on a given workspace, I digged into it and found that all the indicator headers look like this:
    <Indicator BarsIndex="0">

    What can cause these broken headers? Saving a workspace when a chart is not loaded yet? Is there a way to fix it?

    #2
    Hello Zapzap,

    The errors mean that NinjaTrader was not able to construct an instance of that script.

    The script code may have changed. The script may have been removed. There may be compile errors preventing scripts from compiling. The script may be inproperly serializing inputs

    Are you able to add a new instance of the script to a chart?
    Can you save the new instance in a workspace and re-open the workspace with the indicator?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      All the indicators (all unchanged) can load for one chart but receive the broken header for another chart. So it's not one indicator, but something happens when serializing the contents of a chart.
      Do you guys have an idea under what circumstances can a chart break a serialization like this? Any info could help to shed some light for me.
      Can serialization happen when a chart hasn't finished loading up all the indicators? (like there is a deadlock in one of the Tasks of an indicator, or something)

      Comment


        #4
        Hello Zapzap,

        Were the indicators saved on charts and then an update imported? Have the indicators changed?

        What version of NinjaTrader 8 are you using?

        Below is a link on serializing brushes, and this would apply to datetime, timespan, custom classes, etc.
        https://ninjatrader.com/support/help...lor_inputs.htm
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X