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 rocketman7, Today, 02:12 AM
        5 responses
        23 views
        0 likes
        Last Post rocketman7  
        Started by trilliantrader, 04-18-2024, 08:16 AM
        7 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by samish18, 04-17-2024, 08:57 AM
        17 responses
        66 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by briansaul, Today, 05:31 AM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by PaulMohn, Today, 03:49 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X