Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Milliseconds on market replay?

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

    Milliseconds on market replay?

    I'm running a strategy in market replay, and I'd like to record the time an event occurs down to the millsecond. Is that possible? I tried the following code below, neither works. The millisecond part is being printed as 000. According to NT7 guide here, market replay is played back at 1 second granularity, but by any chance is the actual timestamp (to the millisecond) preserved and accessible somehow?


    Code:
    Print(Bars.MarketData.Connection.Now.ToString("yyyy-MM-dd HH:mm:ss.fff"));
    Code:
    		protected override void OnMarketData(MarketDataEventArgs e)
    		{
    			Print(e.Time.ToString("yyyy-MM-dd HH:mm:ss.fff"));
    		}

    #2
    Hello,

    Thank you for the question.

    In NinjaTrader, the current smallest granularity would be either 1 tick or 1 second for time series. As you can see from your test the market data is at this granularity as well, unfortunately there is no supported way to achieve this in NinjaTrader currently.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by 6bobclose5, Yesterday, 08:33 AM
    2 responses
    13 views
    0 likes
    Last Post 6bobclose5  
    Started by several, Today, 09:46 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Uregon, Yesterday, 11:53 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by elite12968, 02-01-2025, 07:30 AM
    3 responses
    31 views
    0 likes
    Last Post bltdavid  
    Started by mdsvtr, 11-18-2013, 05:56 PM
    10 responses
    3,369 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X