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 Jon17, Today, 04:33 PM
          0 responses
          1 view
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          4 views
          0 likes
          Last Post Javierw.ok  
          Started by timmbbo, Today, 08:59 AM
          2 responses
          10 views
          0 likes
          Last Post bltdavid  
          Started by alifarahani, Today, 09:40 AM
          6 responses
          40 views
          0 likes
          Last Post alifarahani  
          Started by Waxavi, Today, 02:10 AM
          1 response
          19 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Working...
          X