Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Frozen data feeds, end of session breaks, historical entries

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

    Frozen data feeds, end of session breaks, historical entries

    Randomly charts will freeze/lose their data feed and will not reconnect unless I disconnect/reconnect to continuum or restart the software. This happens on multiple futures but RTY is a major culprit (it happens almost immediately). I have tried different time frames, no indicators, new charts, etc and it still happens.


    End of day breaks show up fine historically and strategies act properly on them but in real time it doesn't work. Sure I could hard code the exit to avoid liquidation but have to make sure I don't forget about a holiday. I have a custom session schedule Sun 6pm EST - Monday 4:45PM EST through friday.


    Is there a way to disable historical entries when enabling a strategy? If I had to restart/reconnect any time during the day when I enable the strategy again it will act like it is in an open position if it would have been historically, which makes it not take any new entry that it could have until the historical plays itself out.


    I have tried uninstalling NT8 and installing the latest version but same issues. Any ideas to resolve would be appreciated. I like NT8 and spent quite a bit of time programming on it but these issues make it useless to me. Thanks.

    #2
    Hello Vancea,

    Thanks for the post.

    To address the chart halting, please take the following steps to clear your cache:
    1. Shut down NinjaTrader.
    2. Open the Documents > NinjaTrader 8 > db folder.
    3. Delete the sub-folder named 'cache'.
    4. Restart NinjaTrader and test.


    To make a strategy ignore the historical data, add this at the beginning of OnBarUpdate:

    Code:
    if(State == State.Histoircal) 
    {
        return;
    }
    Please let me know if you still see charts freezing after this.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the quick reply yesterday Chris.


      I cleared the cache as instructed and have let the software run over night. ES and CL have had proper data and no issues. RTY still pretty much immediately quits updating after reconnect, any other ideas to try for that?


      EOD break also worked properly yesterday, do not know if related to the cache clear but i'll take it and hope it continues moving forward.


      The code snippet you provided also did the trick for removing historical entries. Thanks!

      Comment


        #4
        Hello Vancea,

        Thanks for the reply.

        Please check the log tab of your Control Center when you pull the RTY, are there any errors being reported there?

        I look forward to your reply.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          I suppose logs would be a good place to look =D


          It does say RTY is not enabled for real-time quotes and trading. Is that a demo account limitation or in general from ninjatrader?


          Thanks.

          Comment


            #6
            Hello Vancea,

            Yes, that is correct. The RTY is not enabled on a demo NinjaTrader Continuum connection. It would be available on a live connection.

            Please let me know if I can assist further.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Aviram Y, Today, 05:29 AM
            0 responses
            1 view
            0 likes
            Last Post Aviram Y  
            Started by quantismo, 04-17-2024, 05:13 PM
            3 responses
            25 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            7 responses
            34 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cls71, Today, 04:45 AM
            0 responses
            5 views
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            216 views
            1 like
            Last Post PaulMohn  
            Working...
            X