ComparisonUpdated 27 November 20265 min read

MetaTrader 4, MetaTrader 5, cTrader, NinjaTrader and TradingView compared for automated trading: language, backtesting and where the bot runs.

In short
  • There is no single winner: the platform is decided first by what your broker offers and what market you trade, then by the language you or your EA vendor use.
  • MetaTrader 4 and 5 share the MQL5 Market, a store of ready-made Expert Advisors; MetaTrader 5 has the stronger tester, multi-threaded, with real ticks and a built-in forward period.
  • cTrader bots are written in C# or Python and can run in cTrader's own cloud with your device off, within limits that depend on the account and the broker.
  • NinjaTrader is used mainly for futures; its NinjaScript strategies run only in the Windows desktop application and stop when it closes.
  • TradingView runs strategy alerts on its own servers, but an alert needs something on the other side to turn it into an order.

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.

Where the bot runs on each platform: inside the desktop program for MetaTrader and NinjaTrader, in the desktop app or the cloud for cTrader, on TradingView's servers for alerts
The question that decides everything else: where does the code run, and what has to stay on.

Side by side

MetaTrader 4MetaTrader 5cTraderNinjaTraderTradingView
Typical marketsForex and CFDs, as offered by the brokerForex and CFDs; futures, options, stocks and bonds where the broker offers themForex and CFDs (indices, metals, crypto) as offered by the brokerFuturesCharts for almost everything; trading through connected brokers
Bot is calledExpert AdvisorExpert AdvisorcBotStrategyStrategy and alert
LanguageMQL4MQL5C# or PythonC# (NinjaScript)Pine Script
Where the bot runsIn the desktop terminalIn the desktop terminalIn the desktop app, or in cTrader's cloudIn the Windows desktop applicationAlerts run on TradingView's servers
Operating system for the botWindows; 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 appWindowsAny browser
TesterSingle thread, no built-in forward periodMulti-threaded, real ticks, built-in forward periodBuilt-in backtesting and optimisation in the desktop appBuilt-in Strategy AnalyzerBuilt-in strategy tester on chart data
Where ready-made bots are foundMQL5 MarketMQL5 MarketcTrader StoreNinjaTrader Ecosystem (third-party apps)Community scripts library, mostly indicators and strategies to study
Needs a machine always onYes, yours or a rented serverYes, yours or a rented serverOnly for local executionYes, a Windows machineNo 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 situationStart with
You bought or were given an EAThe platform it was written for, with a broker that offers it
You trade forex or CFDs and are starting from zeroMetaTrader 5, if your broker has it
You write C# or Python and your broker offers cTradercTrader, and consider its cloud before any server
You trade futuresNinjaTrader on Windows
Your strategy lives in Pine ScriptTradingView alerts plus a receiver, or a rewrite as an EA
You want several platforms at onceA 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 runDipgate product
One MetaTrader 4 or 5 account, any number of EAsMetatrader In Cloud, opened in the browser, from $2.50/mo billed annually
Several MetaTrader terminalsMetatrader 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, ProRealTimeTrading VPS, Silver plan or higher, as the site recommends
Dozens of terminals or heavy backtestsTrading 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.

FAQ

Which platform is easiest for a beginner who wants to automate?

The one your broker supports and for which you can get a tested EA or learn the language. For many forex traders that means MetaTrader, because it is widely offered by forex brokers and has a large supply of EAs and tutorials.

Can I move an MT4 Expert Advisor to MT5?

Not by copying the file. MQL4 and MQL5 are different languages and the two platforms handle orders and positions differently, so the EA must be rewritten or the vendor must provide an MT5 version.

Do automated trading platforms need a VPS?

Only when the bot runs on your side and must keep running while your computer is off. EAs and NinjaTrader strategies do; cBots started in cTrader's cloud and alerts that run on TradingView's servers do not, although the program that receives TradingView alerts does need a machine that stays on.

Is MetaTrader 5 better than MetaTrader 4 for EAs?

MT5 has the stronger tester: multi-threaded, with real ticks and a forward period. MT4 still has a large library of existing EAs. If the EA you want exists for both, MT5 lets you test it more thoroughly.

Can TradingView place trades automatically?

TradingView runs the strategy and sends alerts; by itself an alert is a message. For automatic execution a webhook receiver, a broker integration or an EA has to receive it and place the order. TradingView allows webhook alerts only with two-factor authentication enabled.