Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay hangs after playing 4 days of data

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

    Market Replay hangs after playing 4 days of data

    Hello there,

    I'm having a tough time with Market Replay. Using my strategy it will only play 4 days before it becomes unresponsive.:
    • Crosshairs on the chart disappears, no mouse pointer there either.
    • Market Replay control remains responsive.
    • Rewinding replay data displays "Loading" that is never-ending
    I've tested wiht SampleMAStrategy, it doesn't hang.

    Is this familiar? Known cause? It's in my code for sure but what?

    Many Thanks, Caesar.

    #2
    Hello Caesar,

    Thanks for your post.

    What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.0.?.?)

    Does the strategy have secondary added data series by calling AddDataSeries()? If so, do you have market replay data downloaded for that added data series?​

    To find the exact line(s) of code in your strategy that cause the behavior to occur you will need to reduce your code and add debugging prints.

    You could comment out or remove a section of code and retest to see if the behavior persists. If at any point you comment out/remove a section of code and the behavior stops, that section of code is likely causing the behavior. You could add debugging prints for that section of code to narrow in on the offending code.

    To create a copy of your script to modify without affecting the original strategy code, open a New > NinjaScript Editor, select your script, right-click in the Editor, select 'Save as', name the script, and click OK.

    Below is a link to a forum post that demonstrates how to use prints to understand behavior.
    https://ninjatrader.com/support/foru...121#post791121
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi Brandon,

      It is: 8.1.1.3 64-bit

      Many Thanks!

      Comment


        #4
        It's silly me ... the "hangs" turns out to be weekend days ...

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X