Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Brandon H.NinjaTrader Customer Service

    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 AaronKoRn, Yesterday, 09:49 PM
        0 responses
        11 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        10 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        11 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,981 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Yesterday, 06:48 PM
        0 responses
        9 views
        0 likes
        Last Post rbeckmann05  
        Working...
        X