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 jeronymite, 04-12-2024, 04:26 PM
    3 responses
    40 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Today, 08:51 AM
    2 responses
    16 views
    0 likes
    Last Post bill2023  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    167 responses
    2,260 views
    0 likes
    Last Post jeronymite  
    Started by warreng86, 11-10-2020, 02:04 PM
    7 responses
    1,362 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Perr0Grande, Today, 08:16 PM
    0 responses
    5 views
    0 likes
    Last Post Perr0Grande  
    Working...
    X