MetaTrader 4 tutorial

How to Install MetaTrader 4 on Windows

Install MetaTrader 4 from your broker, connect it to your trading account and find the MQL4 folder where Expert Advisors and indicators go.

Beginner About 15 min(estimate) 6 stepsUpdated

Times are estimates — they vary with your computer, connection and experience.

Before you start

  • A Windows computer and permission to install software on it.
  • An account with a broker that supports MT4 (demo or live), and its login number, password and server name.

What you'll learn

  • Install your broker's copy of MT4.
  • Log in and confirm the platform is connected.
  • Find the MT4 data folder and its Experts, Indicators and Presets sub-folders.

Steps

  1. Step 1: Download MT4 from your broker

    MT4 is distributed through brokers, usually as a branded installer pre-configured with that broker's servers. Download it from your broker's official website or client area.

    Don't use MT4 installers from unofficial download sites.

  2. Step 2: Run the setup file

    Open the file, accept the Windows security prompt and the licence agreement. Choose Settings first if you want a custom installation folder.

  3. Step 3: Let the installer finish

    It downloads the platform files and creates a desktop shortcut. MT4 normally opens when it's done and may offer to open a demo account.

  4. Step 4: Log in to your trading account

    Go to File → Login to Trade Account, enter your login number and password, and select the server name your broker gave you.

  5. Step 5: Confirm you're connected

    The connection indicator in the bottom-right corner shows data traffic once you're connected. If it reads "No connection" or "Invalid account", recheck the server name and password.

  6. Step 6: Open the data folder

    Choose File → Open Data Folder, then open MQL4.

    • MQL4\Experts — Expert Advisors (.ex4 / .mq4)
    • MQL4\Indicators — custom indicators
    • MQL4\Scripts — scripts
    • MQL4\Libraries — libraries some tools need
    • MQL4\Presets — saved .set input files

Expected result

MT4 is logged in to your account, the connection indicator shows traffic, and you can open the MQL4 data folder from File → Open Data Folder.

Troubleshooting

"Invalid account"
The login, password or server doesn't match. Copy the details exactly from your broker's email or client area — demo and live accounts use different servers.
"No connection"
Check your internet connection and firewall, then right-click the connection indicator to rescan servers if your build offers it.
I have two brokers' MT4 installed and my EA only shows in one
That's expected: each installation has its own data folder. Copy the EA into the data folder of each terminal you use.

Next tutorial

How to Install an Expert Advisor in MT4

Install an Expert Advisor in MetaTrader 4: copy the .ex4 to MQL4\Experts, attach it to a chart, tick Allow live trading and switch on AutoTrading.

Continue

Related tutorials

All tutorials
  • IndicatorsBeginner

    How to Install a Custom Indicator in MT4

    Install a custom indicator in MetaTrader 4: copy the .ex4 to MQL4\Indicators, refresh the Navigator, add it to a chart and edit its inputs.

    About 10 min(estimate) 7 steps
  • MetaTrader 4Beginner

    How to Read the MT4 Experts and Journal Logs

    Use the MT4 Experts and Journal tabs to see what your EA and terminal are doing, open the log files on disk, and copy the right lines for support.

    About 10 min(estimate) 6 steps