I have a strategy with a very long script (1800 lines) . I had this strategy opened in two windows. They were 1-minute candles of the SSO & SDS with a 2 month history. If I run both strategies at the same time the editor page says they can take 4-5 seconds each. When this happens the candles are often drawn late and some times I will get two candles with the same time stamp. I can take the strategy off streaming and then put it back on and the candles will be redrawn correctly. Fidelity tech support suggested that I open Active Trader Pro and compare the charts to WealthLab. The Wealth lab prices were lagging Active Trader by a considerable amount.
This morning I had both strategies (same script) and after running for about 45 minutes one of the scripts bombed and the other continued to run. The one that continued to run did so without error. I have concluded that I cannot run both scripts together because the time required disrupts processing the incoming data. Is there a way around this? The error message is below.
=====================
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at WealthLab.ChartControl.ChartDrawingObjectHandle.get_Bar()
at WealthLab.ChartDrawingObjects.CDOVerticalLine.Render(Graphics g)
at WealthLab.ChartControl.DrawingObjectManager.a(Graphics A_0)
at WealthLab.ChartControl.Chart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Size:
Color:
1. Create a Support ticket.
2. Zip and attach the .DRW files for the two symbols from the ..Data\DrawingObjects.Standard\[Scale] folder.
3. Delete those files.
For some reason it appears that one of the drawing objects causes the crash.
For streaming, reduce the amount of data that you load (suspected cause of slow streaming performance). Do not load All Data, only the amount that you need. ATPro doesn't allow you to load 4 years of a 1-minute chart. For backtesting, ok, for streaming, bad idea.
Size:
Color: