Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hung NT when debugging with VS

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

    #16
    Hello,

    Please forward to support at ninjatrader dot com and reference this forum post.

    Also, please send along a screenshot of the settings you use to backtest or optimize this strategy and also please let me know what data feed provider you are connected too.

    To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.


    Thank You.
    BrettNinjaTrader Product Management

    Comment


      #17
      NT support,

      Could you please help me? I’m now getting this same issue.

      Could I please have an update where this is at? This thread has been open since last year.

      How has this been progress since we opened this thread?

      Thanks and regards,

      Dan

      Comment


        #18
        A code segment where this is happening:

        Code:
                                    foreach (Position p in Positions) {
                                    
                                        if (p.MarketPosition != MarketPosition.Flat && BarsPeriods[x].Value == 1) {
                                            
                                            // Need to do some work here as this will return the value
                                            // on the close of the current instrument and not the relevant instrument
                                        
                                            day_pnl += p.GetProfitLoss(Closes[x][0], PerformanceUnit.Currency);
                                            
                                            
                                        }
                                        
                                        x++;
                                        
                                    }
        Hope that helps. I know this seems just not to be right, but it appears to be evaluating this more than once for a single Position element.

        Kind regards,

        drolles

        Comment


          #19
          drolles, we're not sure we follow you - under what ticket number did you sent in a reproducible scenario that would outline the issue you ran into? I've checked with Brett and he believe it was not sent in to us.

          Thanks,

          Comment


            #20
            Bertrand,

            You didn’t receive anything previously? I’m sorry without going through my previous emails you guys and it being awhile ago I can’t say either way.

            I’ll bundle up this version of the strategy and send it over to you. Should I address it to yourself or Brett?

            Thanks and regards

            Comment


              #21
              Thanks Dan, please address it to me - I feel it's related to the issue you recently reported with the position reporting in the MTF strategy (which is being looked into).

              Comment


                #22
                Bertrand,

                Thanks very much.

                I’ve now sent you screen shots, the strategy attached and the trace and log files.

                As a starter for 10 I wouldn’t like to assume they are related. They are happening in very different contexts. The PnL reporting issue is happening when the strategy is deployed and running live. This issue is happening when the strategy is being debugged. And don’t forget this issue was happening on as completely different strategy so the strategy file isn’t a common factor (the posts last year). However, you guys are the experts I’ll leave it up to you.

                As an aside, I’ve had further examples of the PnLs being misreported. I’m happy to forward you over the screen shots if that helps.

                Thanks and regards,

                drolles

                Comment


                  #23
                  A further thought on this while rereading the thread in detail, let’s not be distracted by the issue with the AUDJPY below (post #13). Remember that we found that there was a misreporting issue with JPY crosses in R1 – R2 of NT7. It was something different altogether. See thread here as reference: http://www.ninjatrader.com/support/f...ad.php?t=38323

                  Kind regards,

                  drolles

                  Comment


                    #24
                    Thanks for the offers, I'll get back to you if we need them but for now it's seems ok on the reporting issue you spotted. I got your files and email, we will attempt to reproduce the debug hangs you saw.

                    Comment


                      #25
                      Bertrand,

                      Thanks for the reply and help.

                      This hang is happening every time now. I’m back to using Print statements and the Output window for debugging. It is driving me nuts.

                      I’ve also learned something – ignore the statement below regarding it running the foreach position loop more than expected, my mistake.

                      Thanks also for the update on the PnL reporting issue.

                      Let me know if you need anything from my side.

                      Kind regards,

                      drolles

                      Comment


                        #26
                        Ok, thanks Dan - please see my email directly sent.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        631 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        364 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        105 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        566 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        568 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X