Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Serialization Error

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

    Serialization Error

    I continue to receive an intermittant indicator serialization error at runtime.

    I disconnect my data feed and repair my DB which usually fixes the issue but I would like to know how to circumvent this issue before it occurs again.

    #2
    Hello,

    Thank you for your post.

    Who are you connected to and what is the exact error you receive?
    -Check the log tab in NinjaTrader for errors.
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      I am connected to Zen-Fire and here is a snippet of my log file:

      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.Bollinger' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.VolumeUpDown' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.VOLMA' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.Bollinger' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.VolumeUpDown' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.VOLMA' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.Bollinger' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:54 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.Bollinger' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.VolumeUpDown' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.VOLMA' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.Bollinger' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.VolumeUpDown' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.VOLMA' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.Bollinger' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:48:55 AM|0|4|Indicator 'NinjaTrader.Indicator.XYZ' could not be serialized. Please refer help for more information on serializing indicators.
      4/22/2009 8:50:20 AM|1|4|Database repaired

      Comment


        #4
        Hello,

        Please go to Tools --> Edit NinjaScript --> Indicator and open any indicator and press F5 to compile.
        You will have to debug an NinjaScript files that have errors.
        Ray S.NinjaTrader Customer Service

        Comment


          #5
          All indicators compile correctly.

          These indicators have been working fine for some time but intermittantly I get the Serilization error.

          Normally when I repair my DB the error go away but I would like to know how to remove the issue before they occur.

          Comment


            #6
            It looks like your indicator XYZ is causing an issue.

            -What steps do you take to reproduce the issue?
            -If you remove this indicator, does the issue persist?
            (Test this by going to \Documents\NinjaTrader6.5\bin\custom\indicator\and moving the indicator from this file, then restart NinjaTrader.)
            Ray S.NinjaTrader Customer Service

            Comment


              #7
              Is there any explanation as to why this happens intermittantly and not consistently?

              It will work for days without an issue and then it hits.

              Sounds like a different error.

              Any ideas on what needs to change in the indicator?

              Comment


                #8
                There are many reasons why this may happen.... try doing a search on 'serialization' in this Support Forum.
                Ray S.NinjaTrader Customer Service

                Comment


                  #9
                  Already have - will look again to see if I have missed anything

                  Comment


                    #10
                    This may also be due to a corrupt Microsoft .NET.
                    1.) Uninstall any instance of Microsoft .NET Framework from the Window's Control Panel.
                    2.) Reinstall .NET from this page: http://www.ninjatrader.com/webnew/su...ationguide.htm
                    Ray S.NinjaTrader Customer Service

                    Comment


                      #11
                      Will try this tonight.
                      I have recently rebuilt my machine with a clean install of XP - Removed Vista.
                      Will see if this helps.
                      Appreciate your help!

                      Comment


                        #12
                        So far so good.
                        Looks like this might have fixed the issue.
                        Thanks,

                        Comment


                          #13
                          Same problem, different OS

                          ive just upgraded my pc and now am on vista. Recompiled my custom indicators and found that ive got the same problems gyoung had.

                          is there a way i can reinstall the .NET framework on vista? Doesnt seem possible. Also, my indicators compile properly.

                          Comment


                            #14
                            Iangohye,
                            The reason I removed Vista is that I was experiencing too many issues to have a stable trading platform. My environment has been much more stable since I rolled back to XP.
                            I am developing custom indicators and it was very frustrating to have issues related to Vista.
                            I wish you the best.

                            Comment


                              #15
                              Hello iangohye,

                              I suggest to follow the instructions at the link below to repair .NET Framework.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              110 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              59 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              37 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              41 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              78 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X