Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot reference NTDirect.dll

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

    Cannot reference NTDirect.dll

    I'm running Visual Studio 2008, and have a console application with the following code:

    using System;
    using NinjaTrader.Cbi;
    using NinjaTrader.Client;
    using NinjaTrader.Data;

    namespace NTClient
    {
    class Program
    {
    static void Main(string[] args)
    {
    }
    }
    }

    When I attempt to add a reference to NTDirect.dll, I receive the following error message:

    A reference to 'C:\Program Files (x86)\NinjaTrader 6.5\bin\NtDirect.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

    Since I am browsing to this file directly, the problem must be that Visual Studio 2008 considers it to be an invalid assembly or COM component.

    How can I fix this?

    I have checked all other posts involving ntdirect.dll and have not found this particular issue --- others seem to be able to add the reference.

    I have .NET 2.0 and .NET 3.5 installed. The project is set to target .NET 2.0 and x86.

    #2
    There is a .NET sample application available at <install dier>/bin/AutoTrader/NinjaTraderCSharpSampleApplication.zip. I suggest proceeding along these lines.

    Comment


      #3
      Cannot reference NTDirect.dll

      I am afraid this sample does not help. I want to code a custom external data feed and it is my understanding that NTDirect.dll is what you use, but again, I can't add that .dll to my project or open it in the Object Browser.

      Comment


        #4
        Are you trying to the .NET or COM interface? The support for COM has be deprecated unfortunately.

        What I can suggest is this - uninstall NT, delete all occurances found of NTDirect.dll and then reinstall fresh. Then retry referencing it...

        Comment


          #5
          Bertrand,

          I'm getting a similar error here with latest NT7. In the docco, (http://www.ninjatrader.com/support/h...?functions.htm)

          it seems to state that we can use the NTdirect.dll file to drive data to NT.

          As in my other post tonight, I'm trying to send bid/ask data to NT, and I believe this is how to do this.

          Is there any example code that shows communicating to these dll functions from an external application?

          thanks
          Daniel

          Comment


            #6
            Hi Daniel, would you mind contacting me directly at support at ninjatrader dot com?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            23 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            120 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            63 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            41 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            45 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X