Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with NtDirect.dll since updating to 8.0.27.0 64-bit

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

    Problem with NtDirect.dll since updating to 8.0.27.0 64-bit

    When running the program NTDirect.exe from Ninja8API.zip from here


    Get this error

    Click image for larger version

Name:	NtDirect.exe_error_2022-12-15.jpg
Views:	354
Size:	10.7 KB
ID:	1227715

    Running NinjaTraderClient.exe from the same zip file runs fine.

    The NtDirect.dll from previous version of Ninja worked fine.

    Help please.

    Thanks,
    Jim
    Attached Files

    #2
    Hello Galatea,

    Thanks for your post.

    Currently, the NtDirect.dll is not working on the API. This has been reported to the Development team and they are looking into this matter.

    Instead of using the NtDirect.dll you could use the NinjaTrader.Client.dll from the forum post linked below which does work without issue.



    Please let me know if I may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Has the NtDirect.dll been fixed yet? If so how do I get it?
      Thanks

      Comment


        #4
        Hello Galatea,

        Thanks for your note.

        A fix for this issue has not been implemented yet. I have just been informed that this will be implemented in the next major NinjaTrader version release, R28 (8.0.28.0).

        We do not have an estimated time for when the R28 will be released. That said, when this is implemented you will find information about the fix in the Release Notes section of the help guide.

        Release Notes: https://ninjatrader.com/support/help...ease_notes.htm

        Let me know if you have further questions.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Is there a way to downgrade to a previous version of NT8 to avoid the DLL issue until the fix is issued?
          Jdmtrader
          NinjaTrader Ecosystem Vendor - JDM Indicators

          Comment


            #6
            Hello Jdmtrader,

            Thanks for your note.

            You may follow the steps below to downgrade to the previous version of NinjaTrader.
            • If possible, copy your license key from the Control Center > Help > License Key.
            • Close all running applications.
            • Navigate to your Documents folder > Right click on the 'NinjaTrader 8' folder > Rename > rename the folder to 'NinjaTrader 8 OLD'. DO NOT delete this folder.
            • Uninstall NinjaTrader within Windows Control Panel.
            • Reboot your PC.
            • Once these steps are completed, download and install NT8 from the link below. The previous version will be found under the 'Prior Releases' section of the download page.
            • Once reinstalled, you will now have 2 NinjaTrader folders in your Documents, the old one and the new one. Open two file explorer windows and open the new one in one and the old one in another.
            • Drag the following items from the old folder to the new one (folders should automatically merge)
              • Config.xml and UI.xml
              • Workspaces folder (if it asks to overwrite the _Workspaces.xml file, say yes)
              • Templates folder (if it asks to overwrite anything, say no)
              • db folder (you can overwrite any files in here)
              • bin folder (do not overwrite ANY duplicate files).
            • After dragging the above items from the old folder to the new one, open the Config.xml file, locate the line in the file that says <DbType>SQLite</DbType>, change this line to <DbType>MsSqlCe</DbType>, and save the file.
            • Once complete, open NinjaTrader. You may get a few initial errors. Open a NinjaScript Editor and run a compile, then, if no additional errors are received, restart NinjaTrader and try again to import the strategy.
            Let me know if I can be of further assistance.​
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              I am having a developer write a script to bridge orders that are created in Metatrader5 and send them to NT8 via ATM. She is having difficulty getting it to work and claims NTDirect.DLL is not 64-bit but is 32 bit. Can you confirm whether this DLL is 32 or 64 bit?
              Jdmtrader
              NinjaTrader Ecosystem Vendor - JDM Indicators

              Comment


                #8
                Hello Jdmtrader,

                Thanks for your note.

                The NTDirect.dll found in the Windows/SysWOW64 folder is unmanaged and does not target any specific .NET version or bit architecture.

                It can be used with 64-bit applications and an unsupported example of using the NTDirect.dll for a 64-bit application could be found on the forum thread below.

                https://ninjatrader.com/support/foru...626#post793626

                The managed NinjaTrader.Client.dll has both 32-bit and 64-bit versions that target .NET 4.8 in NinjaTrader 8.0.26.1. This information could be found in the forum thread linked above.

                Please let me know if I may assist further.
                Brandon H.NinjaTrader Customer Service

                Comment


                  #9
                  My developer said, the 64 bit isn't the kind MetaTrader5 needs. The DLL files are not 64 bit versions. Their mention of 64 bit is referring to parameter and character assignments. Is this true?
                  Jdmtrader
                  NinjaTrader Ecosystem Vendor - JDM Indicators

                  Comment


                    #10
                    Hello Jdmtrader,

                    Thanks for your note.

                    As stated in my previous reply, the NTDirect.dll doesn't target a specific bit architecture (64-bit or 32-bit).

                    This could be used for 64-bit applications or 32-bit applications. That said, if the developer needs to use a 64-bit specific API, they could use the NinjaTrader.Client.dll (64-bit) noted in the forum thread linked in post # 8. Note that NinjaTrader.Client.dll targets .NET 4.8.

                    Please let me know if I may assist further.
                    Brandon H.NinjaTrader Customer Service

                    Comment


                      #11
                      My developer said that not targeting a 64-bit architecture specifically by NTDirect.DLL prohibits MetaTrader 5 from communicating with NT8, since NT8 expects unmanaged or native code through this DLL. And, the NinjaTrader.Client.dll referred to as being 64-bit is targeted at .NET programs, not native code. MT5 don't work directly with .NET code, so it can't see it as 64-bit or 32-bit. It is seen as managed code. This is my situation. If anyone could please help me find another way to make this work.

                      Jdmtrader
                      NinjaTrader Ecosystem Vendor - JDM Indicators

                      Comment


                        #12
                        Hello Jdmtrader,

                        Thanks for your note.

                        Our Development team is currently looking into the matter regarding NTDirect.dll and we will provide more information as soon as it is available.

                        Thank you for your patience.
                        Brandon H.NinjaTrader Customer Service

                        Comment


                          #13
                          Has this issue with NtDirect.dll been fixed in version 8.1.1.0?

                          Comment


                            #14
                            Hello Galatea,

                            Thanks for your note.

                            The NTDirect.dll has not been fixed yet for NinjaTrader 8 version 8.1.1.0.

                            When a fix is implemented for this you will find a note about it in the Release Notes section of the help guide.

                            Release Notes: https://ninjatrader.com/support/help...ease_notes.htm

                            Please let me know if I may further assist you.
                            Brandon H.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by fx.practic, 10-15-2013, 12:53 AM
                            5 responses
                            5,404 views
                            0 likes
                            Last Post Bidder
                            by Bidder
                             
                            Started by Shai Samuel, 07-02-2022, 02:46 PM
                            4 responses
                            95 views
                            0 likes
                            Last Post Bidder
                            by Bidder
                             
                            Started by DJ888, Yesterday, 10:57 PM
                            0 responses
                            8 views
                            0 likes
                            Last Post DJ888
                            by DJ888
                             
                            Started by MacDad, 02-25-2024, 11:48 PM
                            7 responses
                            159 views
                            0 likes
                            Last Post loganjarosz123  
                            Started by Belfortbucks, Yesterday, 09:29 PM
                            0 responses
                            8 views
                            0 likes
                            Last Post Belfortbucks  
                            Working...
                            X