SonicAi Gold
← All articles How to Set Up MetaTrader 5: A Step-by-Step Guide how-to

How to Set Up MetaTrader 5: A Step-by-Step Guide

Table of Contents

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.

Infographic showing how to set up MetaTrader 5 with a laptop displaying trading charts and a desk workspace.
Infographic showing how to set up MetaTrader 5 with a laptop displaying trading charts and a desk workspace.

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

  1. Download the mt5setup.exe file from your broker or metatrader5.com.
  2. Right-click it and choose Run as administrator to avoid permission errors when MT5 writes to Program Files.
  3. Accept the license agreement and click Next through the wizard.
  4. 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.
  5. 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.

  1. Download the macOS build from your broker or metatrader5.com.
  2. Open the .dmg and drag the MetaTrader 5 icon into Applications.
  3. On first launch, macOS may show a security warning. Open System Settings → Privacy & Security, find MetaTrader 5, and click Open Anyway.
  4. 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

  1. Open the App Store and search for MetaTrader 5 by MetaQuotes Ltd.
  2. Tap Get, then Install.
  3. Open the app and tap Settings → New Account to log in or open a demo.
  4. 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

  1. Open Google Play and search for MetaTrader 5 by MetaQuotes Ltd.
  2. Tap Install.
  3. Open the app, tap the hamburger menu, then Manage Accounts → + to log in or open a demo.
  4. 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
Pro Tip Install on desktop first, log in, and confirm your charts load. Then install on mobile and log in with the same credentials. If mobile fails to connect but desktop works, the problem is almost always the phone's network or battery settings, not your account.

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:

  1. Open MT5 and click File, then Open an Account
  2. Pick your broker from the list, or search by name
  3. Choose Open a Demo Account
  4. Enter your name, email, and phone number
  5. Select your starting balance and account currency
  6. 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.

Pro Tip Set your demo balance close to your real planned deposit. A $100,000 demo balance teaches bad habits, because position sizes feel meaningless. A $2,000 demo forces the same discipline you will need with real money.

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.

  1. Log in to your broker's client portal and fund a live account.
  2. In MT5, click File → Login to Trade Account.
  3. Enter the live login, password, and server name. The server is usually different from the demo server (for example, Broker-Live instead of Broker-Demo).
  4. Confirm the account number in the bottom-right corner matches your live account.
Watch Out Start live with the smallest position size your broker allows, even if your demo plan called for larger. Real money changes how you react to a losing trade, and the first few live trades are about confirming your process, not maximizing profit.
Key Takeaway A demo account is only useful if you use it like a live account. Set a realistic balance, follow a written plan, and log every trade. Two disciplined weeks on demo will teach you more than two months of random clicking.

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:

Get started today →

  1. Click File, then Login to Trade Account
  2. Type your login number
  3. Type your password
  4. Open the server dropdown and pick your broker's server
  5. 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
Watch Out Three failed login attempts can temporarily lock your account at some brokers. If you are unsure of your credentials, reset the password through your broker's client portal instead of guessing.

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:

  1. Press Ctrl+U or click View, then Market Watch
  2. Right-click inside the Market Watch list
  3. Click Symbols, then find the Metals group
  4. Select XAUUSD and click Show
  5. 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.

Key Takeaway Ninety percent of setup failures come down to one field: the server name. Get that right, and the rest usually falls into place.

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.