Announcement

Collapse
No announcement yet.

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.
          BrettNinjaTrader Product Management

          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.
                BrettNinjaTrader Product Management

                Comment


                  #9
                  It's a MySQL .dll

                  Comment


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

                    BrettNinjaTrader Product Management

                    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
                        BrettNinjaTrader Product Management

                        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 Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            647 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            369 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            108 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            572 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            573 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X