Guide · MetaTrader 5 · Updated August 2026

MetaTrader 5 automated trading: a setup guide

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

What you need

An MT5 account with a broker, the 64-bit terminal installed, algorithmic trading enabled, and a machine that stays awake whenever the market is open. Miss any one and the software runs but never trades.

On this page
  1. What you actually need
  2. Setting up, step by step
  3. The symbol-name trap
  4. The sleep problem nobody warns you about
  5. VPS or your own PC?
  6. What about Mac?
  7. Common faults and what they mean

What you actually need

Setting up, step by step

1

Install MT5 and log in

Use your broker's download link. Log in with your account number, password and server. Confirm the connection status in the bottom-right of the terminal shows a live connection with a ping figure, not "no connection".

2

Enable algorithmic trading

Tools → Options → Expert Advisors → Allow algorithmic trading. Then check the Algo Trading button in the toolbar is active. MT5 ships with this off by default, and when it's off the terminal simply refuses automated orders — usually with no visible error at all.

3

Make your instruments visible in Market Watch

Right-click Market Watch → Show All. A symbol that isn't visible in Market Watch can't be traded programmatically, even if it exists at the broker.

4

Note the exact symbol names

Read the spelling in Market Watch character by character. This is the trap in the next section and it catches almost everyone once.

5

Disable sleep on the machine

Windows: Settings → System → Power → Screen and sleep → set sleep to Never. macOS: System Settings → Displays → Advanced → prevent automatic sleeping.

6

Run on demo before live

Every broker offers demo accounts on the same server infrastructure. A week on demo costs nothing and surfaces exactly the problems this page lists.

The symbol-name trap

You configure a bot to trade EURUSD. It reports that the symbol doesn't exist. The chart is right there in front of you.

The cause is nearly always a broker suffix. Brokers commonly list the same instrument as EURUSD.i, EURUSD-ECN, EURUSD.raw, EURUSDm or similar, depending on account type. Automated software must request the broker's exact string — a generic "EURUSD" matches nothing.

Check the spelling in Market Watch and configure that. Better software resolves suffixes automatically at connect; if yours doesn't, you'll be typing them in by hand.

The sleep problem nobody warns you about

This is the failure that costs real money, and almost no setup guide mentions it.

When a computer sleeps, every program on it stops — including MetaTrader 5. Not "runs slowly". Stops. No scanning, no order management, no stop-loss adjustment. If your machine sleeps at 1am with two positions open, those positions sit unmanaged until you wake it up. Their broker-side stop-losses still protect you — but nothing moves them to breakeven, nothing takes partial profit, and nothing reacts to news.

Worse, it's silent. The software looks fine when you return, because from its perspective almost no time passed.

Three fixes, in ascending order of reliability: disable sleep in the OS; use software that actively holds the system awake while it trades; or run on a VPS that has no sleep state at all. Note that a closed laptop lid suspends most machines regardless of power settings — laptops are a poor host for anything unattended.

VPS or your own PC?

Your own PCVPS
CostNothing extra~$10–30/month
UptimePower cuts, Windows updates, accidental shutdowns Datacentre power and network
LatencyYour home connection Often located near broker servers
Good forTesting, demo runs, learning the setup Anything running unattended or on funded capital

A reasonable path: demo on your own machine while you're learning what the software does, then move to a VPS before real capital is involved. If you're trading a prop-firm account, treat a VPS as part of the cost of the attempt — an evaluation fee lost to a Windows update is an expensive lesson.

What about Mac?

MetaQuotes publishes a macOS build of the MT5 terminal, so charting and manual trading work natively. Automation is a different question: the Python integration many trading tools are built on is published for Windows only, and there has never been a macOS build of it.

So Mac users have three options — run Windows in a virtual machine or on a VPS, use software that bundles a compatibility layer to run the Windows terminal on the Mac, or choose a tool that doesn't depend on that integration. Check which of those a given product does before assuming your Mac is supported.

Common faults and what they mean

SymptomUsual cause
Software connects but never places a trade Algorithmic trading disabled in MT5, or the strategy's entry conditions genuinely aren't met — check the log before assuming a bug
"Symbol not found"Broker suffix, or symbol hidden in Market Watch
Login fails with correct credentials Server name mismatch — it must match the terminal string exactly
Orders rejected at the broker Insufficient margin, market closed, or a stop level too close to price
Everything stops overnight, resumes when you return The machine slept — see above
Works on demo, fails on live Different account type, different symbol suffixes, or algo trading not enabled on the live terminal

Velox handles the setup for you

Velox resolves broker symbol suffixes automatically at connect, holds the machine awake while it trades, and detects a resume-from-sleep and reconnects rather than scanning on a dead link — three of the 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.