Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Manually Import dll files

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

    Manually Import dll files

    Hi

    I need help in manually importing strategy/indicator using pre-compiled DLL. How can we manually import dll files other then importing zip folder? We need to create an installer for NT that places all the NinjaScript assemblies in their appropriate folder without any user intervention. Can you guys guide us about where should we place the DLLs?

    Thanks

    #2
    tazz90, for a manual install you want to copy your DLL's to the Documents > NinjaTrader 7 > bin > custom folder. Upon restarting NT those would be loaded then, finally you want to add a reference to the main dll file (not the x86 or x64 ones) in the NinjaScript editor.

    Comment


      #3
      Import DLL

      Hello Bertrand,

      I have some DLLs that I would like to use within NT and be able to call the methods from my NT strategies. Per your instructions, I have copied the DLL to:

      Documents > NinjaTrader 7 > bin > custom folder. I have then opened the strategy, right-clicked and added the reference to the DLL in the Custom folder. However, when I try to run the strategy, I get this error message: "Could not load file or assembly".

      I have used these DLLs within other trading platforms without incident. They are simple C# DLLs written in Visual Studio 2010.

      Could you please advise what I am doing wrong?

      Thank you.

      Isaac

      Comment


        #4
        What target framework were those DLL's compiled with? Anything above 3.5 would unfortunately not work in this context.

        Comment


          #5
          Hello,

          The target framework is 4.0. Given that you state importing DLLs from frameworks greater than 3.5 doesn't work, could you please offer some alternate suggestions regarding how I can utilize my DLLs to import and call my utility methods within strategies? Thank you.

          Comment


            #6
            Unfortunately I would not have a workaround I could provide you with here, if those are you own DLL's you might be able to recompile them with a target framework of 3.5

            Our next major version upgrade is planned to support up to NET 4.5 then - I would not have an ETA here though.

            Comment


              #7
              OK. Thank you .

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              107 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              152 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              71 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              125 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              79 views
              0 likes
              Last Post PaulMohn  
              Working...
              X