Ninja Trader Conflict with One drive

Wayne Booth 0 Reputation points
2026-11-18T16:54:01.3766667+00:00

i am using ninja trader which has a conflict with one drive backing up the documents folder

Microsoft 365 and Office | OneDrive | For home | Windows

2 answers

Sort by: Most helpful
  1. EmilyS726 281.7K Reputation points Independent Advisor
    2026-11-18T17:36:02.06+00:00

    Is it because Ninja wants the folder to be directly in your user folder, instead of nested in OneDrive folder?

    If so, do this.

    Go to File explorer, right click on your Documents folder and choose "always keep on device". Give it time and wait for the entire folder's status icon to turn solid green.

    Then, right click on the OneDrive cloud icon on the lower right on your taskbar to go to Settings > Sync and backup tab > Manage backup, turn off the documents folder.

    Restart the computer after that. That should return the Document folder back to local path.

    Moving forward, if you need files backed up/synced to OneDrive from Documents, you need to manually save them to the Documents folder that lives inside OneDrive folder. You now have two separate documents folders, one lives in C:\users\your username folder, another lives in C:\users\your username\OneDrive folder. They don't talk to each other. The first one is local. The second one is in the cloud.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. AI answer

    2026-11-18T16:54:50.75+00:00

    Stop OneDrive backup for Documents and choose Keep files only on my PC so NinjaTrader can use a local Documents folder without OneDrive controlling its files.

    Safely move Documents back to the PC

    1. Exit NinjaTrader completely.
      This prevents open files from blocking the move; OneDrive cannot move files that are currently open.^1^
    2. Ensure the Documents files are downloaded first.
      • Open File Explorer → OneDrive – Personal → Documents.
      • If any items show a cloud icon, right-click the Documents folder and select Always keep on this device.
      • Wait until downloading completes before continuing. Microsoft requires cloud-only files to be downloaded before they can be moved back to the PC.^1^
    3. Turn off Documents folder backup.
      • Select the OneDrive cloud icon in the Windows notification area.
      • Select Help & Settings → Settings.
      • Open Sync and backup → Manage backup.
      • Turn off Documents.
      • When prompted, select Keep files only on my PC. Do not choose “only in OneDrive,” because that removes the local copies.^1^
    4. Verify the local location.
      • Open File Explorer and enter %USERPROFILE%\Documents in the address bar.
      • Confirm the NinjaTrader files expected in Documents are present locally.
      • The location should resolve under C:\Users\<your-name>\Documents, not under C:\Users\<your-name>\OneDrive\Documents.
    5. Start NinjaTrader and test the operation that was failing, such as importing the NinjaScript add-on. NinjaTrader specifically documents OneDrive interference with its Documents-path file access, including an “Access to the path is denied” error during add-on import.^2^

    Do not delete the old OneDrive copy until NinjaTrader starts successfully and its workspaces, templates, add-ons, and other required data are present.

    If Documents cannot be moved

    • Close every application using files in Documents and retry.
    • If OneDrive reports “Some files couldn’t be moved,” return to the OneDrive Documents folder, select Always keep on this device, wait for all downloads to finish, and then stop backup again.^1^
    • If you want to stop OneDrive entirely rather than only exclude Documents, use OneDrive Settings → Account → Unlink this PC. Unlinking is unnecessary when the goal is only to keep NinjaTrader’s Documents data local.^3^

    You can continue using OneDrive for Desktop, Pictures, or manually selected folders while leaving Documents local.


    References

    1. Back up your folders with OneDrive | Microsoft Support
    2. Unhandled exception: Access to the path '' is denied - OneDrive Error
    3. How to cancel or stop sync in OneDrive | Microsoft Support
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.