• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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, 09: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 Swing123, Today, 03:09 AM
        0 responses
        1 view
        0 likes
        Last Post Swing123  
        Started by Antares66, Yesterday, 05:19 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by lavalampmj, Yesterday, 05:25 PM
        0 responses
        8 views
        0 likes
        Last Post lavalampmj  
        Started by jmneto, Yesterday, 05:18 PM
        0 responses
        10 views
        0 likes
        Last Post jmneto
        by jmneto
         
        Started by Bobbyj78, Yesterday, 02:21 PM
        2 responses
        22 views
        0 likes
        Last Post bltdavid  
        Working...
        X