Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using and Exporting External Assemblies

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

    Using and Exporting External Assemblies

    Hi,

    can anyone tell me the correct way to include external assemblies in your indicator export zip file, when those assemblies have both 32 and 64 bit versions, so that the indicator is imported into NT it also installs the correct external assemblies?

    Thanks,
    Will.

    #2
    Hi, I just asked the same question couple of days ago - we have to provide 2 zips, with 32 and 64 bit versions . To my suprise, when you import 32 bit dll in 32 bit Ninjatrader, it works then also in 64 bit Ninjatrader (at least for me it works, not sure if it's true for every dll). This way you could use only 32 bit dll, unless you really need the 64-bit version.

    Comment


      #3
      Thanks Mantak,

      when you say 2 zips, do you mean seperate zip files or adding my .dlls to the zip that ninja creates? is there any special naming convention so that ninja recognises these files as part of the same indicator and imports them at the same time?

      I'm sharing my indicators with some people who are fairly basic level computer users, so I want to make the process work automatically and for there to be no additional steps that they have to follow when doing an import, if possible.

      Will.

      Comment


        #4
        Hello Will,

        To you may add addition assemblies or DLLs file to your export by:

        1. Locate your base .zip distribution package
        2. Open the .zip
        3. Add to the .zip file your assemblies and/or your DLL files to the root directory of the .zip. These files cannot be behind any extra directory structures and must be directly in the root of the .zip

        For custom assemblies, you will also need to add to the root of the .zip a .txt file called AdditionalReferences.txt

        1. Bring up the Windows Start Menu
        2. Go to the Run field and type "notepad" without the quotes and press Enter
        3. In Notepad, type the name of your custom assembly and then save the file as a text file with the name "AdditionalReferences".

        Ex: If your custom assembly's name was MyCustomAssembly.dll and MyCustomAssembly.cs, in the AdditionalReferences.txt file you would type "MyCustomAssembly" without the quotes.

        Note: If you have multiple custom assemblies to add you can append each of the assembly's names into the same AdditionalReferences.txt file on new lines



        Also, when you Export an assembly using the NinjaTrader (64-bit), it will automatically create a 32-bit and 64-bit version of the file for you.
        JCNinjaTrader Customer Service

        Comment


          #5
          Hi JC,

          thanks for all the info, but there is one essential part of my question that I still dont have an answer to. I have created both 64bit and 32bit versions of my external references, that I want to be copied appropriately with the 64/32b versions of the NT created assemblies.

          Is there a way that I can put both the 64 and 32 bit versions of my assemblies into the zip and exsure that the correct ones are installed when the user imports?

          Thanks again.

          Comment


            #6
            The comment in post #2 would be accurate, cleanest solution would be having a dedicated zip install file for each environment.

            Comment


              #7
              Thanks Bertrand, but thats actually not the cleanest solution, not from the point of view of the people installing the indicator anyway... having a single install .zip file that correctly installed the appropriate 32/64 bit files is better. I've had people asking me "but which one do I have to install? the 32 or the 64?". Not all traders know what this means.

              So I would still like to find out if its possible to achieve this?

              Comment


                #8
                Hi dontpanic,

                There's unfortunately not a built in NinjaTrader solution for this, but you could look into a custom installer which would have its own way of identifying 64 or 32 bit environment. If your custom installer would be in ms environment, I located following page which could help:
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  ok, thanks for the info. I'll probably just stay with seperate installers - I'm sure that NT have this lined up for a future release

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  597 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  343 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  103 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  556 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  555 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X