Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Loading GSL External Assembly

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

    Loading GSL External Assembly

    Hi,

    I'm trying to build a strategy that use GSL(GNU Statistical Library) I have the assembly and I add it as a reference and it compile with no problems.
    When I try to run the strategy I get the following error:
    **NT** Error on calling 'OnBarUpdate' method for strategy 'GSLt/f0bea751fd314c4cbe28b653e9027ea7': Could not load file or assembly 'GSL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    I copied the dlls to the Custom\bin and did all NT say in specification.
    Does someone know how to slove such problem?

    EDIT: I have coded a C# wrapper because the original GSL is C++, so I add those C++ dlls as resources to my C# wrapper solution, maybe I need to find a way to add them to the NT solution. Can it be done?

    Tx in advance!
    Last edited by freewind; 10-17-2011, 03:28 AM.

    #2
    freewind, did you restart NT7 already after copying in the DLL's and adding the references?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I found the problem, it is C# issue and not NT.
      First you need to make your dlls COM visible and second it should match the platform.
      I was trying to load them into NT 64bit version but GSL is compiled for 32bit.
      Now it run correctly on NT 32bit.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by andrewtrades, Today, 04:57 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by chbruno, Today, 04:10 PM
      0 responses
      3 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      436 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      7 views
      0 likes
      Last Post FAQtrader  
      Started by rocketman7, Today, 09:41 AM
      5 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X