NinjaTrader 8 Auto-Login & Auto-Cleaner by MASCapital UK handles saved login details and selected file cleanup. Configure each tool before using its Desktop shortcut.

What it does

NinjaTrader 8 Auto-Login enters your credentials when the platform starts. It uses a saved text file rather than asking you to type them each time.

NinjaTrader 8 Cleaner removes files from categories you select, including cache, logs and historical data. Choose which folders to clear and which data to retain.

Auto-Login saves manual credential entry at startup, including when you use multiple accounts. Cleaner is intended to reduce accumulated files, particularly when you work with large historical datasets or replay data.

Setup

Auto-Login

  1. Download the NinjaTrader 8 Auto-Login & Cleaner .zip file.
  2. Extract the contents of the downloaded file to your Desktop.
  3. Open the extracted folder on your Desktop.
  4. Locate the credentials.txt file inside.
  5. Enter your NinjaTrader login credentials (Apex, LeeLoo, Bulenox, Tradovate, etc.).
  6. Save credentials.txt.
  7. Move credentials.txt into Documents so the shortcut can find it.
  8. Double-click the NT8 Fast Start shortcut on your Desktop.
  9. The script opens NinjaTrader8.exe and enters the saved credentials.

The shortcut reads the credentials file from Documents, so save your details before moving it there. The examples include Apex, LeeLoo, Bulenox and Tradovate logins.

The preview shows the login sequence:

Cleaner

NinjaTrader 8 Cleaner category selection window

  1. Extract the contents of the downloaded .zip file to your Desktop.
  2. Double-click the NinjaTrader 8 Cleaner shortcut on your Desktop.
  3. Select the categories to clean. The script removes all files in those categories.

Review the folder groups before cleaning. The paths below are reproduced as supplied in the guide.

  • Database Cache Group 1.1 DB Messages [SAFE] clears all files in the messages directory: %USERPROFILE%DocumentsNinjaTrader 8dbmessages 1.2 DB Cache [SAFE] clears all files in the cache directory: %USERPROFILE%DocumentsNinjaTrader 8dbcache
  • Database & Market Data Group 2.2 DB Day [REMOVE IF REQUIRED] deletes historical daily bars. Disable it to retain day data; otherwise NinjaTrader reloads the data after restart. %USERPROFILE%DocumentsNinjaTrader 8dbday 2.3 DB Minute [REMOVE IF REQUIRED] deletes historical minute bars for a refresh after restart: %USERPROFILE%DocumentsNinjaTrader 8dbminute 2.4 DB Replay [WARNING] deletes all Market Replay files. Remove these only if you do not plan to use playback. Replay data can take substantial disk space, but deleting it also removes the files you would use for playback. This category needs a separate decision from cache or log cleanup. %USERPROFILE%DocumentsNinjaTrader 8dbreplay 2.5 DB Snapshot [SAFE] clears snapshot data for faster loading: %USERPROFILE%DocumentsNinjaTrader 8dbsnapshot 2.6 DB Tick [REMOVE IF REQUIRED] removes tick-level data. Enable it to refresh tick data on restart. %USERPROFILE%DocumentsNinjaTrader 8dbtick
  • General Files Group
    • 3.1 Cache [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8dbcache
    • 3.2 Export [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8export
    • 3.3 Import [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8import
    • 3.4 Incoming [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8incoming
    • 3.5 Outgoing [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8outgoing
  • Logs & Temporary Files Group
    • 4.1 Log Files [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8log
    • 4.2 Strategy Analyzer Logs [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8strategylogs
    • 4.3 Temporary Files [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8temp
    • 4.4 Trace Files [SAFE]: %USERPROFILE%DocumentsNinjaTrader 8trace

Database Cache Group options

Database and Market Data Group options

General Files Group options

Logs and Temporary Files Group options

Troubleshooting

If the shortcut will not run, check the Windows tray for an active script. Right-click and close that instance before starting again.

If credentials are not entered, bring the NinjaTrader login window into focus. The script resumes input there.

The clips below show the troubleshooting sequence. Keep the login window selected while the script enters credentials; changing focus to another application can interrupt that input.

FAQ

Where does credentials.txt go?

Move it into Documents after saving your login details.

Does Cleaner delete replay data?

Yes, if DB Replay is selected. Leave that category unselected if you need playback files.

Can I retain historical daily bars?

Yes. Disable DB Day if you want to keep day data rather than clear and reload it.

Resources & support

For help with either utility, email team@mascapital.uk.