How to relocate NinjaTrader files to RAM disk

Started by Todd


How to relocate NinjaTrader files to RAM disk   28 December 2022, 14:22


I cannot get this to work. I've tried different options and variations... Still nada.
Last config: V: 32000 MB, NTFS, at Startup.
Firefox and Chrome temp files seem to be on the RAM disk successfully, but not NinjaTrader.

I'm trying to store the NinjaTrader8 Temp,Trace, Log, DB, Cache, Day-data, Min-data and Tick-data on the RAM drive, so that my system doesn't run slow, freeze up or lock up completely while I'm in a trade and loose it all...

Until now I was manually deleting these files each day and resetting the database, but that was huge pain in the "a". I thought that RAM Disk software might be a good solution.

I use the Command Prompt as Administrator.
RAM Disk folder V:\NT8

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\tmp" "V:\NT8"
Gives an error.

Reversed as they say:
mklink /d "V:\NT8" "C:\Users\Owner\Documents\NinjaTrader 8\tmp"
Gives the same error.

Tried adding this:
mklink /d "%APPDATA%\C:\Users\Owner\Documents\NinjaTrader 8\tmp" "V:\NT8"
"File Name, Directory, Volume Label or Syntax Not Correct."

Now reversed:
mklink /d "%APPDATA%\V:\NT8" "C:\Users\Owner\Documents\NinjaTrader 8\tmp
Same "File Name, Directory, Volume Label or Syntax Not Correct."

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\trace" "V:\NT8"
Gives an error.

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\log" "VV:\NT8"
Gives an error.

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\db\cache" "V:\NT8"
Gives an error.

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\db\cot" "V:\NT8"
Gives an error.

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\db\day" "V:\NT8"
Gives an error.

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\db\minute" "V:\NT8"
Gives an error.

mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\db\tick" "V:\NT8"
Gives an error.

Can someone help? Thank you.
SoftPerfect Support forum - Ann avatar image

Re: How to relocate NinjaTrader files to RAM disk   28 December 2022, 14:39

The correct way to use mklink is:
mklink /d "C:\Users\Owner\Documents\NinjaTrader 8\tmp" "V:\NT8"

Most importantly, V:\NT8 must exist, while C:\Users\Owner\Documents\NinjaTrader 8\tmp must NOT exist.

In your case you are getting an error probably because the path C:\Users\Owner\Documents\NinjaTrader 8\tmp already exists. So you will need to delete the tmp folder prior to making a link there.

It's also a good idea NOT to redirect various folders like log, cache, trace, etc all into one folder. Doing so is likely to result in a file conflict. Instead, create sub-folders like V:\NT8\log, V:\NT8\cache, V:\NT8\trace, and so on. Again, these folders must exist, so it's best to set them to be created when the RAM disk is created.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.




A brief and informative title for your message, approximately 4–8 words:


Spam prevention: please enter the following code in the input field below.

 **    **  **    **        **        **        ** 
 **   **    **  **         **        **        ** 
 **  **      ****          **        **        ** 
 *****        **           **        **        ** 
 **  **       **     **    **  **    **  **    ** 
 **   **      **     **    **  **    **  **    ** 
 **    **     **      ******    ******    ******