How to Set Up MetaTrader 5 From Scratch (Step-by-Step for Beginners)
MetaTrader 5 is the trading platform used by millions of retail traders worldwide to access forex, commodities, indices, and stocks. Expert Advisors that automate XAUUSD gold trading run exclusively inside MT5, which makes setting up the platform correctly the first skill every trader needs. This guide walks through every step in order: system requirements, download, account setup, chart configuration, and Expert Advisor installation. Additionally, this article covers how to set up MetaTrader 5 effectively for optimal trading performance.
If you want to understand how these programs work before completing your setup, the guide on what is an Expert Advisor covers the full picture. The steps below focus entirely on getting MT5 installed and running on your machine.
Table of Contents
What Is MetaTrader 5 and Why Do Traders Use It?
MetaTrader 5 is a multi-asset trading platform developed by MetaQuotes Software Corp. in 2010. It supports forex, stocks, futures, and commodities including XAUUSD gold. Traders use it because it includes 38 built-in technical indicators, 21 chart timeframes, 6 order types, and MQL5, the programming language that powers automated Expert Advisors.
MetaTrader 5 is the successor to MetaTrader 4. While MT4 was designed for forex-only trading, MT5 expands to cover exchange instruments and futures alongside forex markets. The key difference between the two platforms is that MT5 uses a separate order and trade accounting system, supports hedging and netting modes, and provides a broader selection of order execution types.
For gold traders specifically, MT5 is the platform of choice because XAUUSD liquidity is deep and most regulated brokers offering gold CFD trading provide MT5 access. The platform’s built-in XAUUSD charting tools, combined with the ability to run Expert Advisors at 24/5 market hours, make it the standard choice for automated gold trading.
What Are the System Requirements for MetaTrader 5?
MetaTrader 5 requires Windows 7 or higher (64-bit recommended), a minimum of 2 GB RAM, and 500 MB of free disk space. MacOS users need version 10.14 (Mojave) or higher. The iOS app requires iOS 15.0 or later, and the Android app supports Android 4.0 and above.
The Windows desktop version is the only version suitable for running Expert Advisors. Mobile and WebTrader versions do not support EA execution because EAs require a continuous active connection that personal phones cannot guarantee. For traders who want their EA running 24/5 without keeping a personal PC on, a Virtual Private Server running Windows is the standard solution. Many brokers including Vantage Markets and VT Markets offer free VPS hosting above a minimum deposit threshold.
| Platform | OS Version | Min RAM | Disk | EA Trading |
|---|---|---|---|---|
| Windows | Windows 7 or higher (64-bit recommended) | 2 GB (4 GB recommended) | 500 MB | Best option |
| macOS | 10.14 (Mojave) or higher | 2 GB | 500 MB | Compatible |
| iOS | iOS 15.0 or later | Device dependent | ~50 MB | Monitoring only |
| Android | Android 4.0 and above | Device dependent | ~50-100 MB | Monitoring only |
| Web Browser | Any modern browser | N/A | No install | Not suitable |
How Do You Download and Install MetaTrader 5 on Windows?
To download MetaTrader 5 on Windows, visit MetaQuotes.net or your broker’s download page, run the mt5setup.exe installer, accept the license agreement, and click Finish. The platform opens automatically after installation. Total installation time is under 5 minutes on a standard broadband connection.
1. Go to the official download page. Visit MetaQuotes.net/download and click the Windows download button, or download directly from your broker’s website. Broker-supplied installers include pre-configured server settings, which speeds up login.
2. Verify the installer signature. Right-click the mt5setup.exe file, select Properties, and go to the Digital Signatures tab. Confirm the signature belongs to MetaQuotes Software Corp. This confirms the file is authentic.
3. Run the installer as administrator. Right-click mt5setup.exe and select Run as administrator. Accept the license agreement. The installer suggests C:\Program Files\MetaTrader 5 as the default directory. Click Next to continue.
4. Wait for extraction and click Finish. The installer copies all necessary files automatically. When complete, the Launch MetaTrader 5 checkbox is selected by default. Keep it enabled and click Finish to open the platform.
5. Confirm the connection. Check the bottom-right corner of the platform. A green icon and a ping value (for example, 45ms) indicate a successful connection. A red icon means you need to verify your credentials or internet connection.
How Do You Open a Demo Account in MetaTrader 5?
To open a demo account in MetaTrader 5, click File > Open an Account, select your broker from the list, choose Demo Account, fill in your name, email, and deposit amount, then click Next. MT5 sends login credentials to your email. A demo account uses virtual funds and carries no financial risk.
Every beginner needs to start with a demo account before depositing real money. A MetaTrader 5 demo account connects to a real broker server and receives live market prices, but all trades execute with virtual funds. This means you practice with the same conditions, spreads, and execution speeds that apply to a live account.
Step A — Open the account wizard. Click File in the top toolbar and select Open an Account. A broker search window opens.
Step B — Choose your broker. Type your broker’s name into the search box and select it from the list. Click Next. Select Demo Account and click Next again.
Step C — Fill in your details. Enter your name, email, preferred account currency, and virtual deposit amount. Set the virtual deposit to match what you plan to use on a live account. Click Next.
Step D — Receive your login credentials. MT5 displays your account number and password on screen, and the broker sends them to your email. A green connection icon in the bottom-right corner confirms the account is active.
Practicing with $50,000 in virtual funds when you plan to deposit $1,000 produces misleading lot sizing and risk feedback. Set the virtual balance to a figure that reflects your real trading capital from the start.
How Do You Navigate the MetaTrader 5 Interface as a Beginner?
The MetaTrader 5 interface has 5 main areas: the Market Watch panel, the Navigator window, the chart workspace, the Toolbox, and the main toolbar. Market Watch shows live prices. Navigator manages accounts and Expert Advisors. The Toolbox shows open trades and account history.
Understanding where each element lives in the interface saves time and reduces confusion when placing trades or installing Expert Advisors. The MT5 interface is organised around five core windows, each accessible from the View menu or using keyboard shortcuts.
| Panel | Shortcut | What It Does | Used For |
|---|---|---|---|
| Market Watch | Ctrl + M | Shows live bid/ask prices for all instruments | Find XAUUSD, open charts, one-click trading |
| Navigator | Ctrl + N | Manages accounts, Expert Advisors, indicators | Switch accounts, attach EAs to charts |
| Toolbox | Ctrl + T | Shows open trades, history, news, calendar | Monitor positions, check EA logs |
| Data Window | Ctrl + D | OHLC price data and indicator values per bar | Check exact indicator readings |
| Economic Calendar | Toolbox > Calendar | Upcoming economic events with impact ratings | Avoid trading during high-impact releases |
The MT5 main menu follows a consistent structure across all versions: File, View, Insert, Charts, Tools, Window, and Help. The Help section contains MetaTrader 5’s built-in learning system with over 100 usage tips. Beginners need to spend time in the Help section and practice opening, closing, and re-arranging the core windows before attempting to place any trades.
How Do You Find and Add XAUUSD to Your MetaTrader 5 Charts?
To add XAUUSD to MetaTrader 5, open Market Watch with Ctrl + M, right-click inside the panel, select Show All, scroll to find XAUUSD, right-click on it, and select Chart Window. Gold appears as XAUUSD on MT5 because it is priced in US dollars per troy ounce.
XAUUSD is gold priced against the US dollar. On MT5, gold is listed under this symbol because brokers price it as a currency pair, similar to EURUSD. Not all instruments are visible in Market Watch by default, which is why XAUUSD can seem missing when you first open the platform.
1. Open Market Watch. Press Ctrl + M or go to View > Market Watch. The panel opens on the left side of the screen and shows all instruments currently on your watchlist.
2. Select Show All. Right-click inside the Market Watch panel and select Show All. This expands the list to show every symbol your broker offers, including all forex pairs, metals, indices, and commodities.
3. Search for XAUUSD. Right-click again and select Symbols. In the search box, type XAUUSD. Select it from the results and click Show. XAUUSD now appears permanently in your Market Watch panel.
4. Open the chart. Right-click on XAUUSD in Market Watch and select Chart Window. An XAUUSD chart opens in the main workspace. Double-click to maximise it. Use the timeframe buttons at the top to switch between M1, M5, H1, H4, and D1.
TradingPaal Note
The TTS EA trades XAUUSD exclusively on the H1 timeframe. Set the timeframe to H1 before attaching any Expert Advisor to ensure the EA reads and executes signals on the correct chart data. Get started with the TTS EA setup once your MT5 and XAUUSD chart are ready.
How Do You Place Your First Trade in MetaTrader 5?
To place a trade in MetaTrader 5, press F9 or click New Order in the toolbar, select your symbol, choose your lot size, set a stop-loss and take-profit level, then click Buy by Market or Sell by Market. The trade appears immediately in the Toolbox under the Trade tab.
MetaTrader 5 supports 6 order types: Market Order, Buy Stop, Sell Stop, Buy Limit, Sell Limit, and Buy Stop Limit. Beginners typically use two of them. A market order executes immediately at the current price. A pending order enters at a price you specify in advance.
1. Open the New Order window. Press F9 or click New Order in the top toolbar. You can also right-click on a chart and select Trading > New Order
2. Select your symbol and lot size. Confirm the Symbol dropdown shows XAUUSD. Set your Volume in lots. For XAUUSD, 0.01 lots represents 1 troy ounce. Set a Stop Loss and Take Profit price to manage risk automatically.
3. Click Buy by Market or Sell by Market. The trade executes at the current ask price for a Buy, or bid price for a Sell. Press Ctrl + T to open the Toolbox and click the Trade tab to see your open position.
Risk Warning
Trading leveraged instruments including gold CFDs carries a high risk of loss. Always set a stop-loss on every trade. Practice on a demo account until your strategy produces consistent results before trading with real funds. A significant percentage of retail investor accounts lose money when trading CFDs.
How Do You Install an Expert Advisor in MetaTrader 5?
To install an Expert Advisor in MetaTrader 5, click File > Open Data Folder, navigate to MQL5 > Experts, paste your .ex5 file into that folder, then restart MT5. The EA appears in the Navigator panel. Drag it onto your chart and enable the Algo Trading button to activate it.
An Expert Advisor is a program written in MQL5 that runs inside MetaTrader 5. Expert Advisors analyse market conditions, calculate position sizes, place orders, manage stop-loss levels, and close trades without manual input. Installing an EA takes under 2 minutes once you have the .ex5 file from your provider.
1. Open the Data Folder. Click File in the top menu and select Open Data Folder. A Windows Explorer window opens at the MT5 data directory.
2. Navigate to the Experts folder. Open the MQL5 folder, then open the Experts folder inside it. The full path is: [MT5 Data Folder] / MQL5 / Experts.
3. Paste the .ex5 file. Copy your EA’s .ex5 file into the Experts folder. The file must be in .ex5 format for MT5. MT4 EA files use .ex4 format and are not compatible with MT5.
4. Refresh the Navigator panel. Return to MT5 and press Ctrl + N to open the Navigator window. Right-click on Expert Advisors and select Refresh. Your new EA now appears in the list.
5. Drag the EA onto your chart. Locate your XAUUSD H1 chart. Drag the EA from Navigator onto the chart. An input settings window appears. Configure the EA parameters and click OK. The EA name and a smiley face icon appear in the top-right corner confirming it is active.
6. Enable the Algo Trading button. Click the Algo Trading button in the main toolbar until it turns green. Without this, the EA analyses markets but cannot place any trades. Always confirm this button is green before leaving MT5 to run an EA overnight.
Key Takeaway
The Algo Trading button is the most commonly missed step. If your EA is attached to the chart but not placing trades, check this button first. It must be green, and automated trading must also be allowed in the EA’s individual settings window when you attach it to the chart.
What Are the Most Common MetaTrader 5 Problems and How Do You Fix Them?
The 4 most common MetaTrader 5 problems are: No Connection (check your internet and broker server name), Invalid Account (verify credentials with your broker), EA not trading (enable the Algo Trading button), and Market is Closed (check trading session hours for your instrument).
| Problem | Likely Cause | Fix |
|---|---|---|
| No Connection | Firewall, wrong server, internet issue | Check internet, verify broker server name, allow MT5 through firewall |
| Invalid Account | Wrong login number, password, or server | Check broker email for correct server name and account number |
| EA Not Trading | Algo Trading button disabled | Click the Algo Trading button in toolbar until it turns green |
| Market is Closed | Weekend or instrument holiday | XAUUSD trades 24/5. Avoid Monday open and Friday close for gold |
| XAUUSD Not Visible | Instrument hidden in Market Watch | Right-click Market Watch, select Symbols, search XAUUSD, click Show |
| Charts Load Slowly | Too many open charts or indicators | Close unused charts, limit indicators to 2-3 per chart |
Frequently Asked Questions About Setting Up MetaTrader 5
Is MetaTrader 5 free to download and use?
Yes, MetaTrader 5 is free to download and free to use. MetaQuotes does not charge traders for the platform itself. Costs come from your broker in the form of spreads, commissions, and swap fees on open positions. The MQL5 Marketplace, where you can purchase third-party Expert Advisors and indicators, operates separately and involves optional paid purchases.
What is the difference between MetaTrader 4 and MetaTrader 5?
MetaTrader 5 offers more timeframes (21 vs 9 in MT4), more order types (6 vs 4), and supports multiple asset classes including stocks and futures. MT4 trades forex only. MT5 uses MQL5, which is faster than MT4’s MQL4. Expert Advisors from MT4 are not compatible with MT5 and require rewriting in MQL5 to function on the newer platform.
Can I use MetaTrader 5 on a Mac?
Yes, MetaTrader 5 runs on macOS 10.14 (Mojave) and higher. Mac users download the MT5 .dmg installer from the official MetaQuotes site or their broker’s website and drag the application into the Mac Applications folder. Expert Advisors run on the Mac version. For traders running EAs 24/5, a Windows-based VPS provides more stable uptime than a personal Mac machine.
How long should I use a demo account before switching to a live account?
Traders need a minimum of 30 trading days on a demo account before opening a live account. A 30-day period covers at least 4 full weekly cycles and several economic data releases that impact XAUUSD. The goal is not a specific profit target on demo but executing the same process consistently, following risk rules and recording every trade, before real money is involved.
Does MetaTrader 5 work for trading gold (XAUUSD)?
Yes, MetaTrader 5 is the primary platform for retail gold trading. XAUUSD is available on MT5 through every major forex broker that offers commodity CFDs. The platform’s 21 timeframes, built-in economic calendar, and Expert Advisor support make it well-suited for automated XAUUSD strategies. Gold trades on MT5 from Sunday 23:00 to Friday 22:00 GMT, though exact hours vary by broker.
What is an Expert Advisor and how does it work in MT5?
An Expert Advisor is an automated trading program written in MQL5 that runs inside MetaTrader 5. An EA monitors market conditions, executes trades, manages stop-loss and take-profit levels, and closes positions automatically based on pre-programmed rules. The EA runs as long as MT5 is open and connected to the broker’s server.
Do I need to leave my computer on for an Expert Advisor to trade?
Yes, MetaTrader 5 and your computer must stay on and connected for an EA to trade. The standard solution is a Virtual Private Server running Windows 24/5 so the EA operates without depending on your personal machine being online. Many brokers including Vantage Markets and VT Markets offer free VPS hosting for accounts above a minimum deposit threshold.
Can I have multiple accounts open in MetaTrader 5 at the same time?
Yes, MetaTrader 5 supports multiple accounts within a single installation. You switch between accounts using the Navigator panel, which lists all accounts you have logged into on that installation. Only one account can trade actively at a time per MT5 instance. To run EAs on two different accounts simultaneously, install MT5 in 2 separate directories or run two separate VPS environments.
Continue Learning About Automated Gold Trading
Once your MT5 setup is complete, these guides cover the next steps for trading XAUUSD with an Expert Advisor:
What Is XAUUSD? — Understand the gold market, why it moves, and why EAs trade it on MT5.
Ready to Run a Gold EA on Your MT5 Setup?
You have MT5 installed and XAUUSD on your chart. The next step is finding an Expert Advisor with a verified track record. The TTS EA trades XAUUSD on the H1 timeframe with Myfxbook-verified live results and fixed-risk position sizing.
Read the TTS EA ReviewRisk Disclosure
Trading forex and gold CFDs involves significant risk of loss. Expert Advisors are automated tools and do not guarantee profits. Past performance does not guarantee future results. Only trade with capital you can afford to lose. TradingPaal.com is an affiliate and educational website. We receive compensation from broker referrals. Always read your broker’s full risk disclosure before depositing.