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 ageeholdings, Today, 07:43 AM
      0 responses
      3 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X