Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay not working

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

    Market Replay not working

    My market replay has stopped working. Even running strategies and settings that has previously worked. I have checked the trace files (which I am attaching) and it doesn't always give the same error.

    Most of the time I get a windows error that says the "Ninjatrader application has stopped working" (see attached image). When I check the trace files then it has the following:
    2012-04-23 23:30:57:426 in OnUnhandledApplicationException
    2012-04-23 23:30:57:428 *************** unhandled exception trapped ***************
    2012-04-23 23:30:57:428 Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    2012-04-23 23:30:57:428 System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at System.Data.SqlServerCe.NativeMethods.CoTaskMemFre e(IntPtr ptr)
    at System.Data.SqlServerCe.Accessor.Dispose()
    at System.Data.SqlServerCe.Accessor.Finalize()

    Then other times it simply stops playing in the middle of the run... clicking play does not make it start to progress again... it requires me shutting the app down and restarting it.

    When this happens the traces shows an error like this:
    2012-04-28 03:47:45:390 in OnUnhandledThreadException
    2012-04-28 03:47:45:390 *************** unhandled exception trapped ***************
    2012-04-28 03:47:45:390 Object reference not set to an instance of an object.
    2012-04-28 03:47:45:390 at NinjaTrader.Cbi.Position.Close(String signalName)
    at NinjaTrader.Strategy.StrategyBase.EventuallyExitOn Close()
    at NinjaTrader.Cbi.Connection.OnTimerTick(Object sender, EventArgs e)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndPr oc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2012-04-28 08:17:50:780 Connection to NinjaTrader data server lost: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 size, SocketFlags socketFlags)
    at NinjaTrader.Server.Client.Receive()
    at NinjaTrader.Server.Client.Loop()
    2012-04-28 08:17:50:780 ERROR: Connection to NinjaTrader historical market data server lost: An existing connection was forcibly closed by the remote host
    2012-04-28 08:18:00:795 Server.Client.Loop0-1: 64.202.118.179/31654
    2012-04-28 08:18:24:460 Server.Client.Close

    I do not have anything complicated in the strategy... and nothing that wasn't working before. I started having this happen interittently about 2 or 3 weeks ago. It has gradually become more and more frequent until now none of my maret replays complete. I was running NT 7.0.1000.9, so last week I upgraded to 7.0.1000.10 and no change. I also ran windows update and updated all the SQL Server updates. I have rebooted... nothing seems to work.

    Attached are my trace logs zipped up (to get below the 1MB attachment restriction)

    Also... I have tried closing everything else in windows. I have plenty of ram and processing power (2.67Ghz Core2 Quad CPU, 8GB RAM, Windows 7)

    Any suggestions would be greatly appreciated.
    Attached Files

    #2
    Hello d1g1talfr3ak,

    Thank you for your post.

    Does this occur only when running a strategy in Market Replay? If you remove all indicators and strategies, are you able to completely run through the Replay?

    Also, please send us your Market Replay files to Support AT NinjaTrader DOT com so we can test them. You can find these files at C:\Users\(user)\Documents\NinjaTrader 7\db\data
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      Possible cause found

      Thanks to a suggestion by user "Sledge", I booted off a MemTest disk and ran the memtest and it found memory errors. I am going to look into replacing the memory and see if the issue goes away. Thanks to everyone for their feedback.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by inanazsocial, Today, 01:15 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by rocketman7, Today, 02:12 AM
      0 responses
      10 views
      0 likes
      Last Post rocketman7  
      Started by dustydbayer, Today, 01:59 AM
      0 responses
      2 views
      0 likes
      Last Post dustydbayer  
      Started by trilliantrader, 04-18-2024, 08:16 AM
      5 responses
      23 views
      0 likes
      Last Post trilliantrader  
      Started by Davidtowleii, Today, 12:15 AM
      0 responses
      3 views
      0 likes
      Last Post Davidtowleii  
      Working...
      X