Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time zone - daylight savings time

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

    Time zone - daylight savings time

    I am little confused as to how the system deals with the daylight saving time changes in respect to historical data
    specifically in my country we have a different schedule than other countries (e.g markets) this causes a 1 hour difference for a week or so, until that time when the GERMAN market for example catches up with us

    I do know that by changing the NT8 time zone I can force the data to be loaded as required. this helps with the real time data flow and trading

    What I am looking for to understand is the historical data times.
    Should I create for each day, in the past , that has a skewed time a separate entry in the holidays table ?
    so if I have 4 years of historical data I should have an entry for about 10 days per year....
    What will these changes stay intact when I update the system or upgrade ?

    does this make sense ? any other options ?


    #2
    What version of NinjaTrader 8 are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.0.X.X)

    What is NinjaTrader's time zone?

    The trading hours templates and the data itself should all be downloaded in the time zone which NinjaTrader is set to. Can you give me an example of when a particular date (or a particular trading hours holiday schedule settings) resulted in an undesired or unexpected data issue?

    What issue specifically are you able to work-around by changing the time zone? To change the timestamp on historical data, you would need to right-click on your charts and select 'reload all historical data' so that data is re-downloaded using your new time zone settings.

    Comment


      #3
      Patric

      the version is - 8.0.16.1 64-bit

      My time zone is UTC+2
      we have moved to the Daylight Saving time Last Sunday. This means that for me the GERMAN Market starts NOW at 08:00 (before that it was 09:00)
      In order to see correct data on charts and be able to trade I need to set the NINJA timeZone to UTC+1. Normally it is UTC+2 as my computer.

      But again, this is not the issue I believe. if I download the templates, they will be set correctly.
      I should not have an issue while trading. Next week the German market will move its clock and then we will be in sync again. and I will need to change the NINJA TimeZone back
      to the UTC+2. and all will be well again.

      BUT, if I run strategy analyzer on historical data, all these jumps of timezone, are not REPRESENTED,
      the templates are not changed
      So I have gaps in the data with wrong timestamps.
      I CAN NOT RELOAD DATA FROM 4 YEARS AGO. so that means that either I will go an change the Timestamp of the historical data on these particular days, Or maybe I can add holiday special trading hours inside the template

      I am looking for confirmation of my logic. and also maybe suggest that the daylight saving time settings will be included in the trading hours templates

      Comment


        #4
        Ninjatrader's trading hours templates account for daylight savings time. For example if I add a CME US Index Futures RTH trading hours template to a chart, most of the year it starts printing prices at 14:30. (09:30 EST). Daylight savings time ended here on Sunday. So today the CME US Index Futures RTH Template started printing prices an hour early at 13:30 (still 09:30 EST). In a week or two daylight savings will end in the USA the market will open an hour later, and CME US Index Futures RTH will one again start printing prices at 14:30 (09:30 EST).

        So basically you don't need to do anything... just expect US markets to start an hour earlier for a couple of weeks in autumn and an hour later for a couple of weeks in spring.

        Comment


          #5
          You're over thinking this... The markets always start at 9am. Whether its daylight savings or not. We change the clocks, but we don't change the time of day we do things. There wouldn't be much point otherwise; so the market still opens at 9am.

          You don't need to change your timezone in Ninjatrader for daylight savings. Just leave it on UTC+1 Amsterdam Berlin all year round.




          Originally posted by dadarara View Post
          Patric

          the version is - 8.0.16.1 64-bit

          My time zone is UTC+2
          we have moved to the Daylight Saving time Last Sunday. This means that for me the GERMAN Market starts NOW at 08:00 (before that it was 09:00)
          In order to see correct data on charts and be able to trade I need to set the NINJA timeZone to UTC+1. Normally it is UTC+2 as my computer.

          But again, this is not the issue I believe. if I download the templates, they will be set correctly.
          I should not have an issue while trading. Next week the German market will move its clock and then we will be in sync again. and I will need to change the NINJA TimeZone back
          to the UTC+2. and all will be well again.

          BUT, if I run strategy analyzer on historical data, all these jumps of timezone, are not REPRESENTED,
          the templates are not changed
          So I have gaps in the data with wrong timestamps.
          I CAN NOT RELOAD DATA FROM 4 YEARS AGO. so that means that either I will go an change the Timestamp of the historical data on these particular days, Or maybe I can add holiday special trading hours inside the template

          I am looking for confirmation of my logic. and also maybe suggest that the daylight saving time settings will be included in the trading hours templates

          Comment


            #6
            Kevin
            thanks for the explanation.

            seams to me that my situation is a little more complicated than that.
            not only that I trade with US and German markets I also live in a country that moves its clock not in sync with everyone else. (We are not in sync with the world in a lot of things ) But I might be wrong so I am checking this as I write...
            Now if my understanding is correct than setting the TimeZone to Jerusalem the system should know when the daylight saving time starts. If so, than last Sunday it should have done it and this Monday I should have seen the data start flowing at 08:00. BUT IT DIDN'T. the computer changed its clock alright, BUT NOT NINJA. Maybe this is what confused me. than maybe there is bug in the hours template ?!?!

            more over, I am thinking about the historical data I already have loaded. all of it is loaded as UTC+2 with no corrections for Daylight Savings times. and although the difference is not a huge one, a few days hear and there, still it bothers me. I wish I could find a good source of TICK DATA for DAX for 4-5 years back. I couldn't without taking a mortgage.
            Last edited by dadarara; 10-30-2018, 12:14 AM.

            Comment


              #7
              Ah ok sorry I thought you were in Germany. I'm still not sure I understand what the issue is. Daylight savings ends in Europe (and Israel) on the last Sunday of October (this past Sunday 28th Oct). You shouldn't have noticed any difference in the market opening times at all for the German markets if you leave your Timezone unchanged. By the way make sure you delete all historical data after changing timezone just to be on the safe side.

              The US markets will be starting an hour earlier until the Americans turn their clocks back. Nobody knows exactly when that happens, its got something to do with a little hedgehog casting a shadow in the dawn sun.
              Last edited by kevinenergy; 10-30-2018, 05:01 AM.

              Comment


                #8
                There are several UTC+2 time zones available in Windows and NinjaTrader. Both your PC and NinjaTrader are set to UTC+2 Jerusalem? And can you clarify which instrument you're viewing where you do not see the correct start time expected after Oct. 28th? If possible, a screenshot of this unexpected opening time would be helpful as well.

                Comment


                  #9
                  Hello please i need clarify mi time backtest.

                  My pc is in Caracas Venezuela, the pc is configures with my local time. My historical data is download from IB. In my backtest of many years i saw not changes in the hour open and close market. But in my country in november the market open one more late 10.30 and close 5.pm for a few months. My backtest dont show that.

                  Annex picture, The exit session close in november is 4 pm. That is meant my backtest is dont work well or is in the backtest the hour for open and close not change in all year.

                  Regards
                  Attached Files

                  Comment


                    #10
                    In Windows 10, The UTC-4 Caracas time zone does not automatically adjust for daylight saving time:

                    Click image for larger version

Name:	LWR_Recording (3).png
Views:	552
Size:	61.9 KB
ID:	1109972

                    If you change to another time zone in Windows that either automatically adjusts for daylight saving time, I suspect you would then notice a shift in the recorded times. Keep in mind that if you do choose to change your time zone, you'll want to:
                    1. Shut down NinjaTrader first
                    2. Restart your PC after the change
                    3. Once you've restarted your PC and opened NinjaTrader, you'll want to right-click on your chart's and select 'Reload all historical data' to ensure that the data is downloaded in the new time zone you've selected.

                    Comment


                      #11
                      Originally posted by ... Keep in mind that if you do choose to change your time zone, you'll want to:[LIST=1
                      [*]Shut down NinjaTrader first[*]Restart your PC after the change[*]Once you've restarted your PC and opened NinjaTrader, you'll want to right-click on your chart's and select 'Reload all historical data' to ensure that the data is downloaded in the new time zone you've selected.[/LIST]
                      This post literally saved my day. I did a mess with historical data on my VPS in the last days, playing with time zones inside NT and with local time.
                      At one point I had 100+ strategies that started working erratically, and my portfolio deeply degraded.

                      I confirm, the method to restore everything is to all cancel historical data (db/minute), open a chart and select the command 'Reload all historical data' from context menu.
                      For some reason data load from Strategy Analiser is not a correct procedure and data restoration not guaranteed.
                      Neither the classical tool/historical data/Load interface.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by GLFX005, Today, 03:23 AM
                      0 responses
                      1 view
                      0 likes
                      Last Post GLFX005
                      by GLFX005
                       
                      Started by XXtrader, Yesterday, 11:30 PM
                      2 responses
                      11 views
                      0 likes
                      Last Post XXtrader  
                      Started by Waxavi, Today, 02:10 AM
                      0 responses
                      6 views
                      0 likes
                      Last Post Waxavi
                      by Waxavi
                       
                      Started by TradeForge, Today, 02:09 AM
                      0 responses
                      14 views
                      0 likes
                      Last Post TradeForge  
                      Started by Waxavi, Today, 02:00 AM
                      0 responses
                      3 views
                      0 likes
                      Last Post Waxavi
                      by Waxavi
                       
                      Working...
                      X