Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

External DLL

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

    External DLL

    NinjaTrader scripts can use External DLLs. I have an External DLL I want to use in my NinjaTrader script.

    This External DLL, MyMarketData, has a default constructor.

    Using a Windows application, I was able to include a reference to the MyMarketData external DLL, compile it, use it without errors, make calls to its' methods and properties (in other words, the default constructor of MyMarketData DLL is working correctly).

    My NinjaTrader script compiles without error. I checked the log and there is no error upon compilation.

    Yet, when I attempt to add the indicator to the chart, it complains "Unable to create instance of indicator 'NinjaTrader.Indicator.MyIndicator'. Most likely the implementation no longer exists, or there is no default constructor defined, or the default constructor does not work correctly: ...."

    using MyMarketData;
    ...
    namespace NinjaTrader.Indicator
    {
    /// <summary>
    ///
    /// </summary>
    [Description("")]
    public class MyIndicator : Indicator
    {
    MyMarketData.Capture myCapture = new MyMarketData.Capture();

    #2
    Unfortunately this is beyond what we can provide support for.

    Hint: the constructor of MyIndicator likely throws an exception as it tries to access the external assembly. Try adding a try/catch block and Print() the exception.

    Comment


      #3
      same exact problem

      any pointer much appreciated. you are clearly way ahead of me. 6 years later the same problem exists in the NT platform. Please see my post:

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Powerbucker, Yesterday, 05:09 PM
      2 responses
      14 views
      0 likes
      Last Post Powerbucker  
      Started by DerkWehler, 11-27-2024, 11:56 AM
      16 responses
      50 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by MikM45, Today, 03:10 AM
      2 responses
      9 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by londonby, 10-31-2024, 03:09 PM
      2 responses
      42 views
      0 likes
      Last Post KenyaFuentes  
      Started by ezrollin, 02-26-2022, 11:14 PM
      14 responses
      306 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X