Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Purging older trade data from database

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

    Purging older trade data from database

    Hi,

    I noticed when I place orders, particularly the first time, NT is starting to lag a few seconds. I think this may be related to the trade database (just over 200mb now), which, especially if you scalp 50-100 times a day, grows. I do not want to delete it. That's a bit aggressive. I need the trade history. I would, however, like to remove, say, last years data. Is there a procedure to do that? (other than me opening the database and running my own query against it). I think, for performance reasons, there should be a feature for this, if there is not one.

    Thanks.

    #2
    Hello pjsmith,

    Unfortunately there is no procedure to remove trade history data partially. When you reset the database at Control Center-->Tools-->Database Management, it will remove all trade history.

    I have submitted this as a feature request to the Development Team. I will follow up with an internal tracking number for your reference as soon as it is created.

    Thanks in advance for your patience.

    You could rename the database file while NinjaTrader is shut down. It will then create a new database automatically when you start NinjaTrader. If you need to access trade history from the old database, you would rename it back to "NinjaTrader" and rename the new database different than "NinjaTrader" (while NinjaTrader is shut down). The .sdf file named "NinjaTrader" in the Documents-->NinjaTrader 8-->db folder is the database that NinjaTrader will use.

    Comment


      #3
      Hello pjsmith,

      My apologies, my previous post is incorrect. You can remove individual executions in NinjaTrader 8.

      Please set Display to Executions in the Trade Performance window. Right click an execution and select 'Remove Execution'.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      175 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      331 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      253 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      356 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      183 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X