Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orders not going through to MB Trading

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

    Orders not going through to MB Trading

    Hi,

    I have licensed NinjaTrader but am unable to get it set up to trade through my account at MB Trading.

    It all looks good, I am connected to MB and receiving data, but when I place an order it does not go through.

    The order shows up on the chart, but once it is there, I am unable to cancel or modify it, and it never shows up at MB. I have to close down Ninja to get it to remove the order from the chart.

    I looked at the log and found this:

    ----
    ######## Default
    Master instrument f9e74633624a49b1a108d5db1108a2cf: unable to deserialize user data: Unable to generate a temporary class (result=1).
    -------

    Also, I am not sure it is related, but I get the attached error anytime I try to change preferences, although they do seem to save. Please see attached jpg at the bottom of this message, as well as the info from the error message Details tab below.

    Thanks,
    rbrow

    ERROR MESSAGE DETAILS:
    ------------------------

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.InvalidOperationException: Unable to generate a temporary class (result=1).
    error CS1514: { expected
    error CS1001: Identifier expected
    error CS1031: Type expected
    error CS1519: Invalid token '{' in class, struct, or interface member declaration
    error CS1514: { expected
    error CS1001: Identifier expected
    error CS1031: Type expected
    error CS1519: Invalid token '{' in class, struct, or interface member declaration

    at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence)
    at System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
    at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
    at System.Xml.Serialization.XmlSerializer.GenerateTem pAssembly (XmlMapping xmlMapping, Type type, String defaultNamespace)
    at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
    at System.Xml.Serialization.XmlSerializer..ctor(Type type)
    at NinjaTrader.Cbi.XmlSerializerDictionary.get_Item(T ype type)
    at NinjaTrader.Cbi.Serializer.Serialize()
    at NinjaTrader.Cbi.MasterInstrument.SaveXml()
    at NinjaTrader.Cbi.MasterInstrument.OnUpdating(Transa ction transaction)
    at Wilson.ORMapper.Internals.Instance.PersistChanges( Transaction transaction, PersistDepth persistDepth, Boolean parentDeleted)
    at Wilson.ORMapper.Transaction.PersistChanges(ICollec tion entityObjects, PersistDepth persistDepth)
    at Wilson.ORMapper.ObjectSpace.PersistChanges(ICollec tion entityObjects, PersistDepth persistDepth)
    at Wilson.ORMapper.ObjectSpace.PersistChanges(Object entityObject, PersistDepth persistDepth)
    at NinjaTrader.Gui.InstrumentEditor.btnOk_Click (Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
    at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
    at System.Windows.Forms.NativeWindow.Callback (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
    ----------------------------------------
    NinjaTrader
    Assembly Version: 5.0.1000.7
    Win32 Version: 5.0.1000.7
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/NinjaTrader.exe
    ----------------------------------------
    NinjaTrader.Core
    Assembly Version: 5.0.1000.7
    Win32 Version: 5.0.1000.7
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/NinjaTrader.Core.DLL
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
    ----------------------------------------
    System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
    ----------------------------------------
    460hlr6m
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    WilsonORMapper
    Assembly Version: 4.2.0.1
    Win32 Version: 4.2.0.1
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/WilsonORMapper.DLL
    ----------------------------------------
    System.Data
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
    ----------------------------------------
    System.Data.OracleClient
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.data.oracleclient/1.0.5000.0__b77a5c561934e089/system.data.oracleclient.dll
    ----------------------------------------
    5bjfjvlw
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Management
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.management/1.0.5000.0__b03f5f7f11d50a3a/system.management.dll
    ----------------------------------------
    cvigurpc
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    fvowefmd
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    zhzx818n
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    NinjaTrader.Custom
    Assembly Version: 5.0.1000.7
    Win32 Version: 5.0.1000.7
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/Custom/NinjaTrader.Custom.dll
    ----------------------------------------
    Accessibility
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
    ----------------------------------------
    SourceGrid2
    Assembly Version: 2.2.0.0
    Win32 Version: 2.2.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/SourceGrid2.DLL
    ----------------------------------------
    SourceLibrary
    Assembly Version: 1.2.3.0
    Win32 Version: 1.2.3.1
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/SourceLibrary.DLL
    ----------------------------------------
    petrm17f
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    5on5zc8p
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    pqviawye
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    3lpxrz53
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Design
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.design/1.0.5000.0__b03f5f7f11d50a3a/system.design.dll
    ----------------------------------------
    d_pyqhc7
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    r_m1yshk
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    cid9wp0x
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    uvpwvhyx
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------
    NinjaTrader.Mbt
    Assembly Version: 5.0.1000.7
    Win32 Version: 5.0.1000.7
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/NinjaTrader.Mbt.DLL
    ----------------------------------------
    MBTCOMLib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/MBTCOMLib.DLL
    ----------------------------------------
    MBTORDERSLib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/MBTORDERSLib.DLL
    ----------------------------------------
    MBTQUOTELib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/MBTQUOTELib.DLL
    ----------------------------------------
    CustomMarshalers
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/custommarshalers/1.0.5000.0__b03f5f7f11d50a3a/custommarshalers.dll
    ----------------------------------------
    AxMBTGRIDSLib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/AxMBTGRIDSLib.DLL
    ----------------------------------------
    AxMBTOELib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/AxMBTOELib.DLL
    ----------------------------------------
    AxMBTQQLib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/AxMBTQQLib.DLL
    ----------------------------------------
    MBTOELib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/MBTOELib.DLL
    ----------------------------------------
    MBTGRIDSLib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/MBTGRIDSLib.DLL
    ----------------------------------------
    MBTQQLib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%205/bin/MBTQQLib.DLL
    ----------------------------------------
    hnkptpjw
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.1085
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just in time (JIT) debugging, the config file for this
    application or machine (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the machine
    rather than being handled by this dialog.
    Attached Files

    #2
    imported post

    Please try this:
    a) Tools->Options->Misc->Repair DB
    b) if this does not help: get a fresh DB http://www.ninjatrader-support.com/a...Fresh-Database

    Thanks

    Comment


      #3
      imported post

      Hi Dierk,

      Thanks for the reply.

      I just tried both solutions you presented below, but I get the same errors.

      In fact, after trying both solutions without success, I uninstalled NinjaTrader, deleted the NinjaTrader 5 folder, emptied the recycle bin, reinstalled the aplication, and the errors are still there.

      On the fresh install, I again followed the steps below and deleted the .db file. I am pretty certain I have removed the .db file completely and started with a clean one, but it looks like any new one generates these same errors:

      1 - Unhandled Exception error pop up (when trying to save preferences. Details below in thread.

      2 - Placing an order never makes it to MB's server, it does not show in the DOM or the Order Entry window, but it does show on the chart, where I am unable to cancel it or move it. This only happens on live or demo accounts, in Sim mode it all works fine.

      Note - I noticed something new, if I try to move the order from the chart, it won't move or delete, but if I change the number of contracts, the added contracts will show up where I tried to move the initial contracts too. So I will have two different order placements showing on the chart in different places. Again, this is just on the chart, nothing shows in the DOM or Order window, and it is only on my MB Live or Demo accounts.

      After trying to place an order, the log file reads:
      Cbi.Order.SubmitNow: exception caught: Object reference not set to an instance of the object.

      Please let me know your thoughts, I would love to get up and running with Ninja.

      Thanks again,
      rbrow



      Dierk Droth wrote:
      Please try this:
      a) Tools->Options->Misc->Repair DB
      b) if this does not help: get a fresh DB http://www.ninjatrader-support.com/a...Fresh-Database

      Thanks

      Comment


        #4
        imported post

        Severla issues which probably all have the same cause. Let's find out:
        go to instrument manager, double click on e.g. ES and then press OK. Does it work or do you get the problems reported in your first post.

        Thanks

        Comment


          #5
          imported post

          I get the same Unhandled Exception error.

          Here are the repo steps for where it fails:

          I go Tools>Instrument Manager and then nav to ES
          I double click on ES, and the Instrument Editor opens
          It is after I click 'OK' on the Instrument Editor that the Error window appears.

          Thanks

          Comment


            #6
            imported post

            Thanks for confirmation. Apparently your installation is somehow screwed up, meaning there potentially is an incorrect/incomplete intallation of NT or any of it's prerequesites or there is a version clash between different components.

            Let's start from here:
            - double check installation pre-requesites
            - which version do you have installed?
            * Window OS?
            * MBT Nav?
            * .NET runtime?

            Comment


              #7
              imported post

              Also: Please check your HW configuration:
              - RAM size
              - available hard disk space

              Comment


                #8
                imported post

                Ok, sounds good. Here is all the info:

                NinjaTrader v.5.0.1000.7
                Windows XP Home, Ver 2002, Service Pack 2
                .NET Framerwork 1.1
                .NET Framework 1.1 Hotfix
                MBT Navigator v 10.13.0.8
                1 GB RAM
                11.2GB Free Hard Disk space
                MSJet v 4.0.8618.0 - (It looks like some of the errors at JT related..maybe I should just reinstall this? What do you think?)
                MDAC v. 2.7 - (It looks like this is one rev lower than the install prerequisite listed. I am going to install the latest and will update you)

                Thanks for all your help with this, much appreciated!


                Comment


                  #9
                  imported post

                  Ok, I downloaded the MDAC component checker from Microsoft. It says I have installed MDAC 2.8. SP1 on Windows XP SP2.

                  I won't allow me to install the MDAC itself as it says it is already part of this version of Windows.

                  Comment


                    #10
                    imported post

                    Hmmm strange ... please try MBT Nav 10.13.0.7.

                    Comment


                      #11
                      imported post

                      Good news and bad news. I contacted MBTrading and managed to get the older version of Navigator and installed it. This did in fact solve the order issue I was seeing. The DOM, Chart, Log, etc appear to deal with orders as expected now.

                      As you suggested, it appears the incompatibilty was with the newer Navigator and downgrading resolved.

                      However, in finding the older version of Navigator, two different people at MB both told me downgrading was not a solution because as of next week, they are no longer allow logins through Navigator 10.13.07. They are foring the upgrade.

                      Are you aware of the mandatory upgrade, and if the newer version of Navigator is causing this prob with Ninja, will there be a fix before MB's forced upgrade next week? If not, how will MB users resolve?


                      Thanks,
                      rbrow

                      PS - I am still seeing the Unhandled Exception error when saving as mentioned below. The exception is not terminal, but it is of concern.

                      Comment


                        #12
                        imported post

                        a) 10.13.0.7 support will be discontinued by MBT by 2006-02-01
                        b) we will have a new NT5 release supporting 10.13.0.8 before

                        Thanks

                        Comment


                          #13
                          imported post

                          ok, yes, I saw the note from MB last night. Great news that NT will have an update too.

                          Thanks for all the help getting me up an running! Very much appreciated!

                          rbrow

                          Comment


                            #14
                            imported post

                            I used Ninja to trade through MB yesterday, but couldn't today. I tried multiple times, but when trying to login it would not load data.

                            A look in the log shows this error:

                            Mbt.Callback.UnAccountLoaded: Exception caught. Unable to generate a temporary class {result=1}
                            error CS1514: {expected
                            error CS1001:: Identifuer expected
                            error CS1031: Type expected
                            error CS1519: Invalid token '{' in class struct or interface member declaration
                            error CS1514: { expected
                            error CS1001: Identifier expected
                            error CS1031: Type expected
                            error CS1519: Invalid token '{' in class struct or interface member declaration

                            Any idea why this may be happening?

                            Thanks

                            Comment


                              #15
                              imported post

                              Oh, forgot to mention, I was able to open MB Navigator app stand alone and it worked fine. I still am using 10.13.07...

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by bortz, 11-06-2023, 08:04 AM
                              47 responses
                              1,606 views
                              0 likes
                              Last Post aligator  
                              Started by jaybedreamin, Today, 05:56 PM
                              0 responses
                              9 views
                              0 likes
                              Last Post jaybedreamin  
                              Started by DJ888, 04-16-2024, 06:09 PM
                              6 responses
                              19 views
                              0 likes
                              Last Post DJ888
                              by DJ888
                               
                              Started by Jon17, Today, 04:33 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post Jon17
                              by Jon17
                               
                              Started by Javierw.ok, Today, 04:12 PM
                              0 responses
                              15 views
                              0 likes
                              Last Post Javierw.ok  
                              Working...
                              X