TradeLabs AILearn

MetaTrader

MetaTrader 4 and 5 are popular forex and CFD platforms with expert advisors for automation. Learn their differences, MQL, strategy testing and broker checks.

Beginner3 min readUpdated 3 Oct 2026
Markdown
Read firstTradingView
Lesson 16 of 44

MetaTrader is a family of trading platforms developed by MetaQuotes Software. MetaTrader 4 (MT4), released in 2005, became the standard platform for retail forex trading, and MetaTrader 5 (MT5), released in 2010, extended it to more asset classes. Hundreds of brokers worldwide offer MetaTrader, which provides charts, indicators, one click trading and, most famously, expert advisors: automated trading programs written in MetaQuotes' own languages. Because the platform is licensed to brokers, your trading conditions depend on the broker, not on MetaTrader itself.

MT4 versus MT5#

FeatureMT4MT5
Released20052010
Main marketsForex and CFDsForex, CFDs, and exchange traded stocks and futures with some brokers
Programming languageMQL4MQL5 (more powerful, object oriented)
Timeframes921
Order typesBasicMore pending order types
Depth of marketNoYes
Strategy testerSingle threadedMulti threaded, multi currency, real tick testing
HedgingYesBoth hedging and netting account modes

MetaQuotes has encouraged brokers to move to MT5 and stopped issuing new MT4 licences, but MT4 remains common.

Expert advisors and indicators#

Program typeWhat it does
Expert advisor (EA)Automated strategy that can open, manage and close trades
Custom indicatorCalculates and displays values on charts
ScriptRuns a one off action, such as closing all positions

EAs can run continuously on a computer or a virtual private server near the broker's servers, a common setup for forex automation. See VPS, Cloud and Bare-Metal Servers and Automated vs Semi-Automated Trading.

The strategy tester#

MetaTrader's tester can backtest EAs on historical data. Results depend heavily on data quality and settings:

SettingEffect
Modelling modeReal ticks are most realistic; "open prices only" is fast but crude
SpreadFixed spreads understate costs in fast markets. See Spread Costs
Commission and swapMust be included for realistic results
History qualityGaps and poor data distort results

Choosing a MetaTrader broker#

Because the platform is the same everywhere, broker quality makes the difference:

Some scam operations have used MetaTrader to look legitimate. The platform's presence says nothing about whether the broker is regulated. See Identifying Trading Scams.

Pros and cons#

ProsCons
Widely available and free through brokersCharting less modern than some alternatives
Large library of indicators and EAsMany low quality or misleading EAs for sale
Strong automation supportMQL is specific to MetaTrader
Works on desktop, web and mobileConditions vary greatly by broker

Frequently asked questions#

What is MetaTrader used for?#

Trading forex and CFDs, and on MT5 also stocks and futures with some brokers, with charting, indicators and automated expert advisors.

Should I use MT4 or MT5?#

MT5 is newer, more capable and increasingly the default; MT4 remains popular for its large library of existing tools.

Are MetaTrader expert advisors profitable?#

Some may be, but many sold EAs hide large risks or are overfitted; test them carefully on realistic data and demo accounts first.

Next, learn about a popular futures platform in NinjaTrader.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonNinjaTraderNinjaTrader is a futures platform and brokerage known for charting, order flow tools and C# automation. Learn its features, costs and who it suits.

Mentioned in