Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Intrabar Timestamp for Market Replay

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

    Intrabar Timestamp for Market Replay

    Is there a time function available in Ninja that will return the current "data server" intrabar time based on historical external datafeed or market replay data? Time[0] returns the end of bar time and the DateTime.Now function returns the current local system time however, how would I go about obtaining a timestamp to the nearest second on an intrabar event that is relevant to the historical replay data. Ideally, this timestamp should return an accurate intrabar time even under accelerated market replay.

    Thanks,

    Whitmark
    whitmark
    NinjaTrader Ecosystem Vendor - Whitmark Development

    #2
    No in OnBarUpdate() since we are only dealing with bar data and not true market data. NT 6.5 will have an OnMarketData() method that provides a more granular resolution on time stamps for all market data events.
    RayNinjaTrader Customer Service

    Comment


      #3
      Excellent! Thanks Ray.
      whitmark
      NinjaTrader Ecosystem Vendor - Whitmark Development

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      87 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      106 views
      0 likes
      Last Post CarlTrading  
      Working...
      X