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

Export indicator with unmanaged dll

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

    Export indicator with unmanaged dll

    Hi,

    I have an indicator that references an unmanaged dll. I created an export zip and then added this dll to this zip. This addon installs and the unmanaged dll is copied to the Custom directory. However, when I run the indicator I get an error:

    >> Unable to load DLL 'x64\my_dll': The specified module could not be found.

    Where is the x64 directory located?

    Thanks
    Last edited by AiTrading; 07-18-2022, 12:13 PM.

    #2
    Hello AiTrading,

    Thanks for your post.

    It seems like the DLL might be located in a sub-folder named 'x64'.

    The DLL that you are referencing would need to be added to the Documents/NinjaTrader 8/bin/Custom folder and NOT within any sub-folders.

    NinjaTrader would not be able to see the DLL if it is located in a sub-folder.

    Let me know if I may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hey AiTrading,

      Is your exported indicator in a zip folder? If so, create a new folder, move that zip file in new folder, then extract the zip file inside that new folder. Copy the exported indicator file (It should have a file name extension called .cs) then paste it in NinjaTrader 8\bin\Custom\Indicators. You should be able to use the exported indicator.

      I hope this is helpful to you.

      I build useful software systems for financial markets
      Generate automated strategies in NinjaTrader : www.stratgen.io

      Comment


        #4
        Hi woltah231,

        Thank you for the suggestion.

        The problem is that this DLL depends on a VS distribution that doesn't exist on the test machine.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        20 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        21 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X