Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

B6 GetBar(..) returns wrong bar for time when only 2 sessions are visible

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

    B6 GetBar(..) returns wrong bar for time when only 2 sessions are visible

    Repro steps -

    1) Create the chart shown, don't forget to select the CME US Index Futures ETH session template
    2) Add the attached test script to the chart
    3) Pan/rescale the chart to include the bars in the screen shot (or something close to it)
    4) When the current session and part of the last session are visible GetBar(...) always returns the first bar of the current session no matter what time you pass as a parameter. Example output, which is not correct, see the times:

    Asked for 10/29/2015 6:50:00 AM and got 10/29/2015 3:01:00 PM

    GetBar() appears to work like expected otherwise - except in this particular scenario.
    Attached Files
    Last edited by RanchoDinero; 10-30-2015, 07:51 AM.

    #2
    Hello,

    Thank you for reporting this. I am not able to reproduce the issue so far on my end -- the two values are always identical. However, it is possible that I am not using the exact chart settings as you. Can you please post a screenshot showing every chart property in the Data Series window?
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    666 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X