Skip to main content

MT4 EA Installation: How to Install an Expert Advisor in MetaTrader 4, Step by Step

MT4 EA installation is a simple process once you know where MetaTrader 4 stores its files. In this step-by-step guide we cover the complete workflow: downloading the expert advisor file, opening your data folder via File > Open Data Folder, copying the file into MQL4/Experts, refreshing the Navigator panel, attaching the EA to a chart, switching on the AutoTrading button and testing on a demo account before any live money is involved. Most users complete the entire MT4 EA installation in under ten minutes. If you are new to automated trading, our start-here playbook covers the fundamentals, and the documentation hub holds the full library of setup guides.

MT4 EA installation at a glance

An expert advisor is a compiled MQL4 programme that automates market analysis and order management inside the terminal. Installation is simply file placement: MT4 only loads EAs that live in the correct folder inside its data directory. The whole job breaks down into six actions with realistic timings:

  • Download the .ex4 file from your account dashboard — 1 to 2 minutes.
  • Open the data folder (File > Open Data Folder) — under 30 seconds.
  • Copy the EA into MQL4/Experts — under 1 minute.
  • Refresh the Navigator — 10 seconds.
  • Attach the EA to a chart and configure inputs — 2 to 3 minutes.
  • Enable AutoTrading and verify — 1 minute.

Allow ten minutes for a relaxed first run, including reading the input descriptions. Every subsequent installation takes two to three minutes.

Step 1: Download your EA file

Log in to your AlgoTM account dashboard and download the expert advisor you hold a licence for. You receive a file ending in .ex4, the compiled form of the MQL4 source code. Save it somewhere easy to find, such as Downloads or your Desktop. Some products ship with a .set file containing recommended parameter values — download that too and keep it next to the EA, since it lets you load a tested configuration in one click. This step takes one to two minutes.

Step 2: Open the data folder (File > Open Data Folder)

With MT4 running, open the File menu at the top of the terminal and choose Open Data Folder. Windows Explorer opens the directory where MT4 stores all of its configuration, indicators and expert advisors. Make a note of the path — you will return here whenever you add files. If you cannot see the File menu, maximise the terminal window first. This step takes under thirty seconds.

Step 3: Copy the EA into MQL4/Experts

Inside the data folder, open the MQL4 folder and then the Experts subfolder. Copy the .ex4 file and paste it there. Do not place it in MQL4/Indicators or the root MQL4 folder — the Navigator only lists EAs that live in Experts. Creating subfolders inside Experts to organise multiple strategies is fine; they appear as a collapsible tree. This step takes under a minute.

Step 4: Refresh the Navigator

Return to the terminal. Right-click anywhere inside the Navigator panel on the left of the screen and choose Refresh. If the Navigator is hidden, press Ctrl+N to show it, or use View > Navigator. Expand the Expert Advisors branch and your EA should be listed. If it is missing, confirm the file sits in MQL4/Experts, check that its name matches the .ex4 you downloaded, and refresh again. If it still does not appear, restart the terminal — MT4 rescans the folder on startup.

Step 5: Attach the EA to a chart

Drag the EA from the Navigator onto any open chart, or select the chart and double-click the EA in the Navigator. The settings dialogue opens. Work through the Inputs tab: lot size, risk percentage, stop loss, take profit, trading hours and any news filter options. Choose conservative values for a first run and click OK. A smiley face appears in the top-right corner of the chart when the EA loads successfully; a red sad-face icon signals a problem, usually a licence issue. The official MetaTrader 4 help pages explain every input in detail. This step takes two to three minutes.

Step 6: Enable the AutoTrading button

MT4 will not place trades until AutoTrading is switched on. Click the AutoTrading button on the main toolbar so it highlights green. Also confirm your broker permits automated trading — some brokers disable algorithmic trading by default or require you to opt in during account signup. Without this, the EA runs and evaluates the market but cannot send orders. Check the Experts and Journal tabs at the bottom of the terminal for confirmation messages. This step takes under a minute.

Testing MT4 EA installation on a demo account first

The single most important rule of MT4 EA installation is to test on a demo account first. A demo terminal uses the same platform, the same folder structure and the same installation steps, so nothing about the process changes. Run the EA on demo for a minimum of three to six weeks and log results before moving any capital. The start-here playbook provides the full demo-to-live decision gate, and the Financial Conduct Authority likewise advises newcomers to practise before trading with real funds.

Troubleshooting common MT4 EA installation problems

  • EA not in the Navigator. Refresh the panel, confirm the file is in MQL4/Experts, then restart the terminal if necessary.
  • Red sad-face icon on the chart. The EA loaded but cannot initialise, usually a licence activation issue — check the Experts tab log and activate your key.
  • EA never trades. AutoTrading is off, your broker blocks algorithmic orders, or the risk inputs prevent entries. Verify each in order.
  • Download blocked by antivirus. False positives are common with compiled EAs. Restore the file from quarantine or download it again, and see the troubleshooting section of the documentation hub for more.

Frequently Asked Questions

Why is my EA not showing in the Navigator after I copied it to MQL4/Experts?

Right-click the Navigator and choose Refresh, then look under Expert Advisors. If it is still missing, verify the .ex4 file is directly inside MQL4/Experts and not in a subfolder of Indicators, then restart the terminal, which rescans the folder on startup.

What is the difference between .ex4 and .mq4 files?

The .mq4 file is the editable MQL4 source code, while the .ex4 file is the compiled version that MetaTrader 4 actually runs. For installation you only need the .ex4 file. Place it in MQL4/Experts and ignore the source unless you intend to modify the strategy yourself.

Do I have to enable AutoTrading every time I open MetaTrader 4?

Yes. The AutoTrading button resets when the terminal closes, so click it each session before expecting the EA to trade. The setting also requires your broker to allow algorithmic trading on your account; if the button will not engage, contact your broker’s support team.

Can I install an EA on a demo account using the same steps?

Yes, the MT4 EA installation process is identical on demo and live terminals. We recommend installing on demo first and forward-testing for three to six weeks, because platform behaviour and folder structure are the same while your capital is not at risk.

Explore Trading Automation

Risk disclosure: Trading foreign exchange, commodities, CFDs and cryptocurrencies carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. AlgoTM provides trading tools and technology only and does not provide investment advice, portfolio management or guaranteed returns.