Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Visual Studio

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

    Using Visual Studio

    Hello,
    I'm attempting to link Visual Studio to my NT code. I've followed the instructions and set a break point. When I reloaded the NT chart the break point showed some variables but the chart never loaded. After about 5 mins it's still not loaded. Seems to be in a loop. Any ideas why this is happening? Thanks
    NT was indeed in a loop. Once I detached the process in VS everything in NT began working again. Any ideas what is wrong?
    Last edited by CaptainAmericaXX; 01-01-2019, 10:18 PM.

    #2
    Hello CaptainAmericaXX,

    Thank you for the post.

    This will depend on where your breakpoint is. NinjaTrader will halt if your breakpoint is hit. Can you pull up a chart prior to attaching to the process, then attach to process, then run your NinjaScript on that chart? If your breakpoint were on the beginning of OnBarUpdate, then NinjaTrader should halt, with your indicator stuck on "Calculating", meaning it hit the breakpoint at the leftmost bar of the chart. You can step through once the process is attached with the "step over" key at the top of Visual Studio, or with the "F10" key.

    Please let me know if this does not resolve your inquiry.





    Comment


      #3
      Ok so I decided to give this another try. After attaching the process to my chart I set a break point and get a error message from Visual Studio "The breakpoint will not currently be hit. No symbols have been loaded for this document." What might be the solution to this issue?

      Comment


        #4
        Hello CaptainAmericaXX,

        Thanks for your reply.

        Please make sure you click the visual studio icon at the top of the NinjaScript editor to launch the custom NT project. This will load up the debug symbols for NinjaTrader. Please also make sure to right click the code> Enable debug mode, and compile your script within the editor after enabling debug mode.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        102 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X