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 AaronKoRn, Today, 09:49 PM
              0 responses
              11 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Today, 08:42 PM
              0 responses
              10 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Today, 07:51 PM
              0 responses
              11 views
              0 likes
              Last Post strategist007  
              Started by StockTrader88, 03-06-2021, 08:58 AM
              44 responses
              3,980 views
              3 likes
              Last Post jhudas88  
              Started by rbeckmann05, Today, 06:48 PM
              0 responses
              9 views
              0 likes
              Last Post rbeckmann05  
              Working...
              X