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

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.

    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,
          BertrandNinjaTrader Customer Service

          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).
              BertrandNinjaTrader Customer Service

              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.
                    BertrandNinjaTrader Customer Service

                    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.
                        BertrandNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Austiner87, Today, 03:42 PM
                        1 response
                        17 views
                        0 likes
                        Last Post NinjaTrader_Manfred  
                        Started by cshox, Today, 11:11 AM
                        2 responses
                        15 views
                        0 likes
                        Last Post cshox
                        by cshox
                         
                        Started by algospoke, Today, 06:53 PM
                        0 responses
                        10 views
                        0 likes
                        Last Post algospoke  
                        Started by mlprice12, 12-21-2021, 04:55 PM
                        3 responses
                        297 views
                        0 likes
                        Last Post paypachaysa  
                        Started by lorem, 04-25-2024, 09:18 AM
                        20 responses
                        86 views
                        0 likes
                        Last Post lorem
                        by lorem
                         
                        Working...
                        X