(All the combine accounts have very similar names so it gets confusing to quickly select the account I want to edit with the add on.)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Clean Up old account names in ninja
Collapse
X
-
Clean Up old account names in ninja
I've installed a new add on which requires me to associate an account with it. I only have two live accounts now and a sim. But Ninja 8 is showing me all the past accounts I've had (many old combine accounts). How can I erase all those old accounts from Ninja except for the current ones?
(All the combine accounts have very similar names so it gets confusing to quickly select the account I want to edit with the add on.)Tags: None
-
You'll need to rename your database file to remove those accounts:- Shutdown NinjaTrader and Go to the Start Menu
- Select My Documents--> NinjaTrader 8--> db--> "NinjaTrader.sdf" file (may only say 'NinjaTrader' depending on your Windows File Explorer settings)
- Right click on NinjaTrader.sdf and select "Rename" *Name it "OLDNinjaTrader.sdf"
- Then restart the software and NinjaTrader will create a fresh database file to use
- Unfortunately the following items stored in the old database will be lost - Trading Hours templates, Instrument Lists / Custom Instruments, historical trade execution data, saved Strategy Analyzer backtest results
-
Hi,
I had a similar need to remove specific outdated accounts, but I wanted to keep other data. So deleting the entire database wasn't an option.
In case someone has the same issue, here's how I got around this issue:- Make sure NT is not running.
- Make a backup of your original NinjaTrader.sdf" file (...\Documents\NinjaTrader 8\db) // this allows you to come back to the previous stage if something's going wrong
- Install any Database management tool which supports SQLCe, in order to interact with .sdf files (I used the free tool: DatabaseNet4 which runs on windows)
- Open your chosen tool and connect to the NinjaTrader.sdf file database.
- Now you can modify every data entry stored within this db...
Anyway, you should have at least some basic DB knowledge or read up on it before you make any modification.
A corrupt DB due to wrong modifications may cause NT to crash or behave in an undesired way.
So in my case, I've deleted the concerned account from the "Accounts"-Table and all related data to it (Executions, Strategy2...).
Last edited by TickBull7000; 10-20-2022, 03:41 PM.
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mestor, Today, 03:15 AM
|
0 responses
1 view
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
11 responses
305 views
0 likes
|
Last Post
by z.franck
Today, 02:29 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
||
Started by bukowa, 11-09-2023, 06:07 PM
|
20 responses
407 views
0 likes
|
Last Post
by Adfra
Today, 01:36 AM
|
||
Started by yertle, Yesterday, 05:49 PM
|
2 responses
11 views
0 likes
|
Last Post
by yertle
Today, 12:12 AM
|
Comment