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 TanyaD, 06-17-2024, 10:07 AM
              7 responses
              28 views
              0 likes
              Last Post TanyaD
              by TanyaD
               
              Started by smartromain, Today, 11:02 PM
              0 responses
              3 views
              0 likes
              Last Post smartromain  
              Started by mmiterli, 07-10-2023, 03:48 AM
              7 responses
              135 views
              0 likes
              Last Post SergeyFXJ  
              Started by affilife, 02-17-2024, 09:53 AM
              4 responses
              116 views
              0 likes
              Last Post rjm1903
              by rjm1903
               
              Started by AdamDJ8, Today, 08:29 PM
              0 responses
              4 views
              0 likes
              Last Post AdamDJ8
              by AdamDJ8
               
              Working...
              X