Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      150 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      6 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      6 views
      0 likes
      Last Post tkaboris  
      Working...
      X