Tested on January 20 (date is important) with NT 7.0.0.6, time zone CET, data used from Interactive Brokers.
To reproduce:
(1) Please open a standard default chart of ES (1min, 5days, Session template: <Use instrument settings>, no chart template).
(2) Add a standard pivot indicator or any other indicator that calls daily data via Data.Bars.GetBars
(3) Save this as a chart template.
(4) Open a new ES standard default chart of ES (1min, 30 days, Session template: <Default 24/7>).
(5) Apply the chart template saved under 3 to the new chart, and you should see a large red cross.
The problem occurs when three different conditions are met:
(a) It only occurs if the lookback period extends to include December 25. If you choose a lookback period smaller or equal to 26 days (tested on January 20) the problem cannot be observed, minimum required would be 27 days for ES -> probably related to missing Xmas data.
(b) It only occurs, if you add an indicator (pivot indicator) that calls for
daily data via Data.Bars.GetBars.
(c) It only occurs if you apply the chart template (including session template <instrument settings>) to a chart that uses another session template such as <Default 24/7>. It is possible to open a new chart with this template without producing a red cross. You may even leave the red cross chart, save it and then shut down NinjaTrader. When you start NinjaTrader again, the cross will have gone away and the chart correctly displayed.
The three conditions united should produce the following error message on the trace file:
2010-01-20 23:33:23:546 in OnUnhandledThreadException
2010-01-20 23:33:23:546 ********* exception trapped *********
2010-01-20 23:33:23:546 Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
2010-01-20 23:33:23:546 bei NinjaTrader.Data.DataSeries.Get(Int32 index)
bei NinjaTrader.Gui.Chart.ChartControl.CalculateMinMax AndMargins(Graphics graphics)
bei NinjaTrader.Gui.Chart.ChartControl.OnPaint(Object sender, PaintEventArgs e)
bei System.Windows.Forms.Control.OnPaint(PaintEventArg s e)
bei System.Windows.Forms.Control.PaintWithErrorHandlin g(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
bei System.Windows.Forms.Control.WmPaint(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
bei System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
If this test seems to be far-fetched, I would like to point out that it reflects my standard chart template. I open all charts first in 24/7 to have the complete data with my standard indicators on it. A monthly pivot indicator needs a lookback period of up to 65 days, so this is well above 30 days. Then if I add something to my chart, NT produces a red cross.
The test above is a simplified setup, but I had the same problem occur with other instruments and other time frames as well, but even more difficult to understand.
I would be extremely disappointed, if you cannot reproduce it. Please let me know...
Harry

Comment