Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 GetBar != NT8 Bars.GetBar???

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

    NT7 GetBar != NT8 Bars.GetBar???

    Hi,
    I have nt7 running on one machine and nt8 running on another. I have a chart open for ES on both machines with identical settings.
    In an indicator I have working in nt7, I call GetBar with a date
    '10/16/2015 7:15:00 AM'.
    The return value is 28 as I expected.
    If I do the exact same thing with NT8 I get a return value of 158.
    What am I missing?

    Curiously, it just so happens that in NT8, if I take CurrentBar - Bars.GetBar, I get the desired (matching nt7) result of 28.
    Is this just a coincidence? Or is this expected behavior?

    Anyhow, I need some guidance here.
    Thanks ... Ed


    #2
    Hello edstaffin,

    Thank you for your inquiry.

    I am unable to reproduce this on my end.

    Please ensure that both NinjaTrader 7 and NinjaTrader 8 are loading the exact same amount of bars.

    As a test, open an ES 12-15 daily chart with a days to load setting of 10 and an end date for today, 10/21/2015.

    Both should output 7 for your GetBar() output.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      I'll do the test and get right back to you.
      Are you using b5 or b6? I, obviously, am using b5.
      Thanks ... Ed

      Comment


        #4
        Hello edstaffin,

        I am currently testing this on Beta 5.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          Ed are you in live or playback? And which playback?

          I can try later on in playback-mr

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by kinfxhk, 07-13-2026, 10:18 AM
          0 responses
          24 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 09:50 AM
          0 responses
          14 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 07:21 AM
          0 responses
          20 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-11-2026, 02:11 AM
          0 responses
          19 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          135 views
          0 likes
          Last Post SalmaTrader  
          Working...
          X