Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Running Playback Causes DB to grow in size
Collapse
X
-
Running Playback Causes DB to grow in size
I have been testing trading strategies using playback and have found that it seems to increase the size of the database after doing so. My understanding is that the playback orders/executions are discarded when you restart playback since they disappear from the orders and executions window, and can no longer be found in the trading performance reports. It can grow quite large if I run playback over a long enough period of time.
Why is the database growing?Tags: None
-
I am playing back data for which I have collected using Market replay data. I run the playback on minute charts from June 17th through September 10, so its a sizeable amount of time. I run different tests, and the more orders it takes, the larger the database seems to get.
Comment
-
I have playback data for every day that the market was open between June 17th and September 10th, which is why I picked those dates. I cannot provide a script at this time that reproduces the issue.
Is this information from from NinjaScript.Log stored in the database?
Comment
-
Hello ntbone,
Thank you for your reply.
I've just done a test running the SampleMACrossOver strategy that comes built into NinjaTrader. I ran it on this past week's worth of data and set the fast to 10 and the slow to 15 so it would take plenty of trades. I also shut down NinjaTrader and renamed my database temporarily as NinjaTrader will generate a new, empty database if it does not find one with the exact name NinjaTrader.sdf.
So, starting with a fresh database, the size started at 7232 kb. I then ran the strategy in the Playback connection over this whole week on minute data. I then checked the size of the database and found it the same as before, 7232kb. I disconnected from the Playback connection and checked again — still nothing. Finally, I shut down the platform and checked a final time, and the database size was still 7232kb.
If you try doing the same as I did, do you see the database size grow?
Thanks in advance; I look forward to assisting you further.
Comment
-
Hello ntbone,
Thank you for your reply.
No, the only place log information is stored is in the log files in the folder of the same name.
Don't forget to delete your database that you used for testing and rename your original database back to NinjaTrader.sdf when you are done testing it out.
Thanks in advance; I look forward to assisting you further.
Comment
-
Hello ntbone,
Thank you for your reply.
Do you mean you're using an addon to place the orders, or are you using the Automated Trading Interface:
I'd like to try to reproduce what you're experiencing as closely as possible - an example of your workflow would be helpful.
Thanks in advance; I look forward to assisting you further.
Comment
-
Hello ntbone,
Thank you for your reply.
It sounds like you're using the unmanaged approach; would you be able to provide a copy of one of the strategies you've seen this with so I may test on my end? If so, please email platformsupport[at]ninjatrader[dot]com. Please include 2276799 ATTN Kate W. in the subject line and a link to this post in the body. Attach the strategy to your email.
Thanks in advance; I look forward to assisting you further.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
86 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
67 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment