Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Editing NT8 scripts in Visual Studio

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

    Editing NT8 scripts in Visual Studio

    Hi, what is the procedure for compiling in visual studio? In NT8 I use F5 to compile, should I be using Build in visual studio? And will this update the indicator/strategy with no additional steps?

    Should I be debugging or will errors be underlined?

    Thanks.

    #2
    Hello brucelevy,

    If you are clicking the "Open project in visual studio" button from the NinjaScript editor, you would just need to save the file to trigger NinjaTraders compile. Visual studio being used in this sense is basically just a fancy text editor, it would not do any compiling.

    Depending on your Visual Studio keyboard settings, pressing F5 should try and build and launch which would present an error that a library project cannot be launched. Pressing F6 should just build the solution which will check for errors in visual studio but would not be an actual NinjaTrader compile. The platform would compile shortly after you did this if any files were changed. In any case you would need to still see the NinjaScript editor to ensure there are no actual compile errors in the platform, so saving is generally the best approach.

    If you are instead using the example from the addon help guide page, that is an actual visual studio solution which compiles a dll, in that case you would utilize visual studio to compile. The link lists as "Below is a complete Visual Studio project with this setup in place". This project builds a dll and moves it to the user folder, this would be for more advanced setups where you would physically build the dll yourself and distribute it without any type of platform exportation.

    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Stanfillirenfro, Today, 07:23 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    2 responses
    21 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by olisav57, Yesterday, 07:39 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cocoescala, 10-12-2018, 11:02 PM
    7 responses
    944 views
    0 likes
    Last Post Jquiroz1975  
    Started by oviejo, Today, 12:28 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X