
Short answer. Not always. A strategy only trades while NinjaTrader is running and connected, so you need a machine that stays on through every session the bot trades. A well-set-up home PC can do that for a New York session bot you can watch. For overnight Asia or London sessions, or a shaky connection, a Windows VPS, usually in Chicago near CME, is the simpler choice.
Why the machine matters at all
A NinjaScript strategy runs inside the NinjaTrader desktop platform on a Windows computer. It isn't hosted by NinjaTrader or by the strategy's developer. If that computer turns off, sleeps, restarts or loses its connection, the strategy stops watching the market. So the question isn't whether you need a VPS in general. It's whether your machine will be on and connected for every minute the strategy is supposed to trade.
What happens to your orders when the PC sleeps or disconnects
This is the part most people get wrong, so it's worth being exact. There are two kinds of protection on an automated trade, and they behave differently when your computer goes away.
| What | Where it lives | If your PC goes offline |
|---|---|---|
| Stop and limit orders already accepted | On the trading server side, once accepted | Usually keep working and can still fill |
| Simulated orders, such as NinjaTrader's simulated stops | On your PC, until triggered | Stop working; nothing is sent when price gets there |
| Strategy-managed exits: time exits, trailing logic, daily loss limit, exit on session close | In the strategy's code, on your PC | Don't happen |
| New entries | In the strategy's code, on your PC | Don't happen |
So a bot that places a real stop order with every entry has a floor under an open trade even if your PC dies. But the rest of its risk rules, such as a daily exit or "flat by the close", only work while the platform runs. That's the real reason uptime matters.
Disconnects and the connection loss setting
Every NinjaScript strategy has a Connection loss handling property. NinjaTrader's help guide lists three options:
- Recalculate (the default): if the strategy was stopped by the disconnect, it recalculates its position when the connection comes back. If the connection returns before the strategy was stopped, it carries on.
- Keep running: the strategy keeps running and resumes as if no disconnect occurred.
- Stop strategy: the strategy stops if it's disconnected longer than the Disconnect delay seconds setting, and nothing happens when the connection returns.
The help guide also says the strategy is stopped if the data feed is down longer than the disconnect delay, or if it tries to send an order while the order connection is down. In practice: brief blips are handled, long outages stop the strategy, and you need to check what state it's in when you're back. The Log tab in the Control Center records every disconnect and stop.
When a bot needs the machine on
Session matters more than anything else in this decision. CME Globex trades gold and US index futures from Sunday evening to Friday afternoon, with a one-hour break each weekday from 5 PM ET. A bot only needs the machine during its own window, but some windows land while you sleep.
- New York session bots trade during the US morning. Many people are at a desk then and can watch the platform, so a home PC is often fine.
- London session bots start in the early hours, New York time. If you're in the US, that's while you're asleep.
- Asia session bots run through the US evening and night. The machine has to stay on for hours with nobody watching.
Our futures session times guide has the reference points in ET, CT and PT, and the futures market hours tool shows whether Globex is open right now. FuturesBotLab bots are grouped by session on the bots page. For example, Dawn Range (MGC · GC) trades the early London session and Gold Dipper (MGC · GC) trades the Asia session, so both run while US-based users are usually asleep.
Running a bot on a home PC
A home PC can be perfectly reliable if you set it up for the job. Most outages come from Windows doing something helpful at the wrong time.
- Power settings. In Windows Settings, under System and Power, set sleep and hibernate to Never when plugged in. Turning the screen off is fine.
- Windows Update. Set active hours to cover your trading sessions, and check for pending restarts before each week starts. An update restart in the middle of a session is the classic cause of "my bot just stopped".
- Startup. NinjaTrader doesn't start your strategies by itself after a reboot. If the PC restarts, you have to open the platform, connect and enable the strategies again, so a reboot during a session always needs you.
- Internet. Use a wired connection rather than Wi-Fi where you can. A phone hotspot or second internet line as a backup helps, but only if you're there to switch.
- Power. A small battery backup (UPS) rides through short power cuts and gives the PC time to keep running or shut down cleanly.
- Clock. Let Windows set the time automatically. Strategies with time windows rely on the PC clock being right.
- Don't share the machine. Games, big downloads and heavy apps compete for memory and bandwidth while the bot runs.
Running a bot on a VPS
A VPS (virtual private server) is a Windows computer in a data center that you control through Remote Desktop. It stays on, it has redundant power and internet, and you can reach it from any device, including a Mac, a tablet or a phone.
Location and latency
CME Group's matching engines are in the Chicago area, so most trading VPS providers offer Chicago servers. Being close cuts the time for orders and data to travel, measured in milliseconds. For a bot that trades a few times a session with stop and limit orders, the difference between a Chicago server and a good home connection is small. The real gain from a VPS is uptime, not speed. Be wary of anyone who presents latency as the reason a bot will do better.
Sizing
NinjaTrader's published requirements (checked October 28, 2026) recommend a quad-core 64-bit processor, 8 GB of RAM and a solid-state drive, on Windows 11 or Windows Server 2016 or later. As a rough guide for a VPS:
- One to three charts with one strategy each: a plan with around 4 GB to 8 GB of RAM and two to four CPU cores is a typical starting point.
- More charts, tick-based charts or market depth: step up in RAM first. NinjaTrader slows down when memory runs short.
- Keep the VPS for the strategies. Avoid loading heavy indicators you don't need there, and do your analysis on your own computer.
Cost
Public price lists from VPS providers aimed at NinjaTrader users (checked October 28, 2026) start at roughly $30 a month for small plans and run to $100 a month or more for larger ones. Compare RAM, CPU cores, data center location, the Windows license, support hours and backup policy rather than the headline price. We don't take referral fees from any VPS provider and don't recommend a specific one.
Local PC or VPS: a decision table
| Your situation | Home PC | VPS |
|---|---|---|
| Bot trades the New York session and you're at your desk | Usually fine | Optional |
| Bot trades Asia or London while you sleep | Possible with careful setup | Simpler |
| Unreliable home internet or power | Risky | Better |
| You use a Mac | Needs a Windows virtual machine | Works from any device |
| You travel or are often away from home | Hard | Better |
| You want to spend nothing extra | No extra cost | A monthly fee |
Whichever you choose, a VPS doesn't remove the need to check on the bot. Hardware can fail anywhere, and a strategy can stop for reasons that have nothing to do with the machine.
Security basics
A VPS is a computer on the internet with access to your trading account, so lock it down the way you would online banking.
- Use a long, unique password for the Windows account, and change the provider's default password on day one.
- Turn on two-factor authentication for your VPS provider's control panel and for your NinjaTrader account.
- Restrict Remote Desktop. Many providers let you limit Remote Desktop to your own IP address, change the port or use a VPN. Take whichever options your provider offers.
- Keep Windows updated, but schedule updates for the weekend, outside Globex hours.
- Install only what the bot needs. Every extra program is something else that can break or be attacked.
- Disconnect, don't sign out. Closing the Remote Desktop window leaves NinjaTrader running; signing out of Windows closes it. Check your provider's guidance.
A daily routine that works anywhere
- Before the session: platform open, connected, strategies enabled on the right account, no pending Windows restart.
- After the session: check the Strategies, Orders and Positions tabs. The strategy should be flat if its rules say so, with no stray working orders.
- Check the Log tab for disconnects or errors.
- Once a week: restart the machine yourself, at a time you choose, while the market is closed.
For what each bot setting does, see the bot risk settings guide and what you need to run automated strategies.
Moving a strategy to a VPS, step by step
- Install NinjaTrader on the VPS from NinjaTrader's own download page, and sign in with your NinjaTrader account.
- Set up the connection to your data and account, exactly as on your own PC.
- Import the strategy through Tools and Import, and check it compiles. Licensed strategies may need the license moved to the new machine; follow the developer's instructions.
- Rebuild the workspace: the same instrument, bar type, Trading Hours template and strategy settings you tested with. Write the settings down so you can compare.
- Disable the strategy on your home PC. Two copies of the same strategy on the same account will both trade.
- Run it on a simulated account first for a few sessions to check the VPS keeps up and stays connected.
- Set Windows power and update settings on the VPS as you would at home, so it doesn't restart during a session.
Keep a note of what's running where. The most common VPS mistake is forgetting that the same strategy is still enabled on another machine.
Related guides
- Can you run automated strategies in NinjaTrader? What you need first →
- Futures trading sessions: Asia, London and New York times →
- Strategy start behavior explained: wait until flat, immediately submit, synchronize account →
- Strategy not showing in NinjaTrader: every cause and fix →
- Exit on session close: how it works and when to turn it off →
- NinjaTrader trading hours templates: set up Asia, London and New York sessions →
- How to add a session time filter to a NinjaTrader strategy →
- Automated futures trading in NinjaTrader: how it works →
- NinjaTrader daily loss limit and strategy safety settings →
- How to import a strategy into NinjaTrader →
Bots mentioned in this guide
Futures trading involves substantial risk of loss and is not suitable for every investor. Past or hypothetical results don't guarantee future results. This guide is educational, not investment advice. Risk disclosure.