Cyber Monday deals are here!All Promos
Compute

Should Your Backtest Share a VPS With Live Trading?

An optimization can use the same resources your live strategy needs. How to spot the competition, test it safely, and decide what belongs on a separate machine.

By Marko|NOV 30, 2026·16 MIN READ

In this series: The Unattended Desk3 of 3 articles
Should Your Backtest Share a VPS With Live Trading?

Trading I/O Podcast

Listen to the episode

With Marko Nikolić

You have a strategy running, a spare hour, and an idea worth testing. Open the analyzer, widen the parameter range, and let it work while the market gets on with its day.

Reasonable enough. Until the charts become sticky, the desktop takes a moment to respond, and you start wondering what else is waiting.

The VPS has not gone offline. Nothing has crashed. You have given one computer two jobs with very different priorities: finish a lot of research, and respond promptly to the next market event.

This is Part 3 of The Unattended Desk. We have covered what survives a Remote Desktop disconnect and what returns after a restart. Now the question is what happens when everything stays running, but your own research becomes the competing workload.

The answer is not that every backtest needs another server. It is that an unattended strategy deserves a resource plan that does not depend on you noticing the machine struggling.

Your Computer Doesn’t Know Which Job Pays the Bills

A backtest usually cares about throughput: how much historical work it can complete in a given time. A live strategy also cares about response time: how long the next calculation or action waits before it can run.

Those aims can coexist. They can also compete.

A CPU core executes instructions. A software thread is a sequence of work that needs time on a core. Windows schedules runnable threads, using priorities and time slices when they compete.1 It does not inspect a calculation and decide that this one involves a live NQ position while the other is your seventeenth attempt at a better exit rule.

Even a modest research question can multiply the work. Later, we will test three retest windows against three profit targets: nine combinations. Add ten stop settings and that becomes 90. Counts do not predict runtime, but they explain how another small settings change can turn a quick check into an afternoon of computing.

The research job is doing exactly what you asked. The problem is expecting the live job to absorb its changing appetite without checking.

This distinction still applies with dedicated CPU capacity. A provider can reserve resources for your VPS; your optimizer and trading platform still have to divide the resources inside it. Isolation from other customers does not isolate your applications from each other.

A dedicated allocation belongs to your VPS. It is not automatically reserved for your live strategy.

Three Places the Workloads Meet

CPU usage is the obvious place to look. It is not the only one.

Processor Time

An optimizer can keep many workers busy. A live strategy may need one particular sequence of calculations to finish before it can proceed. Spare capacity elsewhere does not automatically divide that sequence into parallel work.

For a simplified illustration, one fully occupied logical processor among eight otherwise idle ones represents 12.5% of their combined time capacity. That is arithmetic, not a prediction of a particular Task Manager display. The point is to inspect individual processor activity as well as the average. A modest total can hide a busy execution path.

Working Memory

Historical data, indicator state, test instances, and retained results occupy memory alongside the live platform. When that combined workload puts pressure on RAM, Windows may need to retrieve memory pages from storage. Page files also support the system’s memory commitment; deleting one to make the setup seem faster is not a fix.2

High RAM use alone is not a diagnosis. Nor is an isolated hard fault, which means a required page had to be retrieved from disk and can occur during normal file loading.3 What deserves attention is a repeatable slowdown accompanied by reduced available memory and sustained disk-backed page activity.

Storage Work

Loading tick history, writing results, and saving platform data can overlap. Look for rising read or write latency alongside the affected process, rather than assuming that a drive advertised as fast cannot be busy. Windows Performance Monitor can record processor, memory, storage, and process counters together.4

For a trader, the consequence may be delayed history loading, a slow workspace, or calculations waiting on data. A screen pause alone does not establish that an order was delayed. Application timing and broker acknowledgements answer different questions from a resource graph.

An illustrated computer cutaway shows research batches and a live chart using the same processor, memory, and storage within one machine.
Two applications can compete at several resources, even when the hosting allocation is reserved for you. The cutaway is conceptual, not a measured benchmark.

Look for the resource that is making work wait, not just the largest percentage on the screen.

NinjaTrader and MT5 Need Different Checks

NinjaTrader’s Optimizer Is Built to Keep the CPU Busy

NinjaTrader’s optimization documentation says its engine uses all CPU cores and advises against starting an optimization when the computer is needed for something else, including managing a trade exit. It also explains that retaining fewer backtest results reduces memory use.5

That is a fairly direct answer to the idea that Strategy Analyzer is harmless background work.

There can be less visible load, too. NinjaTrader notes that an open workspace continues consuming resources when it is out of view. Its performance guidance also distinguishes many charts of the same instrument from a workload that can spread more effectively across cores.6

Moving the analyzer to another monitor changes where you look. It does not give it a separate computer. Neither does minimizing an unused workspace.

For a NinjaScript setup, inventory the live strategies, required charts, additional workspaces, and research jobs together. Avoid changing calculation settings just to reduce a meter reading: a setting that changes when code runs can change the behavior you intended to test.

MT5 Gives You Testing Agents to Account For

MetaTrader 5 uses testing agents. A single test uses one agent; optimization can distribute passes across several. Local agents run on the same computer, with the number created based on its logical processors.7

The Agents section lets you choose which agents participate. Remote and cloud agents run elsewhere, so they provide a way to move optimization calculations away from the trading VPS. Their availability, cost, and suitability for your EA still need checking.8

Disabling some local agents can limit research concurrency. It does not create a hard reservation for the live EA’s CPU, memory, or storage needs.

Likewise, opening a second terminal on the same VPS separates the application instance, not the machine’s resource budget. That distinction is easy to miss because the windows look so independent.

A trader examines a large research workspace while an inset reveals several testing workers beneath the windows, all using the same computer.
Count the work behind the windows. The illustration is not a replica of either platform's controls.

Another window is an organizational choice. Another allocation is a capacity decision.

One Trading Setup, Two Different Tests

Here is a useful way to spend the research time: test the trading rules, then test the conditions they have to run in. A profitable-looking backtest cannot answer both questions.

Start With an ES Opening-Range Retest

The question is specific: after ES breaks above its opening range, can a retest that holds above the old high produce a useful long setup after costs? This is an unvalidated research example, not a recommended trade. Implement the rules in a test strategy; they are not a built-in NinjaTrader preset.

Use five-minute bars and one simulated ES contract. All times below are America/New_York, including daylight-saving changes.

Rule Exact Definition
Opening range Record the high and low from 09:30 up to, but not including, 09:45. Freeze them for the session.
Breakout Take the first five-minute bar beginning at or after 09:45 that closes above the range high.
Retest Within the next two completed bars, require a low at or below the range high and a close above it. A close at or below the range high cancels the setup.
Entry After the first qualifying retest closes, check the next bar’s first tick. If it is above the intended stop and before 10:30, submit a market buy. Model the fill after submission, not at the retest bar’s close.
Exit Stop one tick below the retest low. Target 1.5 times initial entry-to-stop distance, rounded down to a valid tick. Exit any remaining position at 11:30.
Limits One setup attempt per session, long only, no re-entry or trailing stop. Skip if the retest expires or the entry check fails.

For example, a range high of 6,000.00, retest low of 5,999.50, and simulated entry fill of 6,001.25 produce a 5,999.25 stop. Initial risk is two points; a 1.5R target is 6,004.25. ES is $50 per point, so that is $100 of initial price risk and $150 to the target, before fees and slippage.9 Those are arithmetic examples, not guaranteed losses or returns.

Nine Variations, Then Unseen Sessions

Keep everything fixed except the retest window (one, two, or three bars) and target (1R, 1.5R, or 2R). That makes nine combinations.

R is the trade’s initial risk, measured from entry to the original stop. In our $100-risk example, targets of 1R, 1.5R, and 2R mean aiming for $100, $150, and $200 respectively, before fees and slippage. It is a consistent yardstick, not a guarantee that a stop will limit the loss to exactly 1R.

Start with 18 months of data: inspect the first 12, choose and freeze one candidate, then evaluate the final six without retuning. Record contract rolls, missing sessions, and the trading-hours template. Do not let a continuous-contract adjustment silently change the levels you tested.

Look for reasonable neighboring settings, not one spectacular result surrounded by failures. Report trade count, average net result, maximum drawdown, and results by month. A handful of trades is inconclusive, however attractive the percentage. Changing the rules after viewing the last six months makes that period development data, not a fresh test. NinjaTrader’s walk-forward tooling supports repeated earlier-data/later-data splits; the 12/6 split here is one straightforward holdout experiment.10

Include actual commission and fee assumptions. Then subtract an additional $25 and $50 per completed ES trade in separate sensitivity checks: the equivalent of one and two adverse ticks on each side.9 This is a cost haircut, not a claim about achievable fills or the platform’s slippage setting.

Have the strategy developer preserve that sequence of signals, entry checks, and orders in historical processing. For NinjaTrader, five-minute signals with an added one-tick order series provide a route to intrabar testing. High order-fill resolution is a separate option for supported single-series strategies, not something to combine with multi-series code or Tick Replay.11 More granular data increases processing work. Inspect trades where stop and target fall inside one bar; finer data does not establish live queue position.

Replay the Same Morning Under Three Loads

Now test the operating environment, separately from the strategy’s profitability. Use an isolated simulation copy with live connections and copier destinations disabled. NinjaTrader Playback requires other connections to be closed.12

Choose a recorded 09:25-10:30 interval containing a qualifying setup. Run at 1x, with the same platform version, charts, strategy parameters, and starting state each time:

  1. Execution alone. Replay the strategy with no research running.
  2. Research on the same VPS. Start the nine-combination, 12-month optimization at replay time 09:40. Capture history loading and calculation separately. If it finishes quickly, report that; a short job does not represent an all-day optimization.
  3. Research elsewhere. Repeat the identical research job on a separate machine or VPS while the original environment runs playback. Keep the execution allocation unchanged.

Run each condition three times, alternating the order. Keep data-cache preparation consistent. Repeat execution alone afterward to see whether the machine returns to baseline. Later, repeat with a busier recorded session and your actual strategy; one ES example does not qualify every workload.

Use Resource Monitor or a bounded Performance Monitor capture for per-processor activity, available memory, and disk response time.4 Ask the strategy developer to log local elapsed time from callback entry to calculation completion, plus simulated order-submission events. Compare the median, slowest 5%, and worst event with the baseline; record the sample count.

Also compare replay progress with wall-clock time. If the same 65 recorded minutes take longer under load, playback itself may be falling behind. Unchanged simulated fills would not make that a pass. Callback timing also misses delays before the callback starts and beyond the local application.

The decision becomes specific: did research repeatedly introduce errors, calculation delays, memory pressure, or replay lag, and did removing it resolve them? Without event timing, you have a resource test, not proof of execution speed. An ordinary historical backtest that takes longer under load establishes slower research, not what would happen to a live order.

Three distinct comic views show a simulation rehearsal, an overhead comparison of resource traces, and research being stopped while the simulated trading workspace remains open.
Repeat the same recorded session with research absent, local, and separated. Compare processing behavior as well as the simulated trade result.

The useful result is not “CPU reached 90%.” It is “this job repeatedly delayed this part of the workflow.”

Share, Schedule, or Separate

The test should leave you with a decision, not a demand to buy something.

Share when research is bounded and the combined workload has demonstrated enough capacity for the conditions you expect. A short historical check and a broad tick-data optimization are not equivalent jobs. Treat any substantial increase in data, scripts, or concurrent tests as a reason to reassess.

Schedule when intensive research can run outside the strategy’s operating window. Leave time for cleanup and a readiness check before execution resumes. “Run it overnight” is not much of a plan if your EA trades the London session or the optimization sometimes runs into the morning.

Separate when you need heavy research and live execution at the same time, or when frequent research changes are making production difficult to keep predictable. Put experimentation somewhere it can be busy without borrowing the live environment’s budget.

A separate VPS gives the workloads separate guest operating systems and allocations. Ask what CPU capacity is guaranteed and whether storage limits or physical-host placement are shared. Two VPS instances should not be assumed to provide independent hardware failure domains.

Separation also does not require moving your existing research desk. You can leave the chart wall, historical datasets, and optimization tools where they are, then give the live strategy a hosted execution environment sized for its actual requirements.

Before moving a platform, check licenses, permitted concurrent broker or feed sessions, required files, and the plan for avoiding duplicate live instances. Copying a workspace is only one part of that move.

A panoramic cutaway separates a research workstation from a hosted execution environment, with the returning traders handling different tasks and no shared desktop between them.
Separate the operating environments when the jobs need different resource budgets. Separate VPS instances do not, by themselves, promise separate physical hosts.

Give research room to be demanding without making that demand part of the live setup.

Keep Research Changes Out of the Live Workspace

Resource pressure is only half the argument for separation. The other half is what you are willing to change while a strategy is operating.

A research environment is where you load another dataset, try a new indicator, change parameters, and discover that a dependency needs updating. Those are normal research activities. They are poor surprises for an unattended execution environment.

Keep an identifiable version of the strategy and its parameters for production. Record the platform version and dependencies it needs. Move an approved candidate through a simulation check before a planned deployment, and retain the previous known configuration so you have a defined way back.

For a two-person setup, agree who is allowed to deploy and who confirms the account, instrument, and enabled state. For a one-person desk, the same separation of tasks is useful. Research-you is enthusiastic. Deployment-you should be slightly less easily impressed.

Avoid solving resource pressure with an unexplained affinity tweak or a Realtime process-priority setting. Microsoft warns that realtime priority can interfere with essential system work.1 Prioritizing a whole platform process may also prioritize the research running inside it. None of that adds RAM or removes a storage queue.

If detailed resource controls are necessary, treat them as an engineering change to test with the platform developer or hosting team. They should have a documented purpose, not be a collection of settings found in a forum thread.

The returning colleagues exchange an approved strategy version at a standing worktable, with an active research workstation behind one and a separate execution station behind the other.
A deliberate deployment step keeps exploratory changes from quietly becoming production changes.

The live workspace should contain what you intended to deploy, not everything you happened to try.

What This Looks Like on Trading Infrastructure

At ChartVPS, Mini is one example of this execution-first arrangement: a Ryzen 9 9950X-based VPS with two semi-dedicated cores, 4 GB DDR5, and 100 GB NVMe. It can run a focused NinjaScript strategy, EA, or copier alongside an existing research setup.13 It is a workload choice, not a promise that every strategy fits those resources. Size for the platform, its required charts, and observed demand together.

ServerIQ, included with ChartVPS plans, can provide resource history, threshold alerts, and selected platform-process monitoring.14 That gives support and the trader a shared record when an optimization coincides with trouble. A process remaining open is not proof that every strategy calculation completed on time.

The broader question applies to any provider: what keeps research demand from disturbing execution? It might be sufficient reserved capacity, a controlled schedule, a separate allocation, or a combination you have tested.

There is real value in fast hardware here. There is also value in giving that hardware a clear job. A well-planned execution environment should let you investigate the next idea without wondering whether your current strategy is paying for the experiment.

An infrastructure edge can be as practical as keeping today’s experiment out of today’s execution.

Sources

  1. Microsoft Learn, Scheduling Priorities. ↩ ↩
  2. Microsoft Learn, Introduction to Page Files. ↩
  3. Microsoft Learn, How to Determine the Appropriate Page File Size: Performance Counters. ↩
  4. Microsoft Learn, Troubleshoot Performance Problems in Windows. ↩ ↩
  5. NinjaTrader Desktop Help Guide, Optimization. ↩
  6. NinjaTrader Desktop Help Guide, Performance Tips. ↩
  7. MetaTrader 5 Help, Testing Features: Testing Agents. ↩
  8. MetaTrader 5 Help, Strategy Optimization: Multithreaded Testing Using Agents. ↩
  9. CME Group, Tick Movements: Understanding How They Work. ES tick and dollar values support the arithmetic; the trading rules and cost stresses are editorial examples. ↩ ↩
  10. NinjaTrader Desktop Help Guide, Walk Forward Optimization. The article’s fixed 12/6-month holdout is an illustrative research design, not a documented platform default or a validation result. ↩
  11. NinjaTrader Desktop Help Guide, Understanding Historical Fill Processing and Backtesting NinjaScript Strategies With Intrabar Granularity. ↩
  12. NinjaTrader Desktop Help Guide, Playback. ↩
  13. ChartVPS, Mini Trading VPS. ↩
  14. ChartVPS, ServerIQ. ↩

Explore the series

The Unattended Desk

All 3 articles in The Unattended Desk

The I/O Model

Input

Market data and broker feeds

Process

CPU, memory, platform logic

Output

Orders, charts, and alerts

Continuity

Routing, monitoring, recovery