Guide · MetaTrader 5 · Updated August 2026

MetaTrader 5 automated trading: a setup guide

MetaTrader 5 runs automated software happily — once four things are true. Most setup failures are one of the four, and none are obvious from the error messages.

What you need

An MT5 account with a broker · the 64-bit terminal · algorithmic trading enabled · a machine that stays awake. Miss one and the software runs but never trades.

On this page
  1. Setup, step by step
  2. The symbol-name trap
  3. The sleep problem
  4. VPS or your own PC?
  5. What about Mac?
  6. Common faults, decoded

Setup, step by step

1

Install MT5 from your broker and log in

Their installer ships with their server list. You need account number, password, and the exact server string (e.g. ICMarketsSC-Demo). Confirm a live ping bottom-right.

2

Enable algorithmic trading

Tools → Options → Expert Advisors → Allow algorithmic trading, then check the Algo Trading toolbar button is active. It ships OFF by default — and when off, MT5 refuses automated orders with no visible error.

3

Show your instruments

Right-click Market Watch → Show All. A hidden symbol can't be traded programmatically. Note the exact spellings — next section.

4

Disable sleep

Windows: Settings → System → Power → sleep Never. macOS: Displays → Advanced → prevent automatic sleeping.

5

Run on demo first

Same servers, zero cost — a week on demo surfaces every fault on this page.

The symbol-name trap

You configure EURUSD; the bot says the symbol doesn't exist; the chart is right there. The cause is nearly always a broker suffix: the same instrument lists as EURUSD.i, EURUSD-ECN, EURUSD.raw or EURUSDm depending on account type, and software must request the exact string. Check Market Watch and configure that — or use software that resolves suffixes automatically at connect.

The sleep problem

The failure that costs real money, and almost no guide mentions it: when a computer sleeps, every program stops — including MT5. Positions sit unmanaged (broker-side stops still protect, but nothing moves them to breakeven or reacts to news), and it's silent: everything looks fine when you return.

Fixes, in ascending reliability: disable sleep in the OS · software that actively holds the machine awake · a VPS with no sleep state at all. A closed laptop lid suspends most machines regardless of settings — laptops are poor hosts for anything unattended.

VPS or your own PC?

Your own PCVPS
CostNothing extra~$10–30/month
UptimePower cuts, Windows updates, closed lids Datacentre power and network
Good forTesting and demo runs Anything unattended or on funded capital

Reasonable path: demo at home, VPS before real capital. On a prop account, treat the VPS as part of the attempt's cost — an evaluation fee lost to a Windows update is an expensive lesson.

What about Mac?

The MT5 terminal has a macOS build; the Python integration most trading tools rely on is Windows-only, and always has been. Mac options: run Windows in a VM or on a VPS, use software that bundles a compatibility layer to run the Windows terminal locally, or pick a tool that doesn't depend on that integration. Check which one a product does before assuming your Mac is supported.

Common faults, decoded

SymptomUsual cause
Connects but never trades Algo trading disabled — or entry conditions genuinely unmet; read the log
"Symbol not found"Broker suffix, or symbol hidden in Market Watch
Login fails, credentials correctServer string doesn't match the terminal exactly
Orders rejectedMargin, closed market, or a stop too close to price
Stops overnight, resumes when you returnThe machine slept
Works on demo, fails on liveDifferent suffixes or algo trading off on the live terminal

Velox handles the setup for you

Resolves broker suffixes at connect, holds the machine awake while trading, and detects a resume-from-sleep and reconnects — three faults above, removed by design.

Download Velox

Trading a funded account? Read trading bots and prop firms first.

Velox is trading software, not a broker, fund, or financial adviser, and nothing on this page is investment advice. Trading forex carries a substantial risk of loss and is not suitable for everyone. Prop-firm rules referenced here change frequently and differ between firms — always confirm the current rules with your own firm before trading an automated strategy on their capital. Any research figures cited are drawn from historical backtests on past market data; past results do not indicate future performance, and Velox makes no profit guarantee of any kind.