Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetBars Daily timeframe returns data for next date

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

    GetBars Daily timeframe returns data for next date

    I used GetBars() to give me 200 days of data to calc a proper SMA.
    When I do that the values turn out to be the values that a Daily chart shows for the next date.

    So I get a closing price for AUDUSD from DailyBars:
    21-10-2010 0:00 .97715
    and on the daily chart that is the close of 22-10-2010

    Did I just found the holy grail or how should I interprete the GetBars() outcome?
    Oh yes, I know GetBars is not supported. But I would still like to know as there is no other way of finding a correct SMA200 for daily on a short timeframe chart.

    Maybe somebody knows how to properly address this GetBars.

    #2
    Clint, can you just subtract a day from the GetBars() result to get the correct day?
    AustinNinjaTrader Customer Service

    Comment


      #3
      I can sure add a day to match GetBars date with the Daily charts day. But I would really like to know how it is supposed to work. I can guess that this might work, need to check realtime though. But NT must have had a meaning, other than frustrating me, to store it differently and then I would like to know about it. The helpfile is of no use for this.

      Comment


        #4
        This is an unsupported method, and that is why there is no documentation available.
        AustinNinjaTrader Customer Service

        Comment


          #5
          cant say for sure but it can be a sessions manager issue (particularly true if you not from the US).

          check this link http://www.ninjatrader.com/support/f...ad.php?t=31877

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          212 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          121 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          145 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          227 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          188 views
          0 likes
          Last Post CarlTrading  
          Working...
          X