Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Matlab NT integration

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

    Matlab NT integration

    Error on calling 'OnBarUpdate' method for indicator 'BollingerKalmanPairsTrade' on bar 0:
    Could not load file or assembly 'TradeSignalITradeSignalBoKal, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
    The system cannot find the file specified.

    Dear Support !

    I am in pain. I do not have a clue how to proceed.
    My compiled matlab code works like a charm in Visual Studio c#, however Ninjatrader is stuck with the above error.

    1) dlls are compiled into .net version 3.5, 64bit, type-safe API
    2) I use NT 64 bit
    2) they are in the bin\custom directory
    3) I restarted NT and reboot the machine, etc.

    How can I debug what is wrong ?

    Thanks a lot
    Last edited by arnold.horvath; 09-14-2013, 02:54 PM.

    #2
    Hello arnold.horvath,

    Thank you for your post.

    Is the 'TradeSignalITradeSignalBoKal.dll' referenced in NinjaTrader? When you right click in the NinjaScript Editor > select References > do you see all appropriate references added?

    Do all NinjaScript files compile when you go to Tools > Edit NinjaScript > Indicator > select any indicator > OK > and when the NinjaScript Editor loads and you press F5 to compile? Or do you receive any error messages? If so, what do these errors report?

    I look forward to your response.

    Comment


      #3
      Hi Patrick !

      Thank you for the answer.
      The dll is referenced and the compilation is without errors.

      I made it work in the end, but not the Type-Safe interface way.

      The MWArray method is working, no matter how ugly it is with the flood of casts and related exceptions...

      Comment


        #4
        Originally posted by arnold.horvath View Post
        Hi Patrick !

        Thank you for the answer.
        The dll is referenced and the compilation is without errors.

        I made it work in the end, but not the Type-Safe interface way.

        The MWArray method is working, no matter how ugly it is with the flood of casts and related exceptions...
        You may want to take a look at LabSharp (c# matlab wrapper):


        It is not maintained anymore but with some bug fixing (eg. you would have to rewrite CreateStruct method yourself as older matlab allowed for createarray(type struct) - not anymore) you may have it working fine.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X