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 Aviram Y, Today, 05:29 AM
      0 responses
      2 views
      0 likes
      Last Post Aviram Y  
      Started by quantismo, 04-17-2024, 05:13 PM
      3 responses
      25 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by ScottWalsh, 04-16-2024, 04:29 PM
      7 responses
      34 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cls71, Today, 04:45 AM
      0 responses
      6 views
      0 likes
      Last Post cls71
      by cls71
       
      Started by mjairg, 07-20-2023, 11:57 PM
      3 responses
      217 views
      1 like
      Last Post PaulMohn  
      Working...
      X