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

Debug in VS

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

    Debug in VS

    Hi,
    I'm having trouble debugging from my Visual Studio 2008.
    I did exactly as instructed on the guide.
    a) On NT Editor - enable "Debug Mode"
    b) On VS 2008 - "Attach To Process" - field set to "Managed Code"
    c) Set my breakpoint to line where - Print(High[0]);
    d) I then ran the strategy on a EUR/USD chart

    Nothing shows up on the locals window on VS. I even reload Ninjascript and reload all historical data on the chart. Nothing shows up on locals.

    The following is my strategy

    protectedoverridevoid Initialize()
    {
    AddPointAndFigure("$EURUSD", PeriodType.Tick, 1, 5, 3, PointAndFigurePriceType.HighsAndLows, MarketDataType.Last);
    }

    protectedoverridevoid OnBarUpdate()
    {
    if (BarsInProgress == 1)
    {
    Print(High[0]);
    Print(Low[0]);
    Print("The Day is: " + ToDay(Time[0]));
    Print("The Time is: " + ToTime(Time[0]));
    Print("");
    }
    }

    #2
    Hello,

    When you hit the break point does it stop inside of visual studio?

    -Brett

    Comment


      #3
      when i ran the strategy on the chart, the nt chart updated, otherwise nothing updates on vs.

      Comment


        #4
        Hello,

        This is an area we can't support in too much detail however it is my understanding that you would need to set a breakpoint for the code to break before you could get any updates in VS.

        -Brett

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by AaronKTradingForum, Today, 03:44 PM
        0 responses
        1 view
        0 likes
        Last Post AaronKTradingForum  
        Started by Felix Reichert, 04-26-2024, 02:12 PM
        11 responses
        72 views
        0 likes
        Last Post Felix Reichert  
        Started by junkone, 04-28-2024, 02:19 PM
        7 responses
        80 views
        1 like
        Last Post junkone
        by junkone
         
        Started by pechtri, 06-22-2023, 02:31 AM
        11 responses
        136 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by ageeholdings, 05-01-2024, 05:22 AM
        4 responses
        27 views
        0 likes
        Last Post ageeholdings  
        Working...
        X