Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 maybeimnotrader, Today, 05:46 PM
              0 responses
              5 views
              0 likes
              Last Post maybeimnotrader  
              Started by quantismo, Today, 05:13 PM
              0 responses
              6 views
              0 likes
              Last Post quantismo  
              Started by AttiM, 02-14-2024, 05:20 PM
              8 responses
              166 views
              0 likes
              Last Post jeronymite  
              Started by cre8able, Today, 04:22 PM
              0 responses
              8 views
              0 likes
              Last Post cre8able  
              Started by RichStudent, Today, 04:21 PM
              0 responses
              5 views
              0 likes
              Last Post RichStudent  
              Working...
              X