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 kujista, Today, 06:23 AM
        2 responses
        6 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by f.saeidi, Today, 08:03 AM
        0 responses
        4 views
        0 likes
        Last Post f.saeidi  
        Started by cre8able, 04-17-2024, 04:16 PM
        7 responses
        64 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Aviram Y, 08-09-2023, 09:04 AM
        11 responses
        299 views
        0 likes
        Last Post arjandezeeuw  
        Started by Christopher Leggit, 02-15-2024, 09:00 AM
        3 responses
        47 views
        0 likes
        Last Post rdtdale
        by rdtdale
         
        Working...
        X