Hi all,
I’m a long-time NinjaScript developer (6+ years) and I’m running into a strange issue on my usual Windows 10 PC after coming back from a break.
Main issue:
Whenever I try to import/install any NinjaScript (indicator / drawing tool / addon), NinjaTrader throws an error like:
“Unhandled exception: The process cannot access the file ‘C:\Users\Alejandro\Documents\NinjaTrader 8\tmp’ because it is being used by another process.”
It can also happen on startup (tmp-related error).
Odd behavior / secondary issue:
Even when the .cs/.dll files end up inside:
C:\Users\Alejandro\Documents\NinjaTrader 8\bin\Custom
the scripts do NOT appear where they should:
- Indicator not listed in Indicators
- Drawing tool not listed in DrawingTools
- AddOn not listed under Tools
So it looks like files are copied but scripts are not being compiled/loaded/registered.
What I tried:
- Full uninstall + clean reinstall (multiple NT8 versions), registry cleanup, same behavior
- Antivirus exclusions for
Documents\NinjaTrader 8folder - OneDrive / Google Drive sync disabled
- Controlled Folder Access (Ransomware protection) is OFF
Key observation:
I can import indicators/drawing tools successfully only if I run Process Monitor (Procmon) as Administrator while importing. (and the imported indicators/drawing tools wont appear in the UI)
If Procmon is not running as Admin, the tmp error happens repeatedly.
Procmon capture (Admin) shows NinjaTrader.exe hitting a CreateFile on ...\tmp\XXXXXX with Result = SHARING VIOLATION (trying to open/delete/synchronize the tmp entry).
Questions:
- Any known Windows 10 security/indexing components that can intermittently lock NT8 tmp files under Documents?
- What’s the recommended way to diagnose why scripts end up in
bin\Custombut don’t show in the UI (compilation/load failure)? - Any NT8 settings/logs/trace files I should check for the underlying exception stack?
Happy to provide latest log/trace files if needed.
Plataform: Ninjatrader 8 8.1.6.2 64-bit
Thanks!
Ale