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 burtoninlondon, Today, 12:38 AM
      0 responses
      5 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      13 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X