Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Microsoft Vision Studio 2022 for NinjaTrader

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

    Using Microsoft Vision Studio 2022 for NinjaTrader

    Hello,

    I have downloaded Microsoft Visual Studio 2022 Community Edition. I would like to use this as the editor to develop indicators and strategies. I can start Visual Studio using the symbol within the NinjaTrader Editor.

    However, I tried to build, but I receive errors and warnings. How can I build and debug using Visual Studio and set break points?

    Kind regards
    Gerik

    Attached Files

    #2
    Hi Gerik,

    Have you completely reviewed this page yet?


    In short, never use the Build function in Visual Studio. Only use VS for editing and moving around in files, etc. To have a "build" done, ensure you have a NinjaScript Editor window open (I keep all files closed in the NS Editor) and simply save in VS. The open NS Editor constantly looks in the relevant folders for changes and does an automatic compile over the entire Custom folder.

    It works well for me. I hope this helps!

    Matt

    Comment


      #3
      Hi Matt,

      thank you very much! This helps.

      Compilation after saving the file within VS takes almost 3 seconds longer. Do you know if it it is possible to speed-up?

      Kind regards
      Gerik

      Comment


        #4
        Hi Gerik,

        No, I'm not aware of any accelerators or settings that would speed the compile process. As you might have read, NS creates a single DLL with all indicators, strategies, add-ons, etc. So, it is going to take a bit longer than perhaps the typical compile/build process in Visual Studio. Perhaps, someone from NinjaTrader will have suggestions.

        Cheers,
        Matt

        Comment


          #5
          Hi Gerik, thanks for posting. Make sure you launch the "NinjaTrader.Custom.csproj" from the Documents\NinjaTrader 8\bin\Custom folder. This has a custom build event that works when you go to Build>Build solution. To debug, we have a guide here on how to do this:



          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          65 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X