The right platform for automated trading is rarely a free choice. Your broker supports some platforms and not others, the market you trade narrows it further, and the EA or strategy you want to run exists for a specific one. This page compares five platforms that retail traders commonly automate with: MetaTrader 4, MetaTrader 5, cTrader, NinjaTrader and TradingView. They differ in language, in how well you can test, and above all in where the bot runs, which decides what has to stay switched on.
Side by side
| MetaTrader 4 | MetaTrader 5 | cTrader | NinjaTrader | TradingView | |
|---|---|---|---|---|---|
| Typical markets | Forex and CFDs, as offered by the broker | Forex and CFDs; futures, options, stocks and bonds where the broker offers them | Forex and CFDs (indices, metals, crypto) as offered by the broker | Futures | Charts for almost everything; trading through connected brokers |
| Bot is called | Expert Advisor | Expert Advisor | cBot | Strategy | Strategy and alert |
| Language | MQL4 | MQL5 | C# or Python | C# (NinjaScript) | Pine Script |
| Where the bot runs | In the desktop terminal | In the desktop terminal | In the desktop app, or in cTrader's cloud | In the Windows desktop application | Alerts run on TradingView's servers |
| Operating system for the bot | Windows; Linux through Wine (documented by MetaQuotes) | Windows; Linux through Wine and a macOS installer (documented by MetaQuotes) | Windows and Mac desktop apps; cloud instances from any cTrader app | Windows | Any browser |
| Tester | Single thread, no built-in forward period | Multi-threaded, real ticks, built-in forward period | Built-in backtesting and optimisation in the desktop app | Built-in Strategy Analyzer | Built-in strategy tester on chart data |
| Where ready-made bots are found | MQL5 Market | MQL5 Market | cTrader Store | NinjaTrader Ecosystem (third-party apps) | Community scripts library, mostly indicators and strategies to study |
| Needs a machine always on | Yes, yours or a rented server | Yes, yours or a rented server | Only for local execution | Yes, a Windows machine | No for alerts; yes for whatever receives them |
MetaTrader 4
MetaTrader 4 is still widely offered by forex and CFD brokers. Its strength is the amount of existing material: Expert Advisors, indicators and tutorials written over many years.
- Good for: running an EA that exists only for MT4, simple strategies, brokers that offer MT4 accounts with the conditions you want.
- Limits: the Strategy Tester runs on a single thread and has no automatic forward test.
- To keep it running: the terminal must stay open and logged in. See how to run an Expert Advisor 24/7.
MetaTrader 5
MetaTrader 5 looks similar but is a different platform with a different language. EAs written for MT4 do not run on it without being rewritten.
- Good for: anyone starting today, EAs that need serious testing, strategies on several symbols at once (the tester is multi-currency).
- Tester: multi-threaded, with tick modes up to real ticks, an emulated execution delay and a forward period that splits the history for you. The method is explained in how to optimize Expert Advisor settings.
- Limits: a broker must offer MT5 accounts; some older commercial EAs were never ported.
cTrader
cTrader bots, called cBots, are written in C# or Python, general-purpose languages with far more learning material outside trading than the MetaTrader languages.
- Good for: traders who know C# or Python or want a mainstream language; brokers with cTrader accounts.
- Where it runs: either in the desktop app on Windows or Mac, which must stay open, or in cTrader's cloud. cTrader's documentation says a cBot started in the cloud keeps running with your device switched off and without a VPS, with limits: typically one cloud instance on demo, stopped automatically after seven days, and up to ten on live; custom indicators and plugins run only locally. Limits can vary by broker.
- Limits: fewer brokers and fewer ready-made bots than MetaTrader.
NinjaTrader
NinjaTrader describes its desktop platform as built for futures trading. Strategies are written in NinjaScript, which is C#.
- Good for: futures traders, including futures prop firm programs that support it.
- To keep it running: NinjaTrader's documentation says NinjaScript runs only in the NinjaTrader 8 desktop application, on Windows, and not in its web platform. A strategy therefore runs only while that program is open and connected, which means a Windows machine that stays on.
- Limits: the web and browser versions do not run NinjaScript strategies; on a Mac or Linux computer the strategy needs Windows somewhere else, for example a virtual machine or a Windows server.
TradingView
TradingView is first a charting service. Strategies are written in Pine Script and tested on the chart; automation happens through alerts, which run on TradingView's servers.
- Good for: designing and testing ideas quickly, alerting on conditions across many markets.
- How automation works: when an alert fires, TradingView can send an HTTP request, a webhook, to an address you choose (ports 80 or 443 only, and only with two-factor authentication enabled on the account). Something there must handle it within three seconds, or TradingView cancels the request, and place the order, through a broker API or through an EA in a MetaTrader terminal.
- Limits: the alert is not an order by itself, and the piece that turns it into one is yours to run and maintain.
How to choose
| Your situation | Start with |
|---|---|
| You bought or were given an EA | The platform it was written for, with a broker that offers it |
| You trade forex or CFDs and are starting from zero | MetaTrader 5, if your broker has it |
| You write C# or Python and your broker offers cTrader | cTrader, and consider its cloud before any server |
| You trade futures | NinjaTrader on Windows |
| Your strategy lives in Pine Script | TradingView alerts plus a receiver, or a rewrite as an EA |
| You want several platforms at once | A Windows machine, because each desktop platform in this list has a Windows version |
When none of these is the right tool
If your strategy trades through an exchange or broker API with your own code, in Python for example, you do not need a trading platform at all, and a small Linux server is often enough. The different kinds of bot and what each needs from a server are compared in VPS for trading bots.
How this works on Dipgate
What you can run on each Dipgate product follows from where the bot runs:
| What you run | Dipgate product |
|---|---|
| One MetaTrader 4 or 5 account, any number of EAs | Metatrader In Cloud, opened in the browser, from $2.50/mo billed annually |
| Several MetaTrader terminals | Metatrader VPS on Ubuntu (up to 4, 8 or 16 trading platforms) or Trading VPS on Windows (up to 3, 6 or 10) |
| NinjaTrader, TradeStation, MultiCharts, ProRealTime | Trading VPS, Silver plan or higher, as the site recommends |
| Dozens of terminals or heavy backtests | Trading Servers |
cBots in cTrader's cloud and TradingView alerts need no Dipgate product; a server enters the picture only for the desktop app or for the program that receives the alerts.
