⚑ Tutorial

How to Install and Run an Expert Advisor on Deriv MT5

By PrimeTraderAI Team Β· May 2026 Β· 10 min

You already have an Expert Advisor (EA) ready, but don’t know how to install and run it on Deriv MT5? This tutorial will guide you from scratch: download MT5, set up the account, import the EA, compile, and run on a demo account.

πŸ“‹ Prerequisites

You’ll need: (1) a Deriv account, (2) a Deriv MT5 account enabled, (3) MT5 installed on your computer, (4) the .mq5 or .ex5 EA file (can be generated with AI β€” see our EA with AI tutorial).

Part 1: Set up MT5 on Deriv

01

Create the Deriv account

Go to deriv.com β†’ Create free account β†’ use email/Google.

02

Enable Deriv MT5

In Trader’s Hub β†’ “CFDs” section β†’ find “Deriv MT5” β†’ click “Get” β†’ choose Demo or Financial β†’ create a password

03

Save the credentials

MT5 login (number), password, and server name (e.g., “Deriv-Demo” or “Deriv-Server”). You’ll need these later.

Part 2: Download and Install MT5

04

Download MT5

On the Trader’s Hub page, click the “Download” button on Deriv MT5. Works on Windows, Mac (via Rosetta), and Linux (via Wine).

05

Install normally

Run the installer. MT5 sets everything up automatically. There’s also a web version (trade.mql5.com) if you prefer.

06

Log in

Open MT5 β†’ File β†’ Login to Trade Account β†’ paste login/password/server from step 3 β†’ Ok

Part 3: Install the EA

07

Open the data folder

In MT5: File β†’ Open Data Folder. An explorer window opens showing all the MT5 files.

08

Navigate to MQL5/Experts

Inside the folder, go to: MQL5 β†’ Experts. This is where EAs live.

09

Paste your .mq5 or .ex5 file

Copy the EA file and paste it into this folder. If it’s .mq5 (source code), you need to compile. If it’s .ex5 (compiled), it’s ready.

10

Refresh MT5

Back to MT5 β†’ Navigator (Ctrl+N) β†’ right-click “Expert Advisors” β†’ Refresh. Your EA should appear in the list.

Part 4: Compile the EA (if .mq5)

11

Open MetaEditor

In MT5 β†’ Tools menu β†’ MetaQuotes Language Editor (F4). Or right-click the EA and “Modify”.

12

Click Compile

In MetaEditor, press F7. If there are errors, they appear at the bottom. If it compiles successfully, you’ll see “0 errors, 0 warnings”.

13

If errors appear, ask AI

Copy the error messages and paste them into ChatGPT/Claude along with the code. AI fixes most errors instantly.

Part 5: Run the EA

14

Open a chart

Choose the asset the EA will trade (e.g., Volatility 75 Index, EUR/USD). Double-click the asset in Market Watch.

15

Drag the EA onto the chart

In Navigator, drag your EA’s icon onto the open chart. A configuration window opens.

16

Configure parameters

On the “Inputs” tab, adjust parameters (lot size, SL, TP, etc.). On the “Common” tab, check “Allow algo trading”.

17

Enable AutoTrading

At the top of MT5, click the “AutoTrading” button (it should turn green). Without this, the EA doesn’t trade.

18

Check status

In the top-right corner of the chart, you should see your EA’s name with a smiling face icon 😊. If it’s 😟 (sad), something’s wrong.

Part 6: Run a Backtest

19

Open Strategy Tester

In MT5 β†’ View β†’ Strategy Tester (Ctrl+R). The panel appears at the bottom.

20

Configure and run

Select your EA, asset, period (1 year minimum), timeframe, and click “Start”. MT5 will simulate trades using historical data.

⚠️ Important precautions

1) Always test on a demo account first. 2) MT5 must be open and connected for the EA to run β€” consider using a VPS for 24/7. 3) Monitor the EA in the first few days. 4) Free EAs from the internet can have bugs β€” always review the code.

VPS: running EA 24/7

If you want the EA to trade 24/7 (including on synthetic indices), MT5 must always be running. Solutions:

  • MetaQuotes VPS: Integrated with MT5. Low cost ($15-30/month). Minimal latency to brokers.
  • Generic VPS: Contabo, Vultr, DigitalOcean ($5-10/month). Cheaper, more setup work.
  • PC always on: Free, but you must keep your computer running and stable.

πŸš€ Create your Deriv MT5 account and start running EAs:

Create Free Deriv MT5 Account β†’
DM

PrimeTraderAI Team

More at Start Here.

⚠️ Educational. Always test on demo before using on a live account. Trading involves risk. Disclaimer.

Similar Posts