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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X