Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Understanding sessions and offset data

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

    Understanding sessions and offset data

    Hello,

    I am having an issue to visualize data in charts.

    I have set up some instruments for Yahoo connection, that are in a -3:00 time zone.

    I am currently sitting at +3:00 time zone.

    When I use the 24/7 time session or a session I created with the market time and the -3:00 time zone, I get all the data shifted by one day (Friday shows on saturday and so on).

    The only way I could make it work was to create a session with my current timezone and apply that. Is that normal?

    Regards.

    #2
    Hello user1986,
    Thanks for your reply.
    Daily data is only provided in OHLC and Volume information. Session templates will not modify this data and it is typically recommend to leave it on default.
    The Default 24/7 session template is based on eastern time.
    Bars will get time stamped based on bar close.
    Adjusting the session template can affect what day the bars get time stamped.
    BrandonNinjaTrader Customer Service

    Comment


      #3
      Thanks Brandon for your reply.

      I'm afraid I am not quite following you... According to what you say, session should not change anything, but when I plot the values, I only see the candles in the correct day in some sessions (not in Default for example).

      Where should the timestamp for each bar come from?

      Comment


        #4
        Hello user1986,
        Thanks for your reply.
        I am referring to the OHLC values. Changing the session template will not affect these values so I do not recommend changing the session template. The only thing it will effect is the date of the bar. The date/time of the bar comes from your data provider.
        BrandonNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Brandon View Post
          The only thing it will effect is the date of the bar. The date/time of the bar comes from your data provider.
          Ok, So the bar gets stamped with whatever date the provider has determined.
          Then if my provider sends one date for a bar why am I seeing it in a different date by using the default session?

          Comment


            #6
            Hello user1986,
            Thanks for your reply.
            The close of the session template can be for the current day or the next day your local PC time. That will affect what day it gets applied to.
            What is the reason you are wanting to use a different session template on a daily bar?
            BrandonNinjaTrader Customer Service

            Comment


              #7
              The reason is that if I use the default, I see the bars on the wrong day...
              But my understanding was that the time Session had to be created on the original time zone, which is not working... That's why I am trying to understand how to create correct time sessions.
              Attached Files

              Comment


                #8
                Hello user1986,
                Thanks for your reply.
                What is an instrument you are attempting to do this for so I can verify what settings you should ues?
                BrandonNinjaTrader Customer Service

                Comment


                  #9
                  This example was APBR.BA with yahoo EOD.

                  Comment


                    #10
                    Hello user1986,
                    Thanks for your reply.
                    It would be recommended to use a session template that has the same hours as the exchange.
                    I have not been able to find the exchanges hours. If you are able to read the language of the exchanges website I would recommend looking for the hours there.
                    BrandonNinjaTrader Customer Service

                    Comment


                      #11
                      That is what I tried in the beginning, but if I do that, I get the shifted data issue.

                      The session times in that market are 11:00 to 17:00 at GMT-3:00.

                      Comment


                        #12
                        Hello,
                        Thanks for your reply.
                        It is correctly time stamping them as the next day then. 5:00pm GMT-3 is 2:00am GMT +3 the next day. Since the bars are time stamped based on the bar close and the close is the next day for you, it is time stamped as the next day
                        BrandonNinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by NinjaTrader_Brandon View Post
                          Hello,
                          Thanks for your reply.
                          It is correctly time stamping them as the next day then. 5:00pm GMT-3 is 2:00am GMT +3 the next day.
                          Sorry for the correction, but 5pm -3 is equivalent to 11pm +3 (6 hs difference, same day).

                          So the bar will be stamped local time of where my computer is at? Say I move to another timezone, I could have consecutive bars reffered to different time zones?

                          Comment


                            #14
                            Hello user1986,
                            Thanks for your reply.
                            Seems I had a typo in my timezone converter app.
                            I will do some further testing on this.
                            Yes, NinjaTrader displays items on your local time. Moving to other time zones will result in bars showing the time based on that time zone.
                            BrandonNinjaTrader Customer Service

                            Comment


                              #15
                              Hello user1986,
                              I have tested this instrument on my end, with my PC set to your time zone, and with a custom session template that matches what you said. This displays on my end as the day format you expect.
                              To resolve exit NinjaTrader
                              Open Documents\NinjaTrader 7\db
                              Delete the 'cache' and 'day' folders
                              Restart NinjaTrader and open a chart for this instrument using the custom session template
                              Connect to Yahoo and test
                              BrandonNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by traderqz, Today, 12:06 AM
                              2 responses
                              3 views
                              0 likes
                              Last Post traderqz  
                              Started by RideMe, 04-07-2024, 04:54 PM
                              5 responses
                              28 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by f.saeidi, Today, 08:13 AM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by DavidHP, Today, 07:56 AM
                              1 response
                              6 views
                              0 likes
                              Last Post NinjaTrader_Erick  
                              Started by kujista, Today, 06:23 AM
                              3 responses
                              11 views
                              0 likes
                              Last Post kujista
                              by kujista
                               
                              Working...
                              X