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

ninjatrader crashes after startup

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

    ninjatrader crashes after startup

    everytime, i open NT, it crashes.
    the logs shows this.

    2021-10-30 20:02:45:936 ERROR: Strategy '245219647': unable to deserialize user data: There is an error in XML document (2, 2).
    2021-10-30 20:02:46:998 *************** unhandled exception trapped ***************
    2021-10-30 20:02:46:998 Object reference not set to an instance of an object.
    2021-10-30 20:02:46:998 System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
    at NinjaTrader.Gui.NinjaScript.StrategyRenderBase.Set State(State state)
    at NinjaTrader.NinjaScript.NinjaScriptBase.Finalize()

    i removed the xml under workspace folder hoping that it will get rid of any persisted data but still i cannot get NT to startup.
    what needs to be done to get NT started?
    Attached Files

    #2
    i started from scratch again ie blanked the C:\Users\xx\Documents\NinjaTrader 8 folder. Now i find that i get a new error and crash when i load the indicators panel and it shows this message before crashing.
    this message does not occur when i have the indicator pullbacksystem disabled but i cannot find anything wrong with this code. it used to work 2 days back properly.

    which part of this code seems messed up as it does compile properly

    Click image for larger version  Name:	BqMCwKL.png Views:	0 Size:	67.1 KB ID:	1176841
    Last edited by junkone; 10-31-2021, 11:49 AM.

    Comment


      #3
      Hello junkone,

      This typically indicates an error in the code of the strategy named 245219647.

      Likely this is an xml error from not using the XmlIgnore() property on public variables that are not string, int, double, or enum.


      What public variables are in your script? Are there public variables that do not have the XmlIgnore() attribute applied?
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by elirion, Today, 01:36 AM
      0 responses
      3 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by gentlebenthebear, Today, 01:30 AM
      0 responses
      2 views
      0 likes
      Last Post gentlebenthebear  
      Started by samish18, Yesterday, 08:31 AM
      2 responses
      9 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by Mestor, 03-10-2023, 01:50 AM
      16 responses
      389 views
      0 likes
      Last Post z.franck  
      Started by rtwave, 04-12-2024, 09:30 AM
      4 responses
      33 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Working...
      X