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.
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        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.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              OK. Thank you .

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by mjairg, 07-20-2023, 11:57 PM
              3 responses
              213 views
              1 like
              Last Post PaulMohn  
              Started by TheWhiteDragon, 01-21-2019, 12:44 PM
              4 responses
              544 views
              0 likes
              Last Post PaulMohn  
              Started by GLFX005, Today, 03:23 AM
              0 responses
              3 views
              0 likes
              Last Post GLFX005
              by GLFX005
               
              Started by XXtrader, Yesterday, 11:30 PM
              2 responses
              12 views
              0 likes
              Last Post XXtrader  
              Started by Waxavi, Today, 02:10 AM
              0 responses
              7 views
              0 likes
              Last Post Waxavi
              by Waxavi
               
              Working...
              X