Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay vs Historical Data?

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

    Market Replay vs Historical Data?

    I've been using Market Replay data to test strategies for some time. But I'm wondering what is the is difference between Market Replay data and Historical Data. In what situations would I want to use Historical Data over Market Replay data, and vice versa?

    #2
    Hello gbourque,

    Thank you very much for your post.

    Market Replay data is provided by NinjaTrader directly, and is available for the most commonly-traded Futures instruments only. This data is available going back 90 days.

    This data is recorded live on our servers and includes Level II data. By replaying this data, you replay the market movements the instrument experienced as accurately as possible on the platform, as you replay a full recording

    When using historical data, the availability of data would rely on your provider. This would provide access to additional instruments, such as Forex or Stock instruments, but only includes Level I data.

    Further information about the differences between both data types may also be found in our HelpGuide below:



    Please don't hesitate to let me know, should you have any further questions!

    Comment


      #3
      Hi, I have a question about market replay data. I have found that at the end of a market session, replaying the strategy using the market replay data that I download returns a different result. More often, the result is profit in market replay and loss in real time (the previous, same market session). Since market replay data contains level II data, I'm not sure why this happens. Is anyone able to please shed light on this? I only run one strategy at a time (real time and market replay).

      Comment


        #4
        Hello Keenbean23,

        Thank you for your post.

        Market Replay is a recording of live data as it is seen. While it is a complete recording of data in exact sequence, there could be some slight differences in testing when compared to live. Depending on how the strategy logic is sensitive to these differences, we could see different results.
        • There is no order submission latency in Playback, while orders will need time to travel to the broker and exchange in a live scenario. This can result in slippage, which can change the PnL of trades, and if that is relevant to the strategy logic, it could control the number of trades taken.
        • The origin of your regular realtime data feed may have slight differences than Playback. Market Replay data on our servers are recorded from CQG data.
        Another important topic to consider is how much data was loaded, when exactly you enabled the strategy and the settings used. For example, if you connect to Playback and enable the strategy, but you have not enabled it at the same time the strategy was enabled live, it would not be an apples to apples test because the data on the chart before we hit the Enable tick box would be processed as historical data instead of realtime.

        Below is a link to a forum post that demonstrates how to find what is causing differences between real-time and playback.​

        Citizens of the NinjaTrader Community, A common question we hear from clients is 'why are results from backtest different from real-time or from market replay?'. Live orders are filled on an exchange with a trading partner on an agreed upon price based on market dynamics. Backtest orders are not using these market dynamics.



        Help Guide: Discrepancies - Realtime vs Backtest - https://ninjatrader.com/support/help...ime_vs_bac.htm

        Please let me know if you have any further questions.

        Comment


          #5
          Is there a way to tell NinjaTrader to update the chart in less than 1-second intervals? I assume that the timestamps would allow to do that.

          Thank you.

          Comment


            #6
            Hello TraderJA,

            Unfortunately, there is no setting to control this and it is hard coded in the core application.
            From my understanding this was necessary to keep the application from freezing during high playback speeds.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hello marcus2300,

              Just fyi, calling ForceRefresh() or ChartControl.InvalidateVisual() (which is not supported) does not cause NinjaScripts to process data or orders any faster than 1 second intervals.

              This only causes the chart to re-render which will cause a performance impact.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by marcus2300

                Can you tell me how a faster refresh can give you a better entry/exit? Prices jump randomly up and down between the high and the low. On top of that you have a lag between placing a trade and the fill.

                I did not talk about better entries or exits.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                65 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                41 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                23 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                26 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                52 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X