Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

replay showing incorrect bar time

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

    replay showing incorrect bar time

    i am running a replay and when i put the print out put for following
    Bars.GetTime(0)

    it shows 2016-01-17 5:20:00 PM which is the last bar bar in the chart and not the time of the bar in play. how do i get the correct time of the bar in play

    #2
    Hello junkone,

    Thanks for your post.

    Please see the helpguide on GetBar: http://ninjatrader.com/support/helpG...us/?getbar.htm The definition shows, "Returns the bar index of the 1st bar from oldest to newest that matches the time stamp based on the DateTime parameter passed in. If the time stamp passed in is older than the 1st bar, a bar index of 0 is returned. If the time stamp is newer than the last bar, the last bar index is returned."

    Please use something like:

    Print ("End Time of Bar :"+Time[0]);

    Time[]: http://ninjatrader.com/support/helpG...eries_time.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    656 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    373 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X