Run NinjaTrader Through R|Trader Pro Plug-in Mode on a VPS

Set up R|Trader Pro plug-in mode so NinjaTrader 8 shares one Rithmic session on a Windows VPS, with the right start order, gateway and RDP handling.

dns WindowsVPS Team calendar_today schedule5 min read
Run NinjaTrader Through R|Trader Pro Plug-in Mode on a VPS
tocOn this page 9 sections
  1. What plug-in mode changes
  2. Before you start
  3. Step 1: Log in to R|Trader Pro with plug-ins allowed
  4. Step 2: Connect NinjaTrader through it
  5. Step 3: Keep both running when you disconnect from RDP
  6. Step 4: Restore the start order after a reboot
  7. Health checks from PowerShell
  8. Common failures
  9. FAQ

In plug-in mode, NinjaTrader 8 uses the Rithmic session that R|Trader Pro already has open instead of logging in on its own. On a VPS, log in to R|Trader Pro with Allow Plug-ins ticked before NinjaTrader connects, and keep R|Trader Pro open for as long as NinjaTrader trades. If you get the start order, the gateway and the RDP session handling right, both programs run unattended.

What plug-in mode changes

In a normal setup, NinjaTrader logs in to Rithmic directly. In plug-in mode, R|Trader Pro holds the login and NinjaTrader connects through it. That has two effects:

  • R|Trader Pro becomes a dependency. If it closes, crashes or logs out, NinjaTrader loses its connection too.
  • You get a second view of the account. R|Trader Pro shows orders, positions and P&L straight from Rithmic, so you can check them against what NinjaTrader thinks it holds.

Use plug-in mode when your prop firm or FCM tells you to, or when you want R|Trader Pro open next to NinjaTrader on the same account. Without either reason, a direct connection has fewer moving parts.

Before you start

  • Have your Rithmic user ID, password, and the System name your firm gave you (for example a live or paper-trading system).
  • Log in to R|Trader Pro once and accept the market data and exchange agreements. Other platforms usually can't connect until you do.
  • Choose a VPS location close to your Rithmic gateway. CME products trade from the Chicago area, so a US server with the Chicago Area gateway keeps the round trip short.
  • Finish the base NinjaTrader install first. Our guide to NinjaTrader 8 on a Windows VPS for unattended trading covers it.

Step 1: Log in to R|Trader Pro with plug-ins allowed

  1. Connect to the VPS over RDP as the account that will do the trading.
  2. Start R|Trader Pro and enter your user ID and password.
  3. Set System to the one your firm gave you, and set Gateway to the region closest to your VPS.
  4. Tick Allow Plug-ins, then click Login.

If you logged in without the checkbox ticked, log out and back in with it ticked. The setting only takes effect at login.

Step 2: Connect NinjaTrader through it

  1. In the NinjaTrader Control Center, open Connections > Configure.
  2. Add the Rithmic connection type your firm specifies. Enter the same user ID and password, and choose the same System and gateway that R|Trader Pro uses.
  3. Leave Connect on startup unticked for now. Click OK, then connect from the Connections menu.
  4. Check that the connection indicator in the Control Center turns green and that your account shows up in the Accounts tab.

If the System or gateway differs between the two programs, the most common result is a failed login. Check those fields before anything else.

Step 3: Keep both running when you disconnect from RDP

When you're done, close the RDP window to disconnect. Don't use Sign out, because that closes both programs. Then make sure Windows doesn't end the disconnected session later. In gpedit.msc, go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits. Set Set time limit for disconnected sessions to Enabled with Never, then apply it:

gpupdate /force
powercfg /setactive SCHEME_MIN

The second command switches the server to the High performance power plan, so the CPU stays at full speed during busy market periods.

Step 4: Restore the start order after a reboot

R|Trader Pro has an interactive login screen, so you can't fully automate it. What you can do is have it open automatically when you sign in, so the login screen is waiting for you. Copy the path from the Target field of your R|Trader Pro shortcut, then run this in PowerShell:

$rtp = 'C:\Path\From\Your\Shortcut\RTraderPro.exe'
$action  = New-ScheduledTaskAction -Execute $rtp
$trigger = New-ScheduledTaskTrigger -AtLogOn -User "$env:USERDOMAIN\$env:USERNAME"
Register-ScheduledTask -TaskName 'RTraderPro-AtLogon' -Action $action -Trigger $trigger -RunLevel Limited

After a reboot: sign in over RDP, log in to R|Trader Pro with Allow Plug-ins ticked, then start NinjaTrader and connect. Don't tick Connect on startup in NinjaTrader unless R|Trader Pro is always logged in first. Otherwise NinjaTrader tries to connect before the session exists and fails. For more on launching programs at sign-in, see launching apps automatically when admins sign in via RDP. To keep restarts out of the trading session, schedule Windows Update reboots outside trading hours.

Health checks from PowerShell

Check that both programs are running and how much memory they use:

Get-Process | Where-Object { $_.ProcessName -match 'Trader|Ninja' } |
  Select-Object ProcessName, Id, StartTime, @{n='RAM_MB';e={[int]($_.WorkingSet64/1MB)}}

List NinjaTrader's open network connections:

Get-NetTCPConnection -State Established -OwningProcess (Get-Process NinjaTrader).Id

Check the clock and force a time sync, because a drifting clock makes fills and log entries hard to match up:

w32tm /query /status
w32tm /resync

Common failures

  • NinjaTrader can't log in: R|Trader Pro isn't logged in, Allow Plug-ins wasn't ticked at login, or the System or gateway doesn't match.
  • NinjaTrader drops when R|Trader Pro closes: this is how plug-in mode works. Find out why R|Trader Pro closed: a reboot, a sign-out, or a crash. Look in Event Viewer under Windows Logs > Application.
  • The VPS session ends unexpectedly: someone logged in with the same Rithmic user ID on another machine, such as a home PC. Use one machine per login.

For VPS plans sized and located for this kind of setup, see our Windows VPS for NinjaTrader and futures trading page.

FAQ

Does NinjaTrader need plug-in mode to use Rithmic?

No. NinjaTrader can connect to Rithmic directly. Plug-in mode is for when your firm requires it or you want R|Trader Pro running on the same account.

Can R|Trader Pro run as a Windows service?

No. It's a desktop program with an interactive login. Run it in an RDP session and disconnect that session instead of signing out.

Which gateway should I pick?

Pick the gateway closest to both the exchange and your VPS. For CME futures on a US server, that's usually Chicago Area.

Run this on your own Windows VPS

Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.

Buy a Windows VPS →

dns

Written by the WindowsVPS Team

We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.

About WindowsVPS Windows VPS guides All articles

Ready to deploy your server?

Windows or Linux VPS — up and running in under 60 seconds.