Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Issues with Daily Chart

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

    #16
    Originally posted by NinjaTrader_Kyle View Post
    Hi traderji,

    Thanks for clarifying.

    One important thing to keep in mind here is that NinjaTrader displays the close date and time of a bar. That being the case, you'll just need to adjust the timezone that the template is based on here. The chart is currently reporting that these daily bars close at 7:00 AM the next day, so the next date is reflected on the bar.

    If you'll move the timezone back towards GMT, you should eventually be left with a close on the current day. For example, if the timezone is adjusted to GMT you should be left with a bar which is reported to close at 9:00 PM, which would result in the date for the bar being listed as the current day.

    Ok that explains why the bar info showed the date as 14/07/2011. However I don't understand your reasoning behind changing the timezone for this session. I don't want the bar to close at 9pm local time. The bar should open at 7am and close at 7am.

    Which is the whole issue here. NT is displaying incorrect daily bars. The data displayed is incorrect.

    Is there any way to check if NT is parsing the data correctly?

    Comment


      #17
      Hi traderji,

      As I'd mentioned, NinjaTrader lists the close date and time of a bar.

      In the session template you've defined, you're telling NinjaTrader that bars close at 7:00 AM. Since the bar closes at 7:00 AM, the date as of 7:00 AM is used - in the case of the bar today, that date would be 14/7/2011 as that's when the bar is actually closing - 7:00 AM 14/7/2011.

      I think you're ultimately looking for here is for the open time of the bar to be displayed - unfortunately, that's simply not possible currently, but a change is something development is considering for future releases.

      In the meantime, you really only have two choices:
      Keep your current settings and have the date displayed as it is now.
      Adjust the close time of the bar so that the close occurs on the current date so that the current date is what the bar is marked with in the chart.
      KyleNinjaTrader Customer Service

      Comment


        #18
        Originally posted by NinjaTrader_Kyle View Post
        Hi traderji,

        As I'd mentioned, NinjaTrader lists the close date and time of a bar.

        In the session template you've defined, you're telling NinjaTrader that bars close at 7:00 AM. Since the bar closes at 7:00 AM, the date as of 7:00 AM is used - in the case of the bar today, that date would be 14/7/2011 as that's when the bar is actually closing - 7:00 AM 14/7/2011.

        I think you're ultimately looking for here is for the open time of the bar to be displayed - unfortunately, that's simply not possible currently, but a change is something development is considering for future releases.

        In the meantime, you really only have two choices:
        Keep your current settings and have the date displayed as it is now.
        Adjust the close time of the bar so that the close occurs on the current date so that the current date is what the bar is marked with in the chart.

        Kyle - I think you have misunderstood the issue that I have posted in this thread. I really don't care about the date of the bar as much as the fact that the bar is displaying incorrect high,low,open,close. I understand what you are saying about the date being the date on which the bar closes and that is fine case closed.

        The problem with my daily charts is that the data displayed in bars are incorrect. There are two issues

        - They are showing the wrong open/close/high/low.
        - The new daily bar does not get created at 7am , like it should given the session template in use.

        I am posting a screenshot below of the EURUSD daily chart. The open, close , high, low are all incorrect. It has merged some data from previous day and today. It was yesterday that we reached that low and only today that we reached this high.

        Bar 1 (today) should have a high of 1.4118 and low of 1.3951
        Bar 2 (yesterday) should have a high of 1.4062 and low of 1.3838

        Instead what I have is this massive incorrect bar (bar 1 in the screenshot below) which high of today and low of yesterday. The problem here is blatantly obvious to me which is that NT is incorrect parsing the daily historical data and not recognizing when session ends according to the session template in use.
        Attached Files

        Comment


          #19
          Hi traderji,

          Thanks for clarifying.

          The time at which a daily bar rolls over isn't something which NinjaTrader controls - this is something which occurs at the data provider's servers. Session templates don't even come in to play in terms of this.

          That said, can you clarify for me which data source your connected to in this image and which data source your comparing OHLC values against?
          KyleNinjaTrader Customer Service

          Comment


            #20
            Originally posted by NinjaTrader_Kyle View Post
            Hi traderji,

            Thanks for clarifying.

            The time at which a daily bar rolls over isn't something which NinjaTrader controls - this is something which occurs at the data provider's servers. Session templates don't even come in to play in terms of this.

            That said, can you clarify for me which data source your connected to in this image and which data source your comparing OHLC values against?

            My data provider is Interactive Brokers and I am comparing the daily chart to data in my 5min, 15min & 60min EURUSD charts.

            7am (Sydney time) is the rollover time worldwide for forex. That is when the New York session ends and the Sydney session begins. So my session template matches this correctly. That is why NT should be starting new daily bar at 7am Mon - Fri.

            Comment


              #21
              Hi traderji,

              Let's take just the 60 minute chart for an example here - which session template is at use in this chart? The custom template you'd mentioned earlier?
              KyleNinjaTrader Customer Service

              Comment


                #22
                Breaking News - I got it working! I remembered that IB closes it's data feed from 7am - 7:10am. I changed the session template to start at 7:10am and it worked. The daily chart looks correct now.

                So I guess NT does not create a new daily bar at 7am if the data stops and then resumes 10mins later?

                Comment


                  #23
                  Hi traderji,

                  An interesting result - thanks for providing this update. Even in the case of a maintainance period like the one you mentioned, NinjaTrader should resume charting as soon as more data becomes available.

                  If you're interested in moving further with this, I'd want to know whether you'd see the same behavior with a 'Default 24/7' session template and which build of TWS you're using. (Help > About Trader Workstation)
                  KyleNinjaTrader Customer Service

                  Comment


                    #24
                    Sure I'd like to know what causes this, so glad to provide more information.

                    I am using TWS ver 917.8.

                    When I tried Default 24/7, Default 24/5 & Forex (NT built-in template) I got the incorrect daily bars.

                    Comment


                      #25
                      Hi traderji,

                      I'm actually interested in the data roll over. Is the new bar created with this template when the data stops and resumes 10 minutes later during roll over?
                      KyleNinjaTrader Customer Service

                      Comment


                        #26
                        Originally posted by NinjaTrader_Kyle View Post
                        Hi traderji,

                        Even in the case of a maintainance period like the one you mentioned, NinjaTrader should resume charting as soon as more data becomes available.

                        Ninjatrader does resume charting when more data becomes available, it just doesn't seem to close off the previous bar and open a new bar. That's why in that screenshot I posted, the bar 1 was basically merged data from two days.

                        Comment


                          #27
                          Originally posted by NinjaTrader_Kyle View Post
                          Hi traderji,

                          I'm actually interested in the data roll over. Is the new bar created with this template when the data stops and resumes 10 minutes later during roll over?

                          Which template are you asking about? The one that just worked for me or the Default 24/7?

                          In the Default 24/7, when 7:10am rolled around, NT did not create a new bar instead it kept writing to current bar.

                          Comment


                            #28
                            Hi traderji,

                            I see - thank you again for clarifying.
                            KyleNinjaTrader Customer Service

                            Comment


                              #29
                              Kyle - Would you escalate this to the developers if possible? Just in this forum alone there are many threads about daily charts having the same issue across different data feed providers.

                              At the least there should be a note added to the connection guide so that users know that if their broker has a maintenance period then they should adjust the session start times

                              Comment


                                #30
                                Hi traderji,

                                I'll need to be able to recreate the issue first - so that will be my next step, but I'd be happy to follow up with development after that.

                                In the meantime, the work-around you discovered should be effective.
                                KyleNinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                105 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                54 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                36 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                38 views
                                0 likes
                                Last Post TheRealMorford  
                                Started by Mindset, 02-28-2026, 06:16 AM
                                0 responses
                                74 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Working...
                                X