Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

History import and time zones (history manager).

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

    History import and time zones (history manager).

    When importing a historical data, it seems that NT adjusts time zones to my local time, regardless of my choice.
    See enclosed screenshots. On the 2-nd screenshot, you can see: On the left - my source data - a time is 0115xx On the right - the data as exported by History manager. Pay attention that the time is now 0451xx , data is the same.
    On the bottom - the data as see by History manager. A time is 0451xx, which shows, that time is shifted duting import, not during export.

    My local time is currently UTC +3. I tried GMT+3 to bias the shift ,but then got a shift 1 hour back (the 3-rd screenshot).
    I succeeded to import without a bias, only when importing a data as may local timezone (the 4-th screenshot) , REGARDLESS A DAYLIGHT SAVE TIME.

    I got lost. It means that if I really what to import the UTC data as may local time data (which is most logical for my tests) I should perform copmutations how to cheat the history import mechanism in order to get the bias I need.

    I think that instead of the existing, you should provide options:
    1) to import without a bias
    2) to import with user chosen bias (e.g. +3 hours , -2 hours ) etc...
    Attached Files

    #2
    Hi xTrader1, thanks for your feedback, correct your local set PC clock is the reference for NinjaTrader, hence you would need set the timezone if the imported data so it could be stored in the local database accordingly. You should be able to custom code an own import type that would handle custom offsets as you liked.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      You should be able to custom code an own import type that would handle custom offsets as you liked.
      How it can be done ? Do you mean to use undocumented AddBar ?

      Comment


        #4
        You could check into the TextImportType from the MyDocuments\NinjaTrader 7\bin\Custom\Type folder to see how a custom import type might be written - unfortunately this outside of our supported scope here.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          You could check into the TextImportType from the MyDocuments\NinjaTrader 7\bin\Custom\Type folder.

          OK , thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          597 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          555 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X