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
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    435 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    3 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    18 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frslvr, 04-11-2024, 07:26 AM
    9 responses
    127 views
    1 like
    Last Post caryc123  
    Started by selu72, Today, 02:01 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X