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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        41 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X