Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Importing Tick Data Problem

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

    Importing Tick Data Problem

    Hi,

    I have tick data for AMZN that I want to import into my NT8, took a sample for 2023-03-29 and it looks like this;

    Click image for larger version

Name:	image.png
Views:	156
Size:	7.8 KB
ID:	1248878

    I used the Historical Data > Import tool as below to import the data into NT8 (8.0.22.2), it was successful

    Click image for larger version

Name:	image.png
Views:	144
Size:	22.0 KB
ID:	1248879

    I can see that tick data is in place as below;

    Click image for larger version

Name:	image.png
Views:	140
Size:	71.9 KB
ID:	1248880

    Now when I go to the chart (tick data option checked) and open 29th of March for AMZN, I'm only seeing 6 bars in total in a one minute chart, I tried different time frames, it's not working

    Click image for larger version

Name:	image.png
Views:	149
Size:	20.6 KB
ID:	1248881

    I tried with 1500 tick chart, doesn't look right either.

    Click image for larger version

Name:	image.png
Views:	149
Size:	21.9 KB
ID:	1248882

    Any idea where I might be going wrong with this data import?

    Thanks
    M​



    #2
    At a minimum your third column (the tick within the second) needs to have seven digits not six. I'm not sure if there are other problems. Ticks in .NET are 100 nanoseconds in length, so there are seven digits in the possible timestamp after the seconds position.

    I don't know for sure but I suspect that since your data is in the wrong format it is falling back to seconds precision and ignoring the subsecond information since it is not in the right format.

    See also: https://ninjatrader.com/support/help.../importing.htm expand the subsection: Tick Format (Sub Second Granularity)

    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      thanks @QuantKey_Bruce​, I made the change as you suggested, imported data for 30th of March

      Click image for larger version

Name:	image.png
Views:	145
Size:	23.9 KB
ID:	1248886
      Still seeing a similar picture

      Click image for larger version

Name:	image.png
Views:	146
Size:	27.0 KB
ID:	1248887

      Thanks
      M

      Comment


        #4
        Hello M,

        Note, that you will need to check the 'Generate 'Minute' bars from imported tick data' option if you are importing tick data and want to load a minute chart.

        That said, the data in the file appears to be for March 30th. There may be missing data from before this day.

        May I confirm you have compared the data in the historical data window to the imported file? Are there ticks missing in the historical data window that are in the file?

        Comment


          #5
          Hi @NinjaTrader_ChelseaB​ thanks for looking into this. I deleted the previous import and imported the dataset again by checking the 'Generate 'Minute' bars this time, once again the chart doesn't show a proper 1 minute chart, looking at the instrument's minute data in the database (screenshot below), it only has 15 items with these random time blocks. really odd.

          Click image for larger version

Name:	image.png
Views:	145
Size:	77.1 KB
ID:	1249491
          And when I look at the Tick data items in the database, you can see from the screenshot below that there are thousands of items imported, but the chart is giving this very odd output for 1500 tick chart (Tick Replay checked in settings)

          Click image for larger version

Name:	image.png
Views:	130
Size:	104.1 KB
ID:	1249492
          Unfortunately it's just not working.

          Thanks
          M

          Comment


            #6
            Hello M,

            Which ticks are missing in the historical data window that are in the historical data text file?

            Or which ticks in the historical data window are not matching the text file?

            Comment


              #7
              Hi NinjaTrader_ChelseaB​,

              They all seem to be matching, here you can see it in the screenshot below. The total number of imported rows matches the total number of lines that are the txt file as well.

              Click image for larger version

Name:	image.png
Views:	134
Size:	162.8 KB
ID:	1249509​Thanks
              M

              Comment


                #8
                Hello mntemel,

                If the data in the Historical Data window is matching what is in the text file, then this would be the same that is displaying on the chart.

                Open a 1 tick chart if you would like to compare with the Historical Data window and confirm.

                This would indicate that the data in the text file is not as you expect.

                Comment


                  #9
                  @NinjaTrader_ChelseaB​ thank you, looks like there was a problem with my dataset, figured out the problem.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by futurenow, 12-06-2021, 05:49 PM
                  18 responses
                  878 views
                  0 likes
                  Last Post dj0ntz
                  by dj0ntz
                   
                  Started by nailz420, 05-14-2025, 09:14 AM
                  1 response
                  117 views
                  0 likes
                  Last Post NinjaTrader_ChristopherJ  
                  Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
                  0 responses
                  522 views
                  1 like
                  Last Post NinjaTrader_Brett  
                  Started by domjabs, 05-12-2025, 01:55 PM
                  2 responses
                  84 views
                  0 likes
                  Last Post domjabs
                  by domjabs
                   
                  Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
                  1 response
                  122 views
                  0 likes
                  Last Post NinjaTrader_ChristopherJ  
                  Working...
                  X