Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

External DLLs

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

    External DLLs

    Is there a way to add to my indicator/strategy external DLLs and use their classes and methods?

    Thanks

    #2
    Hello kiss987,

    Thank you for your response.

    This is possible but you must add the reference by right clicking in your NinjaScript Editor --> select References --> Add --> navigate to your .dll --> Open.

    Comment


      #3
      Is there a more detailed explanation somewhere on NT7 help or online documentation?

      Thank you

      Comment


        #4
        Hello kiss987,

        Thank you for your response.

        You can find information on how to add a reference at the following link: http://www.ninjatrader.com/support/h...indicators.htm

        Comment


          #5
          Hi

          I've created a short DLL (code attached below) and added its reference as you described on your previous answer.
          Although I can see the DLL on my strategy's references, the ninja editor doesn't seem to recognize it and I cannot use it (I also attached a screen shot).

          Please help

          namespace MyDll
          {
          public class Class1
          {
          public string HelloWorld()
          {
          return ("HelloWorld");
          }
          }
          }
          Attached Files

          Comment


            #6
            Hello kiss987,

            Thank you for your response.

            Since adding the reference to the .dll file, have you compiled your NinjaScript files and restarted NinjaTrader?

            If so, and you cannot access the string can you forward me your .dll so I may test on my end?

            Comment


              #7
              I did that plus saving the DLL file into My Documents\NinjaTrader Folder>\bin\Custom and now it works.

              Thank you

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              633 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              364 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
              567 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              568 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X