Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Historical data still not loaded correctly

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

    Historical data still not loaded correctly

    NinjaTrader 7.0.0.21 with TWS 906

    I am now loading daily data exclusively from Kinetick, so only loading intraday data from IB. I have a workspace with 3 intraday charts. There is still a specific problem when loading data from IB that only occurs with CL. So it is possibly connected to the known issue of the contract month, which is handled via symbol mode CL||||1.

    When switching the workspace to CL 10-10, NT starts suspicious loading that results in data throttling. Today, it always loaded data for the front month 10-10 and the month 08-10, which is two months back. Causes data throttling, and sometimes had to abandon the loading.

    Excerpt of trace file for intraday data loading for three connected minute charts below

    PHP Code:
    2010-09-15 16:42:06:325 (Interactive BrokersData.Bars.GetBarsNowinstrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Nymex Metals / Energy ETH'
    2010-09-15 16:42:09:106 (Interactive BrokersIB.HistoricalDataRequest.Sendlast=18.07.2010 instrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:09:106 (Interactive BrokersIB.HistoricalDataRequest.Sendrequest='CL;FUT;201008;0;;;NYMEX;;USD;;20100719 00:00:00;1 min;5 D;0;TRADES'
    2010-09-15 16:42:11:747 (Interactive BrokersIB.HistoricalDataRequest.ProcessitemCount=6973 instrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:11:794 (Interactive BrokersData.Bars.GetBarsNowinstrument='^TICK' from='2010-09-14' to='2010-09-14' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='US Equities RTH'
    2010-09-15 16:42:11:794 (Interactive BrokersIB.HistoricalDataRequest.Sendlast=14.09.2010 instrument='^TICK' from='2010-09-14' to='2010-09-14' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:11:794 (Interactive BrokersIB.HistoricalDataRequest.Sendrequest='TICK-NYSE;IND;;0;;;NYSE;;USD;;20100915 00:00:00;1 min;5 D;0;TRADES'
    2010-09-15 16:42:12:325 (Interactive BrokersIB.HistoricalDataRequest.ProcessitemCount=1950 instrument='^TICK' from='2010-09-14' to='2010-09-14' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:12:341 (Interactive BrokersData.Bars.GetBarsNowinstrument='CL 10-10' from='2010-09-15' to='2010-09-15' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Nymex Metals / Energy ETH'
    2010-09-15 16:42:13:809 (Interactive BrokersIB.HistoricalDataRequest.Sendlast=15.09.2010 instrument='CL 10-10' from='2010-09-15' to='2010-09-15' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:13:809 (Interactive BrokersIB.HistoricalDataRequest.Sendrequest='CL;FUT;201010;0;;;NYMEX;;USD;;;1 min;5 D;0;TRADES'
    2010-09-15 16:42:15:247 (Interactive BrokersIB.HistoricalDataRequest.ProcessitemCount=6583 instrument='CL 10-10' from='2010-09-15' to='2010-09-15' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:15:294 (Interactive BrokersData.Bars.GetBarsNowinstrument='^TICK' from='2010-09-15' to='2010-09-15' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='US Equities RTH'
    2010-09-15 16:42:15:825 (Interactive BrokersIB.HistoricalDataRequest.Sendlast=15.09.2010 instrument='^TICK' from='2010-09-15' to='2010-09-15' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:15:825 (Interactive BrokersIB.HistoricalDataRequest.Sendrequest='TICK-NYSE;IND;;0;;;NYSE;;USD;;;1 min;5 D;0;TRADES'
    2010-09-15 16:42:16:716 (Interactive BrokersIB.HistoricalDataRequest.ProcessitemCount=1633 instrument='^TICK' from='2010-09-15' to='2010-09-15' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:17:434 (Interactive BrokersData.Bars.GetBarsNowinstrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Nymex Metals / Energy ETH'
    2010-09-15 16:42:20:106 (Interactive BrokersIB.HistoricalDataRequest.Sendlast=18.07.2010 instrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:20:106 (Interactive BrokersIB.HistoricalDataRequest.Sendrequest='CL;FUT;201008;0;;;NYMEX;;USD;;20100719 00:00:00;1 min;5 D;0;TRADES'
    2010-09-15 16:42:20:106 (Interactive BrokersIB.HistoricalDataRequest.Sendwaiting 5 seconds
    2010
    -09-15 16:42:26:497 (Interactive BrokersIB.HistoricalDataRequest.ProcessitemCount=6973 instrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:27:622 (Interactive BrokersData.Bars.GetBarsNowinstrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Nymex Metals / Energy ETH'
    2010-09-15 16:42:31:122 (Interactive BrokersIB.HistoricalDataRequest.Sendlast=18.07.2010 instrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0
    2010
    -09-15 16:42:31:122 (Interactive BrokersIB.HistoricalDataRequest.Sendrequest='CL;FUT;201008;0;;;NYMEX;;USD;;20100719 00:00:00;1 min;5 D;0;TRADES'
    2010-09-15 16:42:31:122 (Interactive BrokersIB.HistoricalDataRequest.Sendwaiting 10 seconds
    2010
    -09-15 16:42:42:466 (Interactive BrokersIB.HistoricalDataRequest.ProcessitemCount=6973 instrument='CL 08-10' from='2010-07-16' to='2010-07-18' period=1 Min splitAdjusted=False dividendAdjusted=False bars=

    #2
    Explanation of the bug

    Got further with this. If you look at the tracefile below, you will find that NT 7 tries to load data for the week-end July 16 (Friday) to July 18 (Sunday) for the long expired contract CL 08-10.

    This unnecessary request causes the data throttling and the popups.

    I checked my database. It is fine and contains all necessary data, but here comes the catch:

    -> July 19 is rollover date, and the data base contains data for July 19 for the new contract CL 09-10. which is needed to display the mergebackadjusted data -> correct
    -> Also the database contains no data for July 19 for the old contract -> correct, this is not needed
    -> The problem occurs, when rollover data falls on a Monday, NinjaTrader tries to load the old contract 08-10 data for the week-end over and over again, although the last session prior to rollover day is complete.

    Of course there is no data, so this only causes data throttling and error popups.
    Attached Files
    Last edited by Harry; 09-15-2010, 12:03 PM.

    Comment


      #3
      Hello,

      Thank you for your patience.

      We will respond shortly.

      Curius, is this the paid Kenitick or the free end of day kinetick?

      Comment


        #4
        Thanks. We will take a look and get back to you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          It is the free EOD Kinetick, which I use. I am very happy with this datafeed, no problems whatsoever so far! And also I will not complain anymore that NT cannot read IB's daily data correctly, as this is no more required. I connect to Kinetick first for daily data and then second connect to other datafeeds for intraday data.

          This is an important improvement of NT7 versus NT 6.5

          Originally posted by NinjaTrader_Brett View Post
          Hello,

          Thank you for your patience.

          We will respond shortly.

          Curius, is this the paid Kenitick or the free end of day kinetick?

          Comment


            #6
            Just to confirm that the loading of historical data for CL hangs every day, because NT tries to load that non-existent week-end data for CL 08-10 prior to rollover to CL 09-10. Rollover date on Monday as desribed below.

            Comment


              #7
              Originally posted by Harry View Post
              Got further with this. If you look at the tracefile below, you will find that NT 7 tries to load data for the week-end July 16 (Friday) to July 18 (Sunday) for the long expired contract CL 08-10.

              This unnecessary request causes the data throttling and the popups.

              I checked my database. It is fine and contains all necessary data, but here comes the catch:

              -> July 19 is rollover date, and the data base contains data for July 19 for the new contract CL 09-10. which is needed to display the mergebackadjusted data -> correct
              -> Also the database contains no data for July 19 for the old contract -> correct, this is not needed
              -> The problem occurs, when rollover data falls on a Monday, NinjaTrader tries to load the old contract 08-10 data for the week-end over and over again, although the last session prior to rollover day is complete.

              Of course there is no data, so this only causes data throttling and error popups.
              Harry,

              We looked into to understand why there are the repetitive requests for data on Fri-Sun. Long story short (would not want to get into the last details here): trouble is NT has no logic like "ok, I tried to pull data from the provider for Sun, but there was none and for that reason I will no longer go to the provider trying to pull data for Sun".

              The issue is exposed since the CL rolls on Mon and NT needs data on the day before (=Sun) to properly calculate offsets.

              -> unfortunately this is a limitation

              Hope this makes sense. Sorry for the bad news.

              Comment


                #8
                This has the following consequence:

                If my connected charts (lookback 60 too 100 days) show CL and I connect to NinjaTrader -> data throttling and empty charts.

                So I have to switch my workspace to another symbol first , then connect. Then use the historical data manager to load backfill and then switch to CL.

                Using NinjaTrader is sometimes like flying an airplane in the beginning of the 20th century.



                Originally posted by NinjaTrader_Dierk View Post
                Harry,

                We looked into to understand why there are the repetitive requests for data on Fri-Sun. Long story short (would not want to get into the last details here): trouble is NT has no logic like "ok, I tried to pull data from the provider for Sun, but there was none and for that reason I will no longer go to the provider trying to pull data for Sun".

                The issue is exposed since the CL rolls on Mon and NT needs data on the day before (=Sun) to properly calculate offsets.

                -> unfortunately this is a limitation

                Hope this makes sense. Sorry for the bad news.

                Comment


                  #9
                  I hear you. Only way around would be having a rollover date which would NOT be Mon.

                  Comment


                    #10
                    Originally posted by NinjaTrader_Dierk View Post
                    I hear you. Only way around would be having a rollover date which would NOT be Mon.
                    LOL. Instruction in the help file of NinjaTrader: "Do not select any Monday as a rollover date with Interactive Brokers data feed ."

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by wzgy0920, 04-20-2024, 06:09 PM
                    2 responses
                    26 views
                    0 likes
                    Last Post wzgy0920  
                    Started by wzgy0920, 02-22-2024, 01:11 AM
                    5 responses
                    32 views
                    0 likes
                    Last Post wzgy0920  
                    Started by wzgy0920, Yesterday, 09:53 PM
                    2 responses
                    49 views
                    0 likes
                    Last Post wzgy0920  
                    Started by Kensonprib, 04-28-2021, 10:11 AM
                    5 responses
                    191 views
                    0 likes
                    Last Post Hasadafa  
                    Started by GussJ, 03-04-2020, 03:11 PM
                    11 responses
                    3,230 views
                    0 likes
                    Last Post xiinteractive  
                    Working...
                    X