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 cre8able, Yesterday, 01:16 PM
        3 responses
        11 views
        0 likes
        Last Post cre8able  
        Started by ChartTourist, Today, 08:22 AM
        0 responses
        5 views
        0 likes
        Last Post ChartTourist  
        Started by LiamTwine, Today, 08:10 AM
        0 responses
        2 views
        0 likes
        Last Post LiamTwine  
        Started by Balage0922, Today, 07:38 AM
        0 responses
        5 views
        0 likes
        Last Post Balage0922  
        Started by JoMoon2024, Today, 06:56 AM
        0 responses
        6 views
        0 likes
        Last Post JoMoon2024  
        Working...
        X