Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Replay runs extremely slow

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

    Replay runs extremely slow

    NQ, already set to MAX or x1000, there is no network or computation power limit for me.
    it took less than an hour to finish one months data last weekend but only completed 2 days in the last 20 hours. is there any suggestion to boost it up? does it relate to design of strategy, calculation complexity of indicators? or simply, is the Replay data server working properly? quite frustrated, pls help

    #2
    Hello timko,

    Thanks for posting to the forums.

    Setting Calculate.OnBarClose would be the only setting that would be used to throttle performance in Playback unless the strategy offers some of its own settings to control its performance. Historical Fill Processing will not matter in this situation because the order fills are being simulated from the streamed "realtime" data that comes from the Playback Connection.

    You could enable the strategy from the Control Center to test in a leaner environment which could yield faster results since the only thing that would be processed is the strategy. Anything else would depend upon how efficient the strategy code is written and how complex it is.

    Strategies are also run against a single instrument thread when in realtime mode, so we cannot expect the same multi-threading benefits as seen from Historical Processing (from a thread pool.)

    I've included some Best Practice tips for NinjaScripts which could help to speed up the script further.

    Best Practices (Performance Tips) - https://ninjatrader.com/support/help...tm#Performance

    Using the Strategy Analyzer to backtest will be significantly faster than using the Playback Connection and can better utilize multiple cores of your CPU. This will come at a cost for fill accuracy considering the differences between Realimte simulations and Historical simulations.

    Discrepancies between Realtime and backtest - https://ninjatrader.com/support/help...ime_vs_bac.htm

    Help guide information is publicly available.

    Please let me know if I may be of any further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    88 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    68 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X