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 and Auto Compile NinjaScript after File Save

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

    Visual Studio and Auto Compile NinjaScript after File Save

    Is there a way to configure NT8 to compile a .cs indicator or strategy file when a file being edited in Visual Studio is Saved. Just want to avoid the step of having to go to NT8 Editor to press compile everytime.

    #2
    Yes, just keep the NT editor window open.

    Every time it notices that a .cs file timestamp has
    changed (because VS Studio edit/save file) it
    will automatically recompile.

    Btw, when the NT Editor compiles a .cs file, you do
    know that it compiles everything -- yep, it re-compiles
    every single .cs file every time it compiles.

    I use VIM and this 'leave the NT Editor window open
    for auto re-compiles' feature is a great time saver.

    I don't know if there are any options that control
    this feature, I found it by accident long ago.

    Comment


      #3
      Originally posted by trader-ap View Post
      Is there a way to configure NT8 to compile a .cs indicator or strategy file when a file being edited in Visual Studio is Saved. Just want to avoid the step of having to go to NT8 Editor to press compile everytime.
      Hello trader-ap,

      Thank you for your note.

      bltdavid is correct - as long as you have a NinjaScript Editor window open while using Visual Studio, every time you save a file the editor will detect the save and auto-compile. This is mentioned in the Tip at the bottom of the following page:
      • https://ninjatrader.com/support/help..._debugging.htm
        • "Tip: You can also use Visual Studio as an editor for your NinjaScript files - for that open the project as in step 2 above and then use Visual Studio for editing and once done save the file (don't run or build the solution then in Visual Studio), preferably with the NinjaScript editor opened still at the same time, so changes would be auto compiled"
      Please let us know if we may be of further assistance.
      Emily C.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pibrew, Today, 06:37 AM
      0 responses
      0 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      12 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      15 views
      0 likes
      Last Post AaronKoRn  
      Working...
      X