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

How do I add a .dll

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

    How do I add a .dll

    I'm trying to reference a .dll in my ninjaTrader strategy but I can't seem to figure out how to do this.

    #2
    Put the .dll file in the My Documents\NinjaTrader 7\bin\Custom folder. Open an indicator in the editor by Control Center-> Tools-> Edit NinjaScript-> Indicator anyone will do. then right-click and choose "references", "Add" and create a reference.

    VT
    Last edited by VTtrader; 12-08-2011, 02:16 PM. Reason: Updated the folder to reflect the full path to prevent confusion

    Comment


      #3
      it's not working. I went to C:\Program Files(x86)\NinjaTrader7/bin/Custom added the .dll. Opened up a custom strategy right click, add reference, located the .dll, added using My.dll but the IDE is not recognizing my newly added .dll file

      Comment


        #4
        the namespace is not being recognized

        Comment


          #5
          Please check out this thread to see if it is of assistance:

          Support for the development of custom automated trading strategies using NinjaScript.

          Comment


            #6
            d.allen,

            I think your directory is wrong, you want the one in My Documents\NT 7\bin\Custom directory, and then set the reference to that one.

            VT

            Comment


              #7
              it's still not working. I dont understand what's going on here. I'm doing everything correctly and it's still not working
              Last edited by d.allen101; 12-08-2011, 02:36 PM.

              Comment


                #8
                Hello,

                Did you create the DLL yourself or is it a third party DLL? If so which one?

                I look forward to assisting you further.

                Comment


                  #9
                  It's a MySQL .dll

                  Comment


                    #10
                    Check out this post. Post number 1 and others as this may help:

                    Comment


                      #11
                      how do I reference System.Data?

                      Comment


                        #12
                        C:\Windows\Microsoft.NET\Framework\v4.0.30319\Syst em.Data.dll

                        That path worked on my system.

                        -Brett

                        Comment


                          #13
                          I wasn't asking if it worked or not I was asking "HOW" do I reference it...

                          Comment


                            #14
                            Hi d.allen101,

                            You can manage references from the NinjaScript editor. Right Click > References
                            Ryan M.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by andrewtrades, Today, 04:57 PM
                            1 response
                            10 views
                            0 likes
                            Last Post NinjaTrader_Manfred  
                            Started by chbruno, Today, 04:10 PM
                            0 responses
                            6 views
                            0 likes
                            Last Post chbruno
                            by chbruno
                             
                            Started by josh18955, 03-25-2023, 11:16 AM
                            6 responses
                            436 views
                            0 likes
                            Last Post Delerium  
                            Started by FAQtrader, Today, 03:35 PM
                            0 responses
                            9 views
                            0 likes
                            Last Post FAQtrader  
                            Started by rocketman7, Today, 09:41 AM
                            5 responses
                            20 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Working...
                            X