Skip to content
AlgoVerdict
Menu
  • Loading …

Broker & VPS · As of 3 Nov 2026

Install MetaTrader 5 and Run an EA: Step-by-Step Guide with Video

Eleven steps from installation to a running Expert Advisor: download MT5 from your broker, one folder per account, log in with the right server, allow algo trading, copy the .ex5 file into the Experts folder, attach it to the right chart, load the .set file and check that the EA runs.

AlgoVerdict editorial team, responsible: Pitt PetruschkeUpdated

On this page

An Expert Advisor (EA) is a program that trades on its own inside MetaTrader. What an EA is and what to look for is covered in What is an Expert Advisor?. This guide shows step by step how to install MT5 and safely get an EA you bought or downloaded running.

You need: a Windows PC or VPS, your broker login (a demo account first, ideally) and the EA's .ex5 file, possibly with a .set file. The drawings show the English MT5 interface.

Install MetaTrader 5 and run an EA: video walkthrough · 1:18 min · no sound, captions available
Chapters
  1. 0:031. Download MT5 from your broker
  2. 0:102. Install, one folder per account
  3. 0:163. Log in to your trade account
  4. 0:234. Allow algo trading in the options
  5. 0:295. Copy the EA into the Experts folder
  6. 0:366. Refresh the Navigator
  7. 0:427. Drag it onto the right chart
  8. 0:498. Allow algo trading in the EA dialog
  9. 0:559. Load the settings (.set)
  10. 1:0210. Switch on the Algo Trading button
  11. 1:0811. Check that the EA runs

The guide in 11 steps

  1. Step 1: Download MT5 from your broker

    Download MetaTrader 5 from your broker’s client area if you can: that installer already knows the broker’s servers. The generic installer from metatrader5.com works too; then you search for the server by name when you log in.

    Browser showing a broker’s platform page. The download button for MetaTrader 5 for Windows and the downloaded file mt5setup.exe are highlighted.Web browserhttps://www.your-broker.example/platforms/metatrader-5Trading platformsDownload the terminal with the servers of this broker preset.MetaTrader 5 for WindowsDesktop terminal · 64-bitDownloadOther platformsMetaTrader 5 for macOSMetaTrader 5 for iOS / AndroidWebTerminalmt5setup.exeDownload complete · Open file12
    Open drawing full size
  2. Step 2: Install, one folder per account

    In the setup click Settings and enter a separate installation folder, for example C:\Trading\Broker-MT5-Demo. For every further account install again into another folder. Demo and live then run separately and never get in each other’s way.

    MetaTrader 5 setup window with the Settings button highlighted, next to it the dialog with the installation folder C:\Trading\Broker-MT5-Demo.MetaTrader 5 SetupSetupSettingsNext >CancelSettingsInstallation folderC:\Trading\Broker-MT5-DemoProgram groupBroker MT5 DemoOpen the broker website after installationNext >Back12
    Open drawing full size
  3. Step 3: Log in to your trade account

    Open File → Login to Trade Account and enter login, password and server exactly as they appear in the broker’s email. The server decides demo or live, for example Broker-Demo or Broker-Live03.

    MetaTrader 5 with the File menu open and Login to Trade Account highlighted. On the right the login dialog with login, password and the highlighted Server field “Broker-Demo”.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesScriptsServicesMarketEURUSD, H1Euro vs US DollarTradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 msNew ChartProfilesCloseCtrl+F4Save As PictureOpen Data FolderCtrl+Shift+DOpen an AccountLogin to Trade AccountLogin to MQL5.communityExitLoginLogin:12345678Password:••••••••••Server:Broker-DemoSave passwordOKCancel123
    Open drawing full size
  4. Step 4: Allow algo trading in the options

    Under Tools → Options → Expert Advisors tick Allow algorithmic trading. The option Disable algorithmic trading when the account has been changed switches algo trading off when you change accounts. It stops a demo EA from trading live by accident; keep it on if you switch between accounts.

    Options dialog on the Expert Advisors tab. The tab, the Allow algorithmic trading checkbox and the option to disable algo trading on account change are highlighted.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesScriptsServicesMarketEURUSD, H1Euro vs US DollarTradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 msOptionsServerChartsTradeExpert AdvisorsNotificationsEmailCommunityAllow algorithmic tradingDisable algorithmic trading when the account has been changedDisable algorithmic trading when the profile has been changedDisable algorithmic trading when the chart symbol or period has been changedAllow DLL imports (potentially dangerous, enable only for trusted applications)Allow WebRequest for listed URL:OKCancel123
    Open drawing full size
  5. Step 5: Copy the EA into the Experts folder

    Open File → Open Data Folder and go to MQL5\Experts. Paste the EA’s .ex5 file there. If the vendor also ships libraries or include files, they go into the folders of the same name under MQL5.

    File menu with Open Data Folder highlighted, next to it File Explorer in the MQL5\Experts folder with the file MyEA.ex5 highlighted.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesScriptsServicesMarketEURUSD, H1Euro vs US DollarTradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 msNew ChartProfilesCloseCtrl+F4Save As PictureOpen Data FolderCtrl+Shift+DOpen an AccountLogin to Trade AccountExperts… › Terminal › D0E8… › MQL5 › ExpertsNameTypeExamplesFile folderAdvisorsFile folderMyEA.ex5EX5 filePaste the .ex5 file here (Ctrl+V)12
    Open drawing full size
  6. Step 6: Refresh the Navigator

    In the Navigator (Ctrl+N) right-click Expert Advisors and choose Refresh. The EA then appears in the list. Restarting the terminal does the same.

    Navigator with the Expert Advisors folder highlighted, the context menu entry Refresh and the newly listed MyEA.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesMyEAScriptsServicesMarketEURUSD, H1Euro vs US DollarTradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 msCreate in MetaEditorRefresh123
    Open drawing full size
  7. Step 7: Drag it onto the right chart

    Open the chart and timeframe the EA is built for, for example EURUSD H1. Drag the EA from the Navigator onto that chart. If your broker adds a suffix to symbols, such as EURUSD.raw, use exactly that symbol.

    MetaTrader 5: the EA MyEA is dragged from the Navigator onto the EURUSD chart. The Navigator entry, the chart label EURUSD, H1 and the H1 timeframe button are highlighted.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesMyEAScriptsServicesMarketEURUSD, H1Euro vs US DollarTradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 msMyEA123
    Open drawing full size
  8. Step 8: Allow algo trading in the EA dialog

    Dropping the EA opens its properties. On the Common tab tick Allow Algo Trading. Only enable Allow DLL imports if the vendor requires it and you trust them.

    EA properties window on the Common tab. The tab, the Allow Algo Trading checkbox and the OK button are highlighted.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesMyEAScriptsServicesMarketEURUSD, H1Euro vs US DollarTradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 msMyEA 1.00CommonInputsDependenciesOKCancelResetCommonAllow Algo TradingAllow DLL importsOnly if the vendor requires it — and only for EAs you trust.SignalsAllow modification of Signals settings123
    Open drawing full size
  9. Step 9: Load the settings (.set)

    The Inputs tab lists the parameters. If the vendor gave you a .set file, load it with Load and confirm with OK. Then check lots or risk before the EA trades.

    Inputs tab with the parameter list. The tab, the Load button, the loaded file MyEA_EURUSD_H1.set and the OK button are highlighted.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesMyEAScriptsServicesMarketEURUSD, H1Euro vs US DollarTradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 msMyEA 1.00CommonInputsDependenciesOKCancelResetVariableValueLots0.01RiskPercent1.0MagicNumber12345MaxSpreadPoints20TradeFridaytrueLoadSaveMyEA_EURUSD_H1.set1234
    Open drawing full size
  10. Step 10: Switch on the Algo Trading button

    The Algo Trading button in the toolbar is the master switch for every EA in the terminal. It must be on (green icon), otherwise no EA trades, even with all the ticks set in the dialogs.

    MetaTrader 5 toolbar with the Algo Trading button switched on and highlighted, and the active EA icon next to MyEA at the top right of the chart.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesMyEAScriptsServicesMarketEURUSD, H1Euro vs US DollarMyEATradeExposureHistoryNewsMailboxCalendarExpertsJournalSymbol Ticket Time Type Volume PriceBalance: 10 000.00 USD Equity: 10 000.00 Free margin: 10 000.00For Help, press F1Default12.4 ms12
    Open drawing full size
  11. Step 11: Check that the EA runs

    The EA’s name and icon sit top right on the chart; a blue icon means it may trade, a grey one means algo trading is off. In the Toolbox the Experts tab shows “loaded successfully”, the Journal tab shows connection messages and errors.

    Chart with the EA icon at the top right highlighted, below it the Toolbox with the Experts and Journal tabs highlighted and the message “expert MyEA loaded successfully”.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesMyEAScriptsServicesMarketEURUSD, H1Euro vs US DollarMyEATradeExposureHistoryNewsMailboxCalendarExpertsJournal10:02:14.311 MyEA (EURUSD,H1) expert MyEA (EURUSD,H1) loaded successfully10:02:14.402 MyEA (EURUSD,H1) initialized · risk 1.0 % · magic 12345For Help, press F1Default12.4 ms123
    Open drawing full size

Common errors and fixes

SymptomCauseFix
EA icon on the chart is grey, no tradesAlgo Trading button off or Allow Algo Trading unticked in the EA dialogswitch the button on, open the EA properties with F7 and tick the box
Order fails with “AutoTrading disabled by client”algo trading switched off in the terminalas above; switch it on again after an account change
EA does not trade, Experts tab reports an unknown symbolthe broker uses a suffix such as EURUSD.raw or EURUSD.mattach the EA to the chart with the suffix; if the EA has a symbol or suffix input, set it there
“Trade is disabled”logged in with the investor password, symbol not tradeable on this account type, or market closedlog in with the master password, check the symbol in Market Watch, mind the trading hours
Experts tab says DLL calls are not allowedthe EA needs a DLLonly for vendors you trust: Allow DLL imports in the options and in the EA dialog
Nothing runs after switching accountsDisable algorithmic trading when the account has been changed switched algo trading offswitch the Algo Trading button on again and check the chart icon
EA missing in the Navigatorfile in the wrong folder (program folder instead of data folder) or only the .mq5 sourcecopy into MQL5\Experts via Open Data Folder; compile a .mq5 in MetaEditor first

What next?

To keep the EA running while your computer is off, it belongs on a VPS: Set up a VPS for MetaTrader. How to choose the risk per trade is in Position sizing and risk per trade, and why a demo test before going live is a must is explained in Backtesting and forward testing.

Frequently asked questions

Where do I put an EA's .ex5 file?

In the terminal's data folder under MQL5\Experts. Open it in MT5 via File → Open Data Folder, then refresh the Navigator with a right-click on Expert Advisors → Refresh.

Why is my EA not trading although it is on the chart?

Usually the Algo Trading button in the toolbar is off or Allow Algo Trading is unticked in the EA dialog; the EA icon at the top right of the chart is then grey. Other causes are a wrong symbol with a broker suffix, a login with the investor password or a closed market.

Should I start an EA on a demo account first?

Yes. Let it run for a few days on a demo account with the same broker and check the Experts and Journal tabs for errors. Only then switch to live with small risk.

Can I run several MT5 terminals on one computer?

Yes. Install each terminal into its own folder, for example one for demo and one for live. With portable mode all data of a terminal then sits in its folder.

Want more tests like this?

The digest arrives on Sundays with new and updated tests based on real accounts. Only when there is news, unsubscribe anytime. About the digest

By subscribing you agree to receive the digest by email. You confirm via a link (double opt-in) and can unsubscribe anytime via the link in every email. Details in the privacy policy.