Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

times of bar error

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

    times of bar error

    Hello, users and administrators of the forum.
    Ninja trader is a wonderful software for customized charts and C# programming.
    But I find some bugs(if it’s) in the usage. They bothered and confused me a lot and I have to ask for clarification.
    1. The time of latest bar is one bar later than it should be.
    The data feed I use is kinetick end of day data.
    (To announce ahead. I’m a Chinese user, my time zone is GMT +8. My OS is windows 7 64bit without sp1. I used the 32bit of ninjatrader, version 7.0.1000.4, not 64bit, because 64bit can’t launch)
    I use the GC chart for example.
    The date of today is 2011/06/24.
    But look at the Monthly chart(figure 1). Why the latest bar shows the time of July(07), it should be June.
    Then the weekly bar(figure 2). the time is 06/25/2011, it’s tomorrow’s time, and tomorrow is Saturday.And you can guess that all the bar times are Saturdays.
    Then the daily chart(figure 3). Since I used the end of day data, the last bar was for yestoday(06/23),not 06/24.

    I’m not sure whether this problem is caused by the time zone difference.
    I made a test. I made a historical data file named “AAAA” and import it to historical data manager. We can clearly see that the time is from 2010/7/29 to 2011/5/18.(figure 4).
    But look what happened when I opened a chart of “AAAA”.
    The earliest bar turned to 7/30/2010, the latest turned to 5/19/2011. Both late for a day..(figure 5).
    Attached Files

    #2
    Two more figures for the AAAA time test

    2 more figures, first post attachments full.
    Attached Files

    Comment


      #3
      other indicator bugs of charts

      figure 1, the left of chart, about 20 bars have no indicator plots(SMA(5) and VOL indicator), the values of which surely exist. I can see the values in data box tool.

      The latest bar’s indicator have no plot or values.(figure 2).

      I drew a gan fan. Is it the right gan fan? I don’t think so.(figure 3).
      Attached Files

      Comment


        #4
        Hello SimonUP,

        Please note that NinjaTrader time stamps its price bar at the closing time.

        The Kinetick EOD connection provides historical daily data only and no real-time data. You should receive the daily 6/24 bar at the end of todays trading.

        The Weekly bar reflects 6/24/2011 on my end and the Monthly chart reflects June.

        Can you please try the following. Close NinjaTrader and go to (My) Documents-->NinjaTrader 7-->db and transfer the day folder to a different location. Delete the content of the cache folder in the NinjaTrader 7-->db folder as well.

        Change your PC clock to US EDT time zone.

        Start NinjaTrader and create new charts and check if the Weekly and Monthly charts time stamp the last bar as expected.



        Perhaps it is best to create a seperate forum thread for each issue in the future.

        1. Unfortunately this is as expected. Each indicator will not plot for the first 20 bars in the chart.

        2. Please set 'Calculate on bar close' to False for the indicators in the Indicator menu. It should now plot an indicator value for the most current price bar. The indicator is calculated on each incoming tick instead of the close of a price bar.

        3. Yes, the screenshot displays a Gann Fan drawing object. If you double click the Gann Fan, it will open its Properties menu so you can configure it to your liking.
        Attached Files

        Comment


          #5
          Set time zone

          Thank you, Jason. I did what you said, change my time zone to EST(same as EDT?). Daily, Weekly, Monthly chart became all right. The data "AAAA", which I made was still wrong, so I looked at its session template. It was default 7/24. I changed it to US equity RTH. It went right also.
          Thank you a lot. Wish everything goes well in your work.
          Still a doubt, why NinjaTrader timestamps price bar at the closing time, not the start time? Can it be set?


          About the indicator problems, I shoud put it in another thread. Luckily you solved my question. But the gan fan drawing tool, I didn't describe clearly last time. Its slope, why the 1×8 line is less than 45 degree? All the lines shrink together.

          Comment


            #6
            Yes, EDT stands for US Eastern time zone and is used during daylight saving time (spring - autumn). EST is used during standard time (winter).

            Unfortunately, you cannot configure NinjaTrader to timestamp bars at the start time.

            You can configure the Gann Fan to your liking using its Properties menu. I am not sure why you expect the 1x8 line to have a slope of 45 degree. Could you please clarify?

            Comment


              #7
              Thanks for your answers, which are elaborate.
              I thought the 1×1 line's slope should be 45°, maybe I wasn't right. I'm not familiar with gan fan. Sorry for bothering.

              Comment


                #8
                customize the time to use

                Hello, Jason. I thought of an issue.
                I set my PC clock to EST, which is different from my local time. It caused a little inconvience.
                Could ninja trader make an option to customize the time to use other than use the user's PC time in the future version?
                Last edited by SimonUP; 06-29-2011, 07:43 PM.

                Comment


                  #9
                  I will forward your suggeston to support an option to select a time zone which will be used in NinjaTrader other than the PC clock to development. Thank you for your feedback.

                  Comment


                    #10
                    The suggestion to select a time zone to your liking other than the PC clock time zone has been assigned to ID# 41.

                    Comment


                      #11
                      Thanks.
                      What's that ID mean?

                      Comment


                        #12
                        ID stands for identification, meaning your suggestion has been assigned to identification number 41.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        566 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        330 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        101 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        547 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        548 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X