Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

import zip with DLL and AdditionalReferences

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

    import zip with DLL and AdditionalReferences

    i noticed that exporting an open-source indicator that references an external DLL will add a text file named AdditionalReferences ... and if i manually add the DLL into the root of the zip file, NT7 will magically connect the dots for me ... this is fantastic!

    but if i export a custom indicator as a complied DLL and then add the AdditionalReferences text file and an external DLL into the root of the zip, NT7 doesn't like that so much.

    i also tried manually copying the external DLL into the bin/Custom directory (without manually adding the References), and then including the AdditionalReferences text file in the root of the zip with my compiled indicator, and NT7 didn't like that either.

    with that said ... i wanted to clarify two things:
    1. is it correct to assume that NT7's import will not support more than one DLL in the zip file?
    2. is it also correct to assume that AdditionalReferences text file does not work when importing compiled DLL indicators?

    guessing that the answers to #1 and #2 are both "correct, that is not supported", i'm curious to know if anyone within the community has been able to use the built-in NT7 import utility to:
    a. import a compiled indicator (DLL)
    b. that references an external DLL library (eg. getting NT7 to add the "references" during import)
    c. and copying that external library into the bin/Custom folder
    d. without using a custom installer

    cheers,
    -e

    #2
    e-man, I believe it should work for non open source scripts and multiple additional references as well - http://www.ninjatrader.com/support/h..._procedure.htm

    What errors are you getting or does it just 'silently' fail for you?

    Thanks

    Comment


      #3
      hmmm, i wasn't following the "official" steps in the link you outlined ... thank you for the link -- that looks quite promising ... i will try again and then report back success/fail later today.

      cheers,
      -e

      Comment


        #4
        here's the error screenshot:
        Click image for larger version

Name:	error.png
Views:	1
Size:	19.3 KB
ID:	857351

        and here are the contents of the archive i'm trying to import, including the AdditionalReferences text file:
        Click image for larger version

Name:	archive.png
Views:	1
Size:	36.2 KB
ID:	857352

        here are the steps i took:
        1. manually copy External.DLL into the bin/Custom directory
        2. create new indicator MyIndicator in NT7
        3. right-click add references to External.DLL
        4. compile MyIndicator and verify all is well
        ---
        5. export MyIndicator and select compiled assembly
        6. add AdditionalReferences to zip export (specifying both MyIndicator and External)
        7. copy External.DLL into zip export
        (see second screenshot above for contents of zip export after these steps)
        ---
        8. remove External.DLL from bin/Custom
        9. remove MyIndicator
        10. open UserDefinedMethods custom indicator, remove External.DLL reference, and compile
        11. close NT7
        ---
        12. open NT7 and import zip (with error)

        let me know if you need any additional info or have any thoughts.

        cheers,
        -e

        Comment


          #5
          e-man, if you remove MyIndicator open source from NT, compile and then retry importing this zip - would that change the outcome?

          Comment


            #6
            yes, i think i did what you're asking:
            > step 9: remove MyIndicator
            > step 10: open UserDefinedMethods and compile

            then i took an extra step of closing down NT and then opening it fresh (which also does a compile on start up, i believe)

            when i import the zip, i still get the error.

            is that what you meant? or did i misunderstand?

            cheers,
            -e

            Comment


              #7
              e-man, what methods did you reference in the MyIndicator.cs - if you drop the created DLL directly in the bin > custom folder and then restart & recompile - which duplicate method throws the error for you?

              Thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              607 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              353 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              560 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              561 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X