Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bar Timestamp inside or outside session BeginTime EndTime

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

    Bar Timestamp inside or outside session BeginTime EndTime

    data feed = continuum cgm ninjatrader

    I have a trading hours session template, with example sessions
    (index 2) starting at 6:30 am, ending at 9:30am
    (index 3) starting at 9:30 am, ending at 11:00am

    Bar timestamp is the time that bar finished, ex 5 min bars, bar with timestamp of 9:30 am, was started at 9:25 am, and ended at 9:30 am.

    That bar was inside the session (index 2) since bar started at 9:25 am and finished at 9:30 am
    and the next session (index 3) started at 9:30 am, so the first bar of that session (index 3) will have a timestamp of 9:35 am (on a chart built from 5 minute bars)

    I'm testing my code and need confirmation that my unit tests will match this use case.

    Please confirm my explanation is correct, for both historical backtest data (Playback Connection, Data Series => Tick Replay checked) and live data.

    thanks



    #2
    Yes, bars are time stamped with their closing time:

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RideMe, 04-07-2024, 04:54 PM
    5 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by f.saeidi, Today, 08:13 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by DavidHP, Today, 07:56 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by kujista, Today, 06:23 AM
    3 responses
    9 views
    0 likes
    Last Post kujista
    by kujista
     
    Started by Mindset, Yesterday, 02:04 AM
    2 responses
    18 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Working...
    X