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 WHICKED, Today, 12:56 PM
        2 responses
        14 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Felix Reichert, Today, 02:12 PM
        0 responses
        1 view
        0 likes
        Last Post Felix Reichert  
        Started by Tim-c, Today, 02:10 PM
        0 responses
        1 view
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by cre8able, Today, 01:16 PM
        2 responses
        9 views
        0 likes
        Last Post cre8able  
        Started by chbruno, 04-24-2024, 04:10 PM
        3 responses
        49 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X