Setting up MetaTrader 5
This guide helps you install MetaTrader 5 (MT5), sign in with an existing or new account, and open MetaEditor, the place where you paste code and click Compile.
Install MT5
- Download the installer:
- Official: MetaQuotes MetaTrader 5 download
- Or your broker’s branded MT5 installer, if you already have an account — it ships with their servers preloaded.
- On Windows, run the installer and follow the prompts. Keep the default install path unless you have a reason to change it.
- Launch MetaTrader 5 when the install finishes.
MetaEditor is included in that same install (there is no standalone download). See Downloading and installing MetaEditor 5 if you only needed the editor, or you’re on macOS/Linux.
Create or log in to an account
You need an account to log in and use the platform. You can start with a free demo account if you don’t have a broker yet.
- In MT5, go to File → Open an Account (for creating a new demo) or File → Login to Trade Account (to log in).
- If creating a demo account:
- Choose a server (your broker’s demo server or any available demo server).
- Fill in basic details and finish. You’ll get a login and password.
- If logging in to an existing broker account:
- Select the right server from the list (ask your broker if unsure).
- Enter your login and password.
Next steps
Once MT5 is installed and you're logged in:
- Intro to MetaEditor: paste exported MQL5 and compile
- Backtesting in the MT5 desktop app: verify an export on your broker's data
- Using the Journal: read Strategy Tester errors and Print() logs
- Set a default chart template: save the chart look you want on every new chart
Related guides
- Exporting from Horizon: get the MQL5 file you’ll compile here
- Horizon + MetaTrader 5: the two ways to work
- Quickstart: hunt, approve, export