how-to
How to Set Up MetaTrader 5: A Step-by-Step Guide
Table of Contents
- How to Set Up MetaTrader 5: From Download to First Trade
- Step 1: Download and Install MetaTrader 5 on Desktop and Mobile
- How to Open a Demo Account on MetaTrader 5
- How to Log In to MT5 and Select the Correct Trading Server
- How to Set Up XAUUSD on MT5 Using Market Watch
- MT5 Automated Trading Setup for Gold Markets
- Common Setup Errors and How to Fix Them
- Placing Your First Practice Trade and Setting Risk Controls
- Frequently Asked Questions
Last Updated: October 16, 2026
How to Set Up MetaTrader 5: From Download to First Trade
MetaTrader 5 (MT5) is a multi-asset trading platform for price data, trades, and automated strategies from one screen. This guide from SonicAi Gold covers every step, from installer to first practice trade on gold.

Most broker guides stop at installation, leaving beginners stuck at login errors, wrong servers, and empty charts. This guide covers the full path, including the parts that usually break.
Before you start, gather a few basics:
- A Windows PC, Mac, iPhone, or Android device
- A broker account, or a demo account if you do not have one yet
- A stable internet connection
What You'll Need Before You Start
Your broker sends three things after you register: a login number, a password, and a server name. The server name matters most, because MT5 will not connect without it.
If you plan to run automated gold strategies, choose a broker that supports MT5 and allows expert advisors on your account type, some brokers restrict automation, so ask before you deposit.
Step 1: Download and Install MetaTrader 5 on Desktop and Mobile
Download the MT5 installer from your broker's website or from the official MetaTrader 5 platform page. Your broker's version comes preconfigured with their servers, which saves a setup step later. The desktop installer is a small file, usually under 1 MB, because it downloads the rest of the platform during setup.
Below is the full path for Windows, Mac, iPhone, and Android.
Windows Installation
- Download the
mt5setup.exefile from your broker or metatrader5.com. - Right-click it and choose Run as administrator to avoid permission errors when MT5 writes to Program Files.
- Accept the license agreement and click Next through the wizard.
- Leave the destination folder at the default. Avoid cloud-synced folders (OneDrive, Dropbox, Google Drive), sync can lock files while MT5 runs and cause crashes.
- Click Finish. MT5 launches and opens the Open an Account wizard, covered next.
Mac Installation
MetaTrader 5 for macOS ships as a .dmg disk image, not a .pkg installer.
- Download the macOS build from your broker or metatrader5.com.
- Open the
.dmgand drag the MetaTrader 5 icon into Applications. - On first launch, macOS may show a security warning. Open System Settings → Privacy & Security, find MetaTrader 5, and click Open Anyway.
- On Apple Silicon (M1, M2, M3, or newer), the platform runs through Rosetta 2 the first time. Accept the prompt if Rosetta is not already installed.
A known Mac quirk: MT5 stores its data folder inside a hidden Library path. Click File → Open Data Folder, that is where your expert advisors, profiles, and chart templates live.
iPhone (iOS) Installation
- Open the App Store and search for MetaTrader 5 by MetaQuotes Ltd.
- Tap Get, then Install.
- Open the app and tap Settings → New Account to log in or open a demo.
- Grant notification permission for price alerts and trade confirmations.
The iOS app connects to the same account as your desktop, so watchlists, positions, and history stay in sync. Mobile is fine for checking positions and closing trades, but do initial setup on desktop where menus and charting tools are complete.
Android Installation
- Open Google Play and search for MetaTrader 5 by MetaQuotes Ltd.
- Tap Install.
- Open the app, tap the hamburger menu, then Manage Accounts → + to log in or open a demo.
- Allow notifications and background data so the app keeps a live connection when the screen is off.
Android battery optimization can silently kill the MT5 connection. If positions stop updating, open Settings → Apps → MetaTrader 5 → Battery and set it to Unrestricted.
Which Device Should You Set Up First?
| Device | Best For | Watch Out For |
|---|---|---|
| Windows | Full charting, expert advisors, backtesting | Cloud-synced install folders |
| Mac | Full charting, expert advisors | Rosetta prompt, hidden data folder |
| iPhone | Monitoring, closing trades, alerts | Limited chart tools |
| Android | Monitoring, closing trades, alerts | Battery optimization killing the connection |
How to Open a Demo Account on MetaTrader 5
A demo account is a free practice account funded with virtual money that mirrors live prices tick-for-tick. Open one inside MT5 without visiting your broker's site, the fastest way to test the platform before committing real funds.
Here is the process:
- Open MT5 and click File, then Open an Account
- Pick your broker from the list, or search by name
- Choose Open a Demo Account
- Enter your name, email, and phone number
- Select your starting balance and account currency
- Click Next, then Finish
MT5 generates your demo login and password on screen. Write them down, the platform will not show the password again, and you need it to log in from a new device.
What "Virtual Money" Actually Means
Demo funds are not real, but prices, spreads, and execution come from the same feed your broker uses for live accounts. Two consequences matter:
- Your P&L is fake, but your habits are real. Learn to enter trades without a stop-loss on demo and you will do the same on live.
- Execution is usually cleaner on demo. Slippage and requotes are more common on live accounts during news events, so a strategy that looks flawless on demo can behave differently with real money.
Treat the demo as a flight simulator: build muscle memory for opening, modifying, and closing positions before real capital is on the line.
A Structured Two-Week Practice Plan
Most beginners open a demo, place a few random trades, and call it done. A structured plan produces far more useful experience:
Days 1-3, Platform fluency. Open and close ten XAUUSD trades at 0.01 lots. Ignore profit; the goal is finding the New Order window, Toolbox, and Close Position menu without hesitation.
Days 4-7, Chart work. Add two indicators you plan to use (for example, a moving average and an RSI), save a template to reload the layout on any symbol, and practice switching timeframes and drawing trendlines.
Days 8-10, Risk controls. Set a stop-loss and take-profit before every entry, size positions so a stop-out costs no more than 1% of the demo balance, and log each trade: entry, exit, reason, result.
Days 11-14, Review. Read your log. Identify which trades followed your rules and which did not. The pattern is usually more valuable than the P&L.
Switching From Demo to Live
When your demo log shows consistent rule-following, you are ready for a live account. The switch is just a new login on the same MT5 installation.
- Log in to your broker's client portal and fund a live account.
- In MT5, click File → Login to Trade Account.
- Enter the live login, password, and server name. The server is usually different from the demo server (for example,
Broker-Liveinstead ofBroker-Demo). - Confirm the account number in the bottom-right corner matches your live account.
How to Log In to MT5 and Select the Correct Trading Server
Logging in to MT5 requires three fields: login, password, and server. All three must match your broker's details, or you will see "invalid account" or "no connection."
Follow these steps:
- Click File, then Login to Trade Account
- Type your login number
- Type your password
- Open the server dropdown and pick your broker's server
- Click OK
The server list can be long. Look for the exact name from your welcome email, including any "Live" or "Demo" suffix, the wrong server is the most common login failure we see.
If the connection still fails, check these items:
- Your password is case-sensitive
- Your broker may require a separate investor password for read-only access
- A firewall or antivirus may be blocking the terminal
How to Set Up XAUUSD on MT5 Using Market Watch
Market Watch lists every instrument your broker offers. Setting up XAUUSD on MT5 starts there, because gold will not appear on your charts until you add it.
The steps are simple:
- Press Ctrl+U or click View, then Market Watch
- Right-click inside the Market Watch list
- Click Symbols, then find the Metals group
- Select XAUUSD and click Show
- Drag XAUUSD from Market Watch onto a chart
Gold symbols vary by broker, XAUUSD, GOLD, or XAUUSD.m depending on account type.
Investor.gov's guide to trading risks explains why used products like gold CFDs can move against you quickly, which is worth reading before your first order.
MT5 Automated Trading Setup for Gold Markets
Automated trading lets a program place and manage trades based on rules you choose.
Here is the checklist:
- Click Tools, then Options, then Expert Advisors, and tick "Allow Algo Trading"
- Click the Algo Trading button in the top toolbar so it turns green
- Copy your expert advisor file into the MQL5/Experts folder
That smiley face is your proof the advisor is live. If it shows a sad face or an X, algo trading is off somewhere, usually in the toolbar or the options menu.
Gold is volatile, and automated systems carry real risk. It reports 18 consecutive winning months and a sub-1% drawdown, independently verified on MyFXBook.
| Setup Step | Time Needed | Where to Do It |
|---|---|---|
| Download and install | 5 minutes | Broker site or MetaTrader site |
| Open demo account | 3 minutes | Inside MT5 |
| Log in and pick server | 2 minutes | File menu |
| Add XAUUSD to Market Watch | 2 minutes | Market Watch panel |
| Enable algo trading | 3 minutes | Tools and Options |
| Place first practice trade | 5 minutes | New Order window |
Common Setup Errors and How to Fix Them
Most MT5 problems trace back to four causes: wrong server, wrong credentials, blocked downloads, or disabled automation.
"No connection" in the bottom right corner. Your server name is wrong or your internet dropped.
"Invalid account" at login. Your login number or password is mistyped.
Expert advisor will not attach. Algo trading is off.
XAUUSD is missing from Market Watch. Your broker may list gold as GOLD or under a different group.
Placing Your First Practice Trade and Setting Risk Controls
Place your first trade on the demo account before funding anything. The goal is to learn the order window, not to make money.
Click New Order, or press F9, and set these fields:
- Symbol: XAUUSD
- Volume: 0.01 lots, the smallest size
- Type: Market Execution
Then click Buy or Sell. Your position appears in the Toolbox at the bottom of the screen.
Set risk controls before the trade, not after.
To close the trade, right-click it in the Toolbox and choose Close Position.
Once you can open, modify, and close a trade without hesitation, you are ready to connect a live account. The service is verified on MyFXBook, and the AITech IB Partner Program adds five income streams for affiliates building residual earnings.
Frequently Asked Questions
How do I install and log in to MetaTrader 5?
Download the MT5 installer from the MetaTrader 5 website or your broker's page, then run it and follow the prompts for Windows, Mac, iOS, or Android. Once installed, open the platform and enter the login credentials your broker emailed you: account number, password, and the exact trading server name. If the server list does not show your broker, type the server name manually. After logging in, your account balance and open positions appear in the Navigator and Terminal panels.
How do I set up an XAUUSD chart in MetaTrader 5?
Open Market Watch, right-click the symbol list, and choose Symbols to find XAUUSD under the Metals category. Click Show to add it to Market Watch, then drag XAUUSD onto the chart area or right-click it and select Chart Window. For gold, a common starting point is the H1 or H4 timeframe, since lower timeframes produce more noise. You can add moving averages or support and resistance tools from the Insert menu to build a repeatable chart setup.
How do I connect an automated trading system to MetaTrader 5?
In MT5, go to Tools, then Options, and enable Algo Trading under the Expert Advisors tab. Your provider will give you either an Expert Advisor file to place in the MQL5/Experts folder or a copy-trading login to enter under the relevant connection settings. After connecting, confirm the account shows as active and that automated trading is switched on in the toolbar. Test on a demo account first so you can watch how the system places, modifies, and closes trades before risking real money.
What should I check before placing my first live trade on MT5?
Confirm three things: the correct symbol is loaded (XAUUSD, not another gold pair), your lot size matches your account size and risk tolerance, and stop-loss and take-profit levels are set before you click Buy or Sell. Use the New Order window to review the entry price, order type, and volume. Many beginners skip the stop-loss field, which leaves a position exposed to unlimited movement. Practising the same sequence on a demo account first makes the live process far less error-prone.