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

Visual Studio usage

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

    Visual Studio usage

    Hello Forum,

    This applies to all development using Visual Studio...

    Does anyone know why sometimes when using VS it provides intellesense and autocomplete of NinjaTrader methods and objects and other times VS is completely unaware of NinjaTrader?

    Thanks!
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Hello daqu40,
    Thanks for your post.

    What version of NinjaTrader 8 are you using?

    What version of Visual Studio?

    Are you opening up Visual Studio through the NinjaScript editor?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thanks for look into this Josh,

      NT8: Version 8.0.16.3 - 64 bit

      VS 2017 Community: Version 15.9.3

      I typically don't open VS from Ninja's editor, but I've tried both and it didn't seem to matter.

      If I open outside of NT8, I then open the Ninjatrader.Custom.csproj project to start working on NT8 stuff.

      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment


        #4
        daqu40,

        Happy to help.

        Although it should not really be necessary after the first time, I typically suggest only running Visual Studio through the NinjaScript editor. This is because that is the only way that is documented in the Help Guide.

        Do you find that this issue ever occurs when you open VS through the NS Editor?
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Thanks again Josh,

          This detachment seems to have become permanent recently. It used to be sometimes VS behaved like the NT Editor (but with all the extra goodies in VS) and sometimes it didn't. I've no idea what made it work and not work.

          Now I never seem to get the autocomplete or intellisense that is away of NinjaTrader classes. This is how it comes regardless of how I launch VS.
          daqu40
          NinjaTrader Ecosystem Vendor - QTradez

          Comment


            #6
            daqu40,

            Are you saying that intelliSense is not working in VS even when NinjaTrader.Custom is open?

            Have you tried reinstalling VS?

            Josh G.NinjaTrader Customer Service

            Comment


              #7
              Sorry if I wasn't clear. IntelliSense works, but only for standard C# .Net classes. Nothing from NT8 is present. However, in the past it would work sometimes.

              For example if type "Posito" in VS this is what its IntelliSense responds with image1. If I do the same in the NT8 Editor I get image2.

              In the past there were times where I could get image2 in both NT and VS.
              Attached Files
              daqu40
              NinjaTrader Ecosystem Vendor - QTradez

              Comment


                #8
                daqu40,

                I do appreciate the screenshots, but I feel that this does not directly answer either of my questions. I cannot see if you have the NinjaTrader.Custom project open and I still do not know if you have tried reinstalling VS.

                If you have already done both of these things than I would suspect something is going on with the your NT installation.
                Josh G.NinjaTrader Customer Service

                Comment


                  #9
                  Thanks Josh,

                  I confirmed NinjaTrader.Custom is open by reopening it. Still not working.

                  I'll try reinstalling VS next.
                  daqu40
                  NinjaTrader Ecosystem Vendor - QTradez

                  Comment


                    #10
                    After reinstalling VS and opening the NinjaTrader.Custom project, still the same behavior.

                    Adding evidence of NT project as Image3.jpg
                    Last edited by daqu40; 12-11-2018, 11:04 AM.
                    daqu40
                    NinjaTrader Ecosystem Vendor - QTradez

                    Comment


                      #11
                      Click image for larger version

Name:	Image3.jpg
Views:	558
Size:	29.3 KB
ID:	1042415
                      daqu40
                      NinjaTrader Ecosystem Vendor - QTradez

                      Comment


                        #12
                        daqu40,

                        What specific file is open inside the solution when the IntelliSense fails to appear?

                        Please try opening the Visual Studio Add On Solution at the following help guide. It will be the third link from the top. Do you see IntelliSense working once you open that solution?
                        https://ninjatrader.com/support/help...t_overview.htm

                        Since we cannot directly support Visual Studio, the last thing I can suggest is reinstalling NinjaTrader through the Windows Control Center and then reinstalling. After that you would want to open VS through the NinjaScript Editor.

                        If that does not work I'm afraid the best thing will be to search some VS forums, as I do know this has been known to happen from time to time with non NinjaTrader items too.
                        Last edited by NinjaTrader_JoshG; 12-12-2018, 08:46 AM.
                        Josh G.NinjaTrader Customer Service

                        Comment


                          #13
                          Yeah, Progress!

                          It works with the AddOn solution.

                          Ok so is there something missing from my solution or project file in the NT8 Custom folder?
                          daqu40
                          NinjaTrader Ecosystem Vendor - QTradez

                          Comment


                            #14
                            daqu40,

                            I suspect that something may not be getting included in the solution that you are trying to use intelliSense with.

                            While the file is open that does not have intellieSense, can you post a screenshot of your Solution Explorer?

                            Josh G.NinjaTrader Customer Service

                            Comment


                              #15
                              Will try shortly.

                              Now my TFS integration is giving me some errors.

                              Before I connect to TFS edited a few files from the Solution Explorer and IntelliSense was working.

                              Hopefully this remains working once I get the other issue resolved. I will report back.
                              daqu40
                              NinjaTrader Ecosystem Vendor - QTradez

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by rtwave, 04-12-2024, 09:30 AM
                              2 responses
                              19 views
                              0 likes
                              Last Post rtwave
                              by rtwave
                               
                              Started by tsantospinto, 04-12-2024, 07:04 PM
                              5 responses
                              67 views
                              0 likes
                              Last Post tsantospinto  
                              Started by cre8able, Today, 03:20 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post cre8able  
                              Started by Fran888, 02-16-2024, 10:48 AM
                              3 responses
                              49 views
                              0 likes
                              Last Post Sam2515
                              by Sam2515
                               
                              Started by martin70, 03-24-2023, 04:58 AM
                              15 responses
                              115 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Working...
                              X