Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

visual studio 2017 and ninjatrader adding executable file

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

    visual studio 2017 and ninjatrader adding executable file

    I installed visual studio 2017 and nt8 i tried the nt8 button but it doesn't work for some reason so I decided to go and open the solution on visual studio 2017.

    I downloaded the recent version of NT8 and have the desktop addon on VS


    I have the project open but this is the error I have

    A project with an Output Type class Library cannot be started directly,
    In order to debug this project, add and executable project to this solution, which references the library project. Set the executable project as the startup project.

    I want to use vs to debug

    #2
    Hello ballboy11,

    Likely, you are trying to compile and make a build with VisualStudio which isn't going to work.

    I can confirm by testing that the current version of NinjaTrader 8 (8.0.7.1) will launch Visual Studio 2017 with the icon on the NinjaScript Editor.

    Using VisualStudio is not officially supported by NinjaTrader, however, our development is trying to make this easier to use for developing NinjaScripts by popularity.

    Below is a link to a video that demonstrates using VisualStudio to do debugging of NinjaScripts.
    Support for the development of custom automated trading strategies using NinjaScript.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      visual studio 2017 and ninjatrader adding executable file

      I installed visual studio 2017 and nt8 i tried the nt8 button but it doesn't work for some reason so I decided to go and open the solution on visual studio 2017.

      I downloaded the recent version of NT8 and have the desktop addon on VS


      I have the project open but this is the error I have

      A project with an Output Type class Library cannot be started directly,
      In order to debug this project, add and executable project to this solution, which references the library project. Set the executable project as the startup project.

      I want to use vs to debug

      Comment


        #4
        Breakpoint currently will not be hit

        I finally got ninja trader 8 and visual studio working together. I attached my indicator and ninjatrader states Breakpoint currently will not be hit .No symbols have been loaded for this document

        Comment


          #5
          Hello ballboy11,

          Can you include a screenshot of the error?

          What instrument is the script run on?

          May I confirm Debugging is enabled?

          May I confirm you have attached the process in Visual Studio?

          May I confirm you have a break point?
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            working

            I got it working. I guess you have to recompile in ninjatraderfirst then it will find the breakpoints

            Comment


              #7
              I finally got it to work.
              1. I have to load the indicator in NT8.
              2. load the custom project in visual studio
              3. add process Ninjatrader.exe indicator name
              4. go back to ninjatrader editor and reload.

              It will work. It is a pain but it works. I had to do this because NT8 visual studio button wouldn't work for me.

              Comment


                #8
                I have no errors now, and I finally got breakpoints to work, but running the script how long does it take for the indicator to hit.Or do I load a chart ?

                Comment


                  #9
                  Hello ballboy11,

                  This depends on the instrument and data of the window that has the script loaded, and where you have placed the break point.

                  If the breakpoint is in OnBarUpdate without a condition, this would stop the script immediately as the script is loaded.
                  Chelsea B.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by bortz, 11-06-2023, 08:04 AM
                  47 responses
                  1,610 views
                  0 likes
                  Last Post aligator  
                  Started by jaybedreamin, Today, 05:56 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post jaybedreamin  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  6 responses
                  19 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by Jon17, Today, 04:33 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Jon17
                  by Jon17
                   
                  Started by Javierw.ok, Today, 04:12 PM
                  0 responses
                  16 views
                  0 likes
                  Last Post Javierw.ok  
                  Working...
                  X