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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X