Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The XMas-SessionTemplate-Pivot-Problem

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

    The XMas-SessionTemplate-Pivot-Problem

    It has occupied me for hours to find this out, but I have had a number of crashes that originated somewhere, so I tried to track them back to the smallest common denominator. So let us call this the Christmas-SessionTemplate-Pivot problem.

    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
    Attached Files
    Last edited by Harry; 01-20-2010, 05:34 PM.

    #2
    Red Cross Alert

    Red cross also found, when just changing one parameter of an indicator via the indicator panel.
    Attached Files

    Comment


      #3
      Harry, thanks for your testing and the note sent to support, looking into it.

      Comment


        #4
        Harry, I want to thank you for the continued effort - could exactly reproduce here with your 5 steps, much appreciated.

        Comment


          #5
          No red cross anymore?

          Hi Bertrand,

          have tested this again today and although I tried hard, could not manage to reproduce the Red Cross. Is this just misfortune or has somebody solved the problem?

          In some cases some of my "DailyBars" indicators will not show up immediately, but only after refreshing via F5. But data loading is already ways better in NT7 than NT 6.5. Actually I hope that all the crashes that I experience with NT 6.5. will be history soon, as the stability of the software really seems to have progressed.

          Comment


            #6
            Thanks for the feedback Harry, yes we addressed the bug you ran into in the newest beta 7.

            Is the dailyBars dataloading issue reproducible? Or does it not occur consistently?

            Thanks

            Comment


              #7
              For the dailyBars dataloading issue, occasionally one of my custom indicators did not load. It would display only after refreshing via F5.

              I still have to examine this. Also I saw that the new pivots indicator used a different method to call the bars via another thread, so maybe I will have to adapt my indicators accordingly. Simply do not know yet.

              Again, no major or urgent problem, as it is better or equal than NT 6.5!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              628 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              359 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              562 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              568 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X