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.





    Chris L.NinjaTrader Customer Service

    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.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        3 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Working...
        X