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 Segwin, 05-07-2018, 02:15 PM
              14 responses
              1,789 views
              0 likes
              Last Post aligator  
              Started by Jimmyk, 01-26-2018, 05:19 AM
              6 responses
              837 views
              0 likes
              Last Post emuns
              by emuns
               
              Started by jxs_xrj, 01-12-2020, 09:49 AM
              6 responses
              3,293 views
              1 like
              Last Post jgualdronc  
              Started by Touch-Ups, Today, 10:36 AM
              0 responses
              13 views
              0 likes
              Last Post Touch-Ups  
              Started by geddyisodin, 04-25-2024, 05:20 AM
              11 responses
              63 views
              0 likes
              Last Post halgo_boulder  
              Working...
              X