GuideUpdated 26 November 202610 min read

MT4/MT5 EAs, cTrader cBots, NinjaTrader, Python API scripts and TradingView webhooks: which need Windows, a desktop or a VPS at all, and which server fits.

In short
  • MT4/MT5 Expert Advisors and NinjaTrader strategies run inside a desktop platform that must stay open and logged in, on a machine that stays on. NinjaTrader needs Windows; MetaTrader is built for Windows and MetaQuotes documents running MT5 on Linux through Wine.
  • cTrader cBots can run in cTrader's own cloud without a VPS; you need a server only to run them in the desktop app, or beyond the cloud limits.
  • A Python script that talks to a broker or exchange over a web API needs no Windows and no desktop, unless it uses the MetaTrader5 Python package, which is published for Windows only and talks to a running MT5 terminal.
  • A TradingView webhook receiver is a small web server: it needs a public address on port 80 or 443 that answers within three seconds, not a trading VPS.
  • A home PC is fine for testing and for bots that run only while you are at the desk; a VPS earns its cost when the bot must run while the PC is off.

A trading bot needs a VPS only when its code runs on your side and must keep running while your computer is off. What kind of server depends on the bot. MT4/MT5 Expert Advisors and NinjaTrader strategies live inside a desktop platform, so they need a machine with a desktop that stays on: Windows for NinjaTrader, Windows or Linux with Wine for MetaTrader. A Python script calling a web API, or a receiver for TradingView webhooks, needs neither Windows nor a desktop, and often no trading VPS at all.

What each bot needs: MT4 and MT5 EAs a desktop terminal always open, cTrader cBots the desktop app or the cTrader cloud, NinjaTrader a Windows desktop, Python on an API a small server, TradingView alerts a web address that answers quickly
Five kinds of bot, five different things that must stay on.

What each type of bot needs

Bot typeWhere the code runsWindows neededDesktop session neededDistance to the brokerWhat must stay running
MT4 / MT5 Expert AdvisorInside the MetaTrader terminalBuilt for Windows; MetaQuotes documents MT5 on Linux through WineYes, the terminal is a desktop programMatters for EAs that trade or modify orders oftenThe terminal, logged in to the broker, with algo trading enabled
cTrader cBotIn the cTrader desktop app, or in cTrader's cloudNo: the desktop app exists for Windows and macOS; the cloud needs no machine of yoursOnly for local executionLocal: same as an EA. Cloud: decided by cTraderLocal: the app and the computer. Cloud: nothing on your side
NinjaTrader strategyInside NinjaTrader DesktopYesYesMatters for strategies that trade oftenNinjaTrader, connected to the data feed and broker
Python script on a broker or exchange APIA Python processOnly if it uses a Windows-only library such as the MetaTrader5 packageNo, unless it drives a desktop programDepends on how often it sends ordersThe script, plus anything it connects to
TradingView alerts by webhookAlert logic on TradingView's servers; your receiver gets the HTTP requestNoNoYour receiver must answer within three secondsA web endpoint reachable on port 80 or 443

The rest of this page explains each row, then maps it to a server.

MT4 and MT5 Expert Advisors

An Expert Advisor is a program that runs inside the MetaTrader terminal. It acts only while that terminal is open, logged in to the broker and allowed to trade. Close the terminal, let Windows restart for an update, or lose the internet connection, and the EA stops acting until everything is back.

So the server must provide:

  • Windows, or Linux with Wine. MetaTrader 4 and 5 are built for Windows. MetaQuotes documents that MetaTrader 5 runs on Linux using Wine, a compatibility layer that lets Windows software run on Linux.
  • A desktop session that survives your disconnection. On a Windows VPS you connect with Remote Desktop; closing the window leaves the session and the terminal running.
  • A way back after a reboot. The terminal has to start again by itself after the server restarts. This is covered step by step in autostarting MT4/MT5 after a VPS reboot.
  • Reasonable distance to the broker's trade server. Every order travels from the terminal to the broker. For a scalping EA, or one that moves stops many times a minute, a server in the same region as the broker helps. For an EA that opens a few trades a week, location barely changes anything.

How much CPU and RAM an EA needs depends on the EA, the number of charts and the history kept on them. Running several terminals on one machine works; each terminal needs its own install folder, as explained in running several MT4 terminals with the same broker.

cTrader cBots

cTrader gives you two places to run a cBot:

  • Locally, inside the cTrader desktop app, which cTrader offers for Windows and for macOS 12.0 and up. A local cBot "depends on the app and computer staying open", in the words of the cTrader cBots FAQ. This is the case where a server helps.
  • In cTrader's cloud, a hosted Linux-based environment. The cTrader help pages say a cloud cBot runs 24/7 with your device switched off, without a VPS, and that the service is free. Limits apply: typically one cloud instance on a demo account and up to ten on live accounts, demo instances stop after seven days, and custom indicators and plugins run only locally. The limits can vary by broker.

If your cBots fit inside those limits, try the cloud before paying for a server. If you need more instances, custom indicators running next to the bot, or you want the full desktop app, you need a machine that stays on.

NinjaTrader strategies

A NinjaTrader strategy (written in NinjaScript) runs inside NinjaTrader Desktop. NinjaTrader's help guide, in its archived May 2024 version, lists 64-bit Windows, including Windows 11 and Windows Server 2016 or later, with .NET Framework 4.8 as the minimum, and recommends a quad-core processor and 8 GB of RAM. Check the current version of that page before you buy, and size the server for the recommendation, not for the minimum.

What must stay running: NinjaTrader itself, connected to its data feed and to the broker. Like an EA, the strategy stops when the program closes.

Python scripts on a broker or exchange API

There are two very different cases.

The script talks to a web API directly. Many brokers and crypto exchanges offer a REST or WebSocket API: the script sends HTTPS requests and keeps a connection open for prices. This needs a Python interpreter, a network connection and a process manager that restarts the script if it crashes. It needs no Windows and no desktop. A small Linux server is the usual home for it.

The script drives a desktop program. The MetaTrader5 Python package gets its data "directly from the MetaTrader 5 terminal" through interprocess communication, and its initialize() call connects to that terminal. On PyPI the package is published only as Windows builds (win_amd64). So a Python bot built on it needs a Windows machine with MT5 installed and logged in: the same server as an EA, plus Python.

Before you choose, check which case yours is. Some broker libraries also need the broker's own desktop or gateway program running next to the script; their documentation will say so.

TradingView alerts sent by webhook

Here the strategy logic runs on TradingView's servers. When an alert fires, TradingView sends an HTTP POST to a URL you give it. Its webhook documentation sets the rules your receiver must meet:

  • it must listen on port 80 or 443 (other ports are rejected);
  • it must be reachable over IPv4 (IPv6 is not supported);
  • it must answer within three seconds, or the request is cancelled;
  • webhook alerts work only with two-factor authentication enabled on the TradingView account.

So a webhook receiver is a small web server with a public address, ideally HTTPS on port 443. It does not need Windows, a desktop or a large machine. What happens after it receives the alert decides the rest: if it calls a broker API, it is a Python-style bot from the section above; if it hands the signal to an EA in MetaTrader, the MetaTrader side needs the EA setup described earlier, and the receiver must still answer TradingView within three seconds.

Which Dipgate product fits each bot

BotFitsWhy
MT4 or MT5 EAs on one trading accountMetatrader In CloudOne MetaTrader 4 or 5, already running in the browser; one trading account with unlimited Expert Advisors, uploaded with the File Manager
MT4 or MT5 EAs on several accountsMetatrader VPS, or Trading VPSMetatrader VPS: an Ubuntu desktop with MetaTrader preinstalled, up to 4 / 8 / 16 trading platforms. Trading VPS: Windows Server, up to 3 / 6 / 10 trading platforms
NinjaTrader strategyTrading VPS Silver or higherDipgate's page says to choose Silver or higher for NinjaTrader, TradeStation, MultiCharts and ProRealTime
Python script using the MetaTrader5 packageTrading VPSIt needs Windows with MT5 logged in; Trading VPS is a Windows Server you set up yourself over Remote Desktop
cTrader cBot, local executionCheck with Dipgate firstcTrader is not among the platforms Dipgate's product pages name. Trading VPS is described as for "EAs and robots on any Windows platform"; ask support with a ticket before ordering
Dozens of terminals, heavy backtestsTrading ServersA whole physical server; Windows or Linux images at order; London and New York
Python script on a web API onlyNo trading VPS neededIt needs no Windows and no desktop; a small Linux server is enough
TradingView webhook receiverNo trading VPS neededIt is a small public web server with different needs; the trading VPS question applies only to whatever it hands the signal to

Metatrader In Cloud, Metatrader VPS and Trading VPS are built around trading platforms with a desktop or browser view. For the last two rows they would mostly sit idle. Trading Servers do offer Linux images, but they are sized for dozens of terminals, not for one script.

A worked sizing example

A trader runs three MT5 accounts with EAs at two brokers, plus one NinjaTrader strategy on futures.

  1. Count the platforms: three MetaTrader terminals plus NinjaTrader makes four.
  2. NinjaTrader rules out Metatrader In Cloud and Metatrader VPS, so the choice is a Windows server.
  3. Trading VPS Bronze allows up to 3 trading platforms: too few, and Dipgate asks for Silver or higher for NinjaTrader anyway.
  4. Trading VPS Silver allows up to 6 trading platforms, which leaves room for two more terminals later. It costs $48.90 monthly, or from $40.75/mo, billed annually. It has 6 GB RAM, which is less than the 8 GB NinjaTrader recommends for NinjaTrader alone.
  5. Trading VPS Gold (9 GB RAM, up to 10 trading platforms) is the plan that covers NinjaTrader's 8 GB recommendation. It costs $74.90 monthly, or from $62.50/mo, billed annually. Extra RAM can also be added to a plan as a paid option at order.
  6. Whichever plan you pick, watch the CPU and RAM in the first week, especially if the EAs keep many charts with long history; the resource monitoring steps are in Dipgate's knowledge base article on monitoring a Windows VPS. Plans can be upgraded later.

Without NinjaTrader, the same three MT5 accounts fit a Metatrader VPS Bronze (up to 4 trading platforms), from $9.92/mo, billed annually. With a single MT5 account, Metatrader In Cloud runs all its EAs from $2.50/mo, billed annually. The plan limits are counted in platforms; how heavy each platform is depends on the EAs and the number of charts.

Why a VPS and not your home PC

A home PC with the right operating system can run each of the bots on this page. The question is whether it will stay on, connected and awake for as long as the bot needs it. Windows updates restart it, power cuts and router resets cut it off, a laptop goes to sleep when the lid closes, and a PC in Europe may sit far from a broker in New York. A VPS is built to stay on and connected without you, and lets you put the server near the broker; it costs a monthly fee and some setup. A home PC is fine when you are testing on a demo account, when the bot only trades during hours you are at the desk anyway, when it holds positions for days so a short outage costs little, or when the platform offers its own hosting, such as cTrader's cloud for cBots. The step-by-step version for MetaTrader is in how to run an Expert Advisor 24/7.

When a VPS is not the right choice

  • Your cBots fit cTrader's cloud limits. It runs them with your device off, at no cost.
  • Your bot is a webhook receiver or a pure API script. A small Linux server or a hosted web endpoint is cheaper and closer to what it needs than a trading VPS with a desktop.
  • Your prop firm prohibits VPS use. Several do, at least for some account sizes. Check the firm's own rules first: the rules of seven firms, as read on 26 November 2026, are in prop firm VPS rules.
  • You run one MT4/MT5 account and only want the EA hosted. MetaQuotes' own virtual hosting is another option; the trade-offs are in MQL5 virtual hosting vs your own VPS.

How this works on Dipgate

For bots that need Windows, Trading VPS is the fitting product: Windows Server 2022, 2019 or 2016, connected with Remote Desktop from a computer or phone, and "close the connection and everything keeps running". Dipgate sets up autologin, and moving a platform's shortcut into the "My Platforms Autostart" folder starts it again after a reboot. Each VPS has its own IP address. Plans are Bronze (3 GHz CPU, 3 GB RAM, up to 3 trading platforms), Silver (6 GHz CPU, 6 GB RAM, up to 6) and Gold (9 GHz CPU, 9 GB RAM, up to 10), from $20.75/mo, billed annually; locations are chosen at order. Dipgate publishes a broker latency table on its Broker Latency page.

FAQ

Do I need a Windows VPS for a Python trading bot?

Only if the script uses the MetaTrader5 Python package or another library that needs a Windows desktop program running next to it. A script that calls a broker or exchange REST or WebSocket API runs on any small Linux server.

Can a TradingView alert place a trade in MetaTrader directly?

Not by itself. TradingView sends an HTTP POST to a URL you choose; something on the other side has to receive it and turn it into an order, either through a broker API or through an EA running in a MetaTrader terminal.

Does a cBot need a VPS to run 24/7?

Not necessarily. cTrader's help pages say a cBot started in the cloud keeps running with your device switched off, without a VPS. Limits apply: typically up to ten cloud instances on live accounts and one on demo, and custom indicators and plugins run only locally.

How many bots can I run on one Trading VPS?

Dipgate states the plan limits in trading platforms: up to 3 on Trading VPS Bronze, 6 on Silver and 10 on Gold. Each platform can run several EAs; real usage depends on the EAs and the number of charts.

Does being close to the broker matter for my bot?

It matters most for bots that trade or modify orders often, and least for bots that hold positions for hours or days. For a webhook bot, the time it takes your receiver to answer matters as much as distance.