Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,290 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          8 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          8 responses
          61 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by Option Whisperer, Today, 09:55 AM
          0 responses
          8 views
          0 likes
          Last Post Option Whisperer  
          Started by halgo_boulder, 04-20-2024, 08:44 AM
          2 responses
          24 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X