Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT crashed & won't restart

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

    NT crashed & won't restart

    I'm a licensed user of NT. While running it this morning, it crashed. When I tried to restart it I get the splash screen with the message on it, "Restoring workspace 'Default' ", the DOM and control panel opens, and the window border of one chart ( I had 3 before the crash). After about five minutes, I get the message, "NT needs to close".

    I have restarted my computer and NT 3 times with no success. Please help.

    Safetrading

    #2
    Hello Safetrading,

    Thank you for your post.

    Can you please remove your workspaces. To remove your workspaces:
    • Please close NinjaTrader and go to your desktop Start menu
    • Open My Documents
    • Go to the NinjaTrader 6.5 folder
    • Go to the Workspaces folder
    • Right click on all XML documents and select Cut
    • Place the cut files in an easily accessible location
    • Now restart the application and it should start up normally
    Ryan O.NinjaTrader Customer Service

    Comment


      #3
      continued

      That got NT to open again. Once I added my indicators again, it crashed again. This morning I edited one of my indicators by adding the following;

      Added to the protected overide void Initialize()

      Add(new Plot(Color.FromKnownColor(KnownColor.Transparent), PlotStyle.Line, "PercentB"));

      Added to the protected override void OnBarUpdate()

      double PB = BollingerSMA313(1).Plot0[0] / (BollingerSMA313(1).UpperBand[0] - BollingerSMA313(1).LowerBand[0]);

      PercentB.Set(PB);

      Added to the #region Properties

      [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
      [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
      public DataSeries PercentB
      {
      get { return Values[3]; }
      }

      When I remove the lines in the protected overide void OnBarUpdate() section, NT works. When I add them back again, it crashes. Is there a way to overcome this?

      Safetrading

      Comment


        #4
        safetrading,

        Please add a check to ensure that you are not doing a division by zero and then try again. You will need to ensure the difference between the two values you are subtracting is greater than double.Epsilon as discussed in this tip: http://www.ninjatrader-support2.com/...ead.php?t=3929
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        382 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        1 view
        0 likes
        Last Post oviejo
        by oviejo
         
        Started by pechtri, 06-22-2023, 02:31 AM
        10 responses
        125 views
        0 likes
        Last Post Leeroy_Jenkins  
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Yesterday, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Working...
        X