Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error when "On The Fly" backtesting

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

    Error when "On The Fly" backtesting

    When I backtest on the fly, I always get a critical error, that causes me to have to restart NinjaTrader. It's when I change the instrument symbol and then the instrument year. An exception window pops up like in the image and I have to restart. This happens without fail on anything that I try. It's to the point to where On the Fly doesn't help because I have to add instruments to my instrument list anyway, making it unnecessary.


    The error in question:
    Code:
    ---------------------------
    Error
    ---------------------------
    NinjaTrader has detected a problem and needs to shut down. Information has been written to the trace file.
    
    Please restart NinjaTrader and send us an email via Help > Mail to Support and include information on how you may have encountered this problem.
    
    This email will automatically embed relevant trace file information to help us diagnose the problem.
    ---------------------------
    OK   
    ---------------------------
    Relevant part of trace file:
    Code:
    2009-10-16 11:57:27:307 Creating user defined methods files...
    2009-10-16 11:57:27:309 Instantiating serializers...
    2009-10-16 11:57:30:754 Registering chart styles...
    2009-10-16 11:57:30:902 Registering bars types...
    2009-10-16 11:57:34:656 Loading master instruments...
    2009-10-16 11:57:34:662 Loading instruments...
    2009-10-16 11:57:34:668 Loading default symbol list...
    2009-10-16 11:57:34:674 Loading available connections...
    2009-10-16 11:57:34:979 Connecting ATI server...
    2009-10-16 11:57:34:980 Cbi.AtiServer.Connect1
    2009-10-16 11:57:34:983 Setting global sim mode...
    2009-10-16 11:57:34:984 Syncronizing executions...
    2009-10-16 11:57:34:984 Cbi.AtiServer.ConnectNow: Port=36973
    2009-10-16 11:57:34:985 Cbi.AtiServer.ConnectNow2
    2009-10-16 11:57:35:030 Hiding splash...
    2009-10-16 11:57:35:178 Setting ATI...
    2009-10-16 11:57:35:179 ApplicationStart done, took 10.4 secs
    2009-10-16 12:00:04:651 Code.Editor.OnLoad: Failed to reference 'C:\Program Files (x86)\NinjaTrader 6.5\bin\AForge.Neuro.dll': System.ApplicationException: Could not load exported type data for assembly 'AForge.Neuro, Version=2.0.0.0, Culture=neutral, PublicKeyToken=2094f4ea39731d4f' and type 'AForge.Neuro.Learning.EvolutionaryLearning'. ---> System.IO.FileNotFoundException: Could not load file or assembly 'AForge.Math, Version=2.0.0.0, Culture=neutral, PublicKeyToken=abba2e25397ee8c9' or one of its dependencies. The system cannot find the file specified.
    File name: 'AForge.Math, Version=2.0.0.0, Culture=neutral, PublicKeyToken=abba2e25397ee8c9'
       at System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
       at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
       at System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
       at System.Reflection.RuntimeConstructorInfo.get_Signature()
       at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
       at System.Reflection.RuntimeConstructorInfo.GetParameters()
       at ai..ctor(k A_0, Type A_1)
       at k..ctor(Assembly A_0, String A_1, String A_2, String A_3, Boolean A_4)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    
       --- End of inner exception stack trace ---
       at k..ctor(Assembly A_0, String A_1, String A_2, String A_3, Boolean A_4)
       at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.a.a(c A_0)
       at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.a.a(c A_0)
       at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.AssemblyCodeRepository.Add(String assemblyName, DotNetProjectResolver projectResolver)
       at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver.AddExternalReference(String assemblyName)
       at NinjaTrader.Code.Editor.OnLoad(Object sender, EventArgs e)
    2009-10-16 12:20:45:813 in OnUnhandledThreadException
    2009-10-16 12:20:45:815 ********* exception trapped *********
    2009-10-16 12:20:45:816 Cannot access a disposed object.
    Object name: 'ComboBox'.
    2009-10-16 12:20:45:816    at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.ComboBox.CreateHandle()
       at System.Windows.Forms.Control.get_Handle()
       at System.Windows.Forms.Control.set_CaptureInternal(Boolean value)
       at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ComboBox.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2009-10-16 12:22:26:531 in OnUnhandledThreadException
    2009-10-16 12:22:26:539 ********* exception trapped *********
    2009-10-16 12:22:26:539 Cannot access a disposed object.
    Object name: 'ComboBox'.
    2009-10-16 12:22:26:539    at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.ComboBox.CreateHandle()
       at System.Windows.Forms.Control.get_Handle()
       at System.Windows.Forms.Control.set_CaptureInternal(Boolean value)
       at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ComboBox.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    #2
    I'm not sure what you're doing with your installation, but I strongly recommend NOT writing ANY file into the NT6.5 installation folder.

    This file:
    C:\Program Files (x86)\NinjaTrader 6.5\bin\AForge.Neuro.dll
    .. definitely is NOT coming from the NT6.5 standard installation and contributes to the confusion.

    I recommend a fresh setup:
    - creating a backup (File->Utilities->Backup)
    - uninstalling NT6.5
    - manually deleting <program files>/NinjaTrader 6.5 and <my documents>/NinjaTrader6.5
    - installing NT6.5 again
    - restore your data from backup
    - DON'T install any 3rd party components

    -> NT6.5 should work as expected

    After you've got confirmation that a standard NT6.5 setup works expected you should contact the author of the offending file above and ask for clarification.

    Comment


      #3
      This was happening long before I had external DLL's loaded into NT6.5

      Comment


        #4
        zwentz,

        Please try a clean reinstall as per Dierk's earlier post then. That should help.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          zwentz,

          Please try a clean reinstall as per Dierk's earlier post then. That should help.
          I can confirm this issue from my side too. with clean install and no third party files
          Last edited by roonius; 10-17-2009, 08:25 PM.

          Comment


            #6
            Sorry, I'm confused. Are you saying you can having line below in your traces:
            >> C:\Program Files (x86)\NinjaTrader 6.5\bin\AForge.Neuro.dll

            Then you DEFINITELY had installed a 3rd part product.

            Comment


              #7
              I'm saying that this was happening before I had a reference DLL in there, which is what that is, and the other guy is confirming that he has the same problem on a clean install with no third party products.

              Also, to confirm, I did a clean install and I still have the same problem. I knew I would because I've been having it since day one with NinjaTrader.

              Comment


                #8
                It's real simple: the offending DLL will NOT be there on a clean NT6.5 installation. There is nothing to dispute.

                I suggest proceeding as per my post to get a clean installation. We then could take next step in case you installation still is not stable.

                Comment


                  #9
                  I know I just told you, I did a CLEAN install and it still has the SAME problem. And so did the other guy. Some support you guys have.

                  Comment


                    #10
                    Please double check you executed this step:
                    >> - manually deleting <program files>/NinjaTrader 6.5 and <my documents>/NinjaTrader6.5

                    .. then the offending file DEFINITELY no longer will be there.

                    Comment


                      #11
                      Just forget it. You refuse to try and understand what I'm saying and so you can't provide support.

                      Comment


                        #12
                        Can you please post a trace snippet of the exception you now get? Thanks.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by lorem, Today, 09:18 AM
                        0 responses
                        1 view
                        0 likes
                        Last Post lorem
                        by lorem
                         
                        Started by hazylizard, Today, 08:38 AM
                        4 responses
                        10 views
                        0 likes
                        Last Post hazylizard  
                        Started by geddyisodin, Today, 05:20 AM
                        2 responses
                        18 views
                        0 likes
                        Last Post geddyisodin  
                        Started by Max238, Today, 01:28 AM
                        5 responses
                        47 views
                        0 likes
                        Last Post Max238
                        by Max238
                         
                        Started by giulyko00, Yesterday, 12:03 PM
                        3 responses
                        13 views
                        0 likes
                        Last Post NinjaTrader_BrandonH  
                        Working...
                        X