Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 freezes while a chart and strategy are running

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

    NT7 freezes while a chart and strategy are running

    Hi. I've been running NT 7 on Windows 7, 8 and 10 and I still periodically have problems where an error occurs while I have a chart loaded and non-ATM strategy running. I little dialog box will pop up rapidly and then gets hidden. I then cannot select any NT window with the mouse and cannot access the Control Panel menu. It looks like a Windows Forms exception handling error in the platform. I've seen this error over the last years and half on the three versions of Windows with clean installs, reinstalls, with and without vendor provided graphics drivers etc.

    Here is the latest trace log. I had to kill NT from Task Manager and restart. This is the second time I am posting on this problem.

    2016-01-19 10:43:37:407 (IB Live Trading) IB.AccountUpdatesRequest.ProcessUpdate: version=2 account='U1336093' stringItem='ExchangeRate' stringValue='*****' stringCurrency='CAD'
    2016-01-19 10:45:47:606 in OnUnhandledThreadException
    2016-01-19 10:45:47:610 *************** unhandled exception trapped ***************
    2016-01-19 10:45:47:610 Parameter is not valid.
    2016-01-19 10:45:47:610 at System.Drawing.Graphics.GetHdc()
    at NinjaTrader.Gui.Chart.ChartControl.CrossHairSet(Gr aphics graphics, Boolean isSendingChart)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseMove(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseMove(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2016-01-19 10:45:47:804 in OnUnhandledThreadException
    2016-01-19 10:45:47:804 *************** unhandled exception trapped ***************
    2016-01-19 10:45:47:804 Parameter is not valid.
    2016-01-19 10:45:47:804 at System.Drawing.Graphics.GetHdc()
    at NinjaTrader.Gui.Chart.ChartControl.CrossHairSet(Gr aphics graphics, Boolean isSendingChart)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseMove(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseMove(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2016-01-19 10:45:47:811 in OnUnhandledThreadException
    2016-01-19 10:45:47:811 *************** unhandled exception trapped ***************
    2016-01-19 10:45:47:811 Parameter is not valid.
    2016-01-19 10:45:47:811 at System.Drawing.Graphics.GetHdc()
    at NinjaTrader.Gui.Chart.ChartControl.CrossHairSet(Gr aphics graphics, Boolean isSendingChart)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseMove(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseMove(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2016-01-19 10:45:47:819 in OnUnhandledThreadException
    2016-01-19 10:45:47:819 *************** unhandled exception trapped ***************
    2016-01-19 10:45:47:819 Parameter is not valid.
    2016-01-19 10:45:47:819 at System.Drawing.Graphics.GetHdc()
    at NinjaTrader.Gui.Chart.ChartControl.CrossHairSet(Gr aphics graphics, Boolean isSendingChart)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseMove(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseMove(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2016-01-19 10:45:48:051 in OnUnhandledThreadException
    2016-01-19 10:45:48:052 *************** unhandled exception trapped ***************
    2016-01-19 10:45:48:052 Parameter is not valid.
    2016-01-19 10:45:48:052 at System.Drawing.Graphics.GetHdc()
    at NinjaTrader.Gui.Chart.ChartControl.CrossHairSet(Gr aphics graphics, Boolean isSendingChart)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseMove(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseMove(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2016-01-19 10:45:48:123 in OnUnhandledThreadException
    2016-01-19 10:45:48:123 *************** unhandled exception trapped ***************
    2016-01-19 10:45:48:123 Parameter is not valid.
    2016-01-19 10:45:48:123 at System.Drawing.Graphics.GetHdc()
    at NinjaTrader.Gui.Chart.ChartControl.CrossHairSet(Gr aphics graphics, Boolean isSendingChart)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseMove(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseMove(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2016-01-19 10:45:48:127 in OnUnhandledThreadException
    2016-01-19 10:45:48:128 *************** unhandled exception trapped ***************
    2016-01-19 10:45:48:128 Screen-compatible bitmap cannot be created. The screen bitmap format cannot be determined.
    2016-01-19 10:45:48:128 at System.Drawing.BufferedGraphicsContext.bFillBitmap Info(IntPtr hdc, IntPtr hpal, BITMAPINFO_FLAT& pbmi)
    at System.Drawing.BufferedGraphicsContext.CreateCompa tibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
    at System.Drawing.BufferedGraphicsContext.CreateBuffe r(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
    at System.Drawing.BufferedGraphicsContext.AllocBuffer (Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
    at System.Drawing.BufferedGraphicsContext.AllocBuffer InTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
    at System.Drawing.BufferedGraphicsContext.Allocate(In tPtr targetDC, Rectangle targetRectangle)
    at System.Windows.Forms.Control.WmPaint(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2016-01-19 10:46:37:285 (IB Live Trading) IB.AccountUpdatesRequest.ProcessUpdate: version=2 account='U1336093' stringItem='ExchangeRate' stringValue='*****' stringCurrency='CAD'
    2016-01-19 10:49:37:284 (IB Live Trading) IB.AccountUpdatesRequest.ProcessUpdate: version=2 account='U1336093' stringItem='ExchangeRate' stringValue='*****' stringCurrency='CAD'
    2016-01-19 10:52:37:125 (IB Live Trading) IB.AccountUpdatesRequest.ProcessUpdate: version=2 account='U1336093' stringItem='ExchangeRate' stringValue='*****' stringCurrency='CAD'
    2016-01-19 10:55:37:178 (IB Live Trading) IB.AccountUpdatesRequest.ProcessUpdate: version=2 account='U1336093' stringItem='ExchangeRate' stringValue='*****' stringCurrency='CAD'
    2016-01-19 10:56:55:755 ******************* Session Start (Version 7.0.1000.30) *******************

    thanks

    Filipe

    #2
    Hello Filipe,

    Thank you for your post.

    Please send me your log and trace files for today so that I may look into what occurred. You can do this by going to the Control Center-> Help-> Mail to Platform Support. Please place 'ATTN: Patrick H - 1448603' in the subject line.

    Comment


      #3
      Hi. I reinstalled everything as recommended. It was okay until yesterday afternoon. As soon as I finished adding an indicator to my live running chart, the same problem occurred. What’s the next step?

      Filipe

      Comment


        #4
        Thank you, Filipe.

        What indicator did you add? Can you attach the indicator to your response?
        You can attach your indicator to your response by going to File > Utilities > Export NinjaScript > Export selected source files > select your Indicator > select the right arrow > Export. The file will be located under (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript.

        Comment


          #5
          Hi. I added a standard ATR, ADX and ParabolicSAR to my 15 min Candlestick chart. I also have an Ichi Moku custom indicator I wrote. I added the HeikenAshi indicator. I'm using the latest release of NT7. I don't believe the problem only happens with the HeikenAshi indicator. I will send the code for my Ichi Moku indicator. I don't run ATM strategies on my charts.

          Filipe

          Comment


            #6
            See indicator attached.
            Attached Files

            Comment


              #7
              Hello Filipe,

              Thank you for your patience.

              Can you save a template of the chart that causes this item and attach it to your response?
              You can save a template by right clicking in the chart > select Templates > Save Ad. The file will be located under Documents\NinjaTrader 7\templates\Chart.

              Comment


                #8
                You're using crosshairs? What if you turn them off?

                Comment


                  #9
                  Yes, I am. I will see if it makes any difference. Thanks.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by judysamnt7, 03-13-2023, 09:11 AM
                  4 responses
                  57 views
                  0 likes
                  Last Post DynamicTest  
                  Started by ScottWalsh, Today, 06:52 PM
                  4 responses
                  35 views
                  0 likes
                  Last Post ScottWalsh  
                  Started by olisav57, Today, 07:39 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post olisav57  
                  Started by trilliantrader, Today, 03:01 PM
                  2 responses
                  19 views
                  0 likes
                  Last Post helpwanted  
                  Started by cre8able, Today, 07:24 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post cre8able  
                  Working...
                  X