TubeSum ← Transcribe a video

How to Connect Your Expert Advisors in MetaTrader 5 (Step by Step)

0h 16m video Published Jan 15, 2026 Transcribed Jul 28, 2026 Hobbiecode Hobbiecode
Beginner 8 min read For: Forex and CFD traders who want to use automated trading robots on MetaTrader 5, especially those new to EA installation.
AI Trust Score 88/100
✅ Highly Legit

"Delivers exactly what the title promises: a clear, step-by-step tutorial for connecting EAs in MetaTrader 5."

AI Summary

This tutorial provides a step-by-step guide to connecting Expert Advisors (EAs) or trading robots to MetaTrader 5. It covers everything from installing robot files to configuring them on charts, ensuring proper connection, and managing multiple robots. The video is aimed at traders who have acquired a robot and need practical instructions for deployment on demo or live accounts.

[00:28]
Opening MetaTrader 5

Start by launching MetaTrader 5 and selecting a trading account (demo or real).

[01:47]
Accessing the Data Folder

Go to File > Open Data Folder to find the installation directory where robot files must be placed.

[02:45]
Navigating to MQL5/Experts

Inside the data folder, locate the MQL5 folder and then the Experts subfolder. This is where robot files (.EX5 or .MQ5) are copied.

[04:07]
Understanding Robot File Types

.MQ5 files contain source code and require compilation; .EX5 files are compiled and ready to use. Typically, purchased robots provide only .EX5 files.

[05:28]
Copying Robot Files

Copy the robot file into the Experts folder. If you have an .MQ5 file, you must compile it within MetaEditor first.

[07:31]
Refreshing the Navigator

After adding files, close and reopen MetaTrader 5 or right-click the Expert Advisors section in the Navigator and select 'Refresh'.

[07:58]
Enabling Algorithmic Trading

Click the 'Algorithmic Trading' button at the top of the platform; it should turn green, allowing robots to run.

[08:12]
Opening a New Chart

Create a new chart for the asset you want the robot to trade (e.g., gold). Set the correct timeframe before attaching the robot.

[09:30]
Attaching the Robot

Drag the robot from the Navigator onto the chart. Configure input parameters in the dialog box and click OK.

[10:12]
Verifying Connection

Check for a blue graduation cap icon next to the robot's name in the top-right corner. Also, check the Experts tab at the bottom for initialization messages.

[12:15]
Adding Same Robot to Multiple Assets

Repeat the process for other assets, ensuring each robot instance uses a unique Magic Number to avoid conflicts.

[14:07]
Removing a Robot

Right-click on the chart, select 'Expert List', highlight the robot, and click 'Delete' to remove it without deleting the file.

[15:05]
Pausing All Robots

Toggle the Algorithmic Trading button to red to pause all robots. The icons will turn gray; toggling back to green resumes them.

The tutorial successfully guides users through the entire process of connecting and managing EAs in MetaTrader 5, from file installation to multi-robot management. Following these steps ensures a smooth setup without common errors.

Tutorial Checklist

1 00:28 Open MetaTrader 5 and log into your trading account.
2 01:47 Go to File > Open Data Folder to access the installation directory.
3 02:45 Navigate to MQL5 > Experts folder inside the data folder.
4 05:28 Copy your robot file (.EX5 or .MQ5) into the Experts folder.
5 05:55 If using .MQ5 file, open it in MetaEditor and click the Compile button (F7).
6 07:31 Close and reopen MetaTrader 5, or right-click Expert Advisors in Navigator and select 'Refresh'.
7 07:58 Click the 'Algorithmic Trading' button at the top to enable it (green).
8 08:12 Open a new chart for the desired asset (File > New Chart) and set the correct timeframe.
9 09:30 Drag the robot from the Navigator onto the chart, configure input parameters, and click OK.
10 10:12 Check for the blue hat icon at top-right and initialization message in the Experts tab.
11 12:15 For multiple robots, repeat steps 8-9 with different Magic Numbers.
12 14:07 To remove a robot, right-click chart > Expert List > select robot > Delete.
13 15:05 To pause all robots, click the Algorithmic Trading button to turn it red; click again to resume.

Study Flashcards (6)

What does the .MQ5 file extension indicate?

easy Click to reveal answer

It indicates the source code file of a MetaTrader 5 robot, which can be opened and edited.

04:07

What is the .EX5 file?

easy Click to reveal answer

It is the compiled executable version of an EA; it cannot be edited and is ready to use.

04:07

What must you do if you have an .MQ5 file?

easy Click to reveal answer

You must compile it in MetaEditor to generate an .EX5 file before MetaTrader can use it.

05:55

How do you verify that a robot is properly connected to a chart?

medium Click to reveal answer

A blue graduation cap icon appears in the top-right corner, and the Experts tab shows an 'EA initialized' message.

10:12

What is a Magic Number and why is it important?

medium Click to reveal answer

It is a unique identifier for each robot instance on the same account; different robots must use different Magic Numbers to avoid trade conflicts.

12:15

How can you pause all robots at once?

easy Click to reveal answer

Click the 'Algorithmic Trading' button at the top of the platform; when it turns red, all robots are paused.

15:05

💡 Key Takeaways

📊

Difference Between .MQ5 and .EX5

Clarifies a common point of confusion for traders who acquire robot files.

04:07
🔧

Importance of Algorithmic Trading Button

A simple toggle that controls all robot activity; often overlooked by beginners.

07:58
⚖️

Use of Unique Magic Numbers

Critical for running multiple robots on the same account without interference.

12:15
🔧

Removing Robots via Expert List

Shows how to safely disconnect a robot without affecting its file.

14:07

[00:02] trading robot for the Metatrader 5 platform, this video is ideal for you. It's a step-by-step guide where you'll learn how to get the robot up and running on your own real or demo account, covering all the

[00:15] steps you need to take to avoid making any mistakes when connecting and potentially causing problems in your trading accounts. And to support my subscribe to our channel, like this video at the end if you

[00:28] enjoyed it, because this way YouTube can show this content to more subscribe and let's get started with the tutorial. The first thing we're going to do is open Metatrader 5. I 've

[00:41] case, it is an account with a balance of $15,000. This is irrelevant to this connected account, it's actually a funded account. In this account,

[00:53] what I want is to connect a robot that I have learned to create myself, or that I have this video you're not going to learn how to create robots, but once you have the connect it to any financial asset in your trading account.

[01:08] Good. Ah, whether you also bought it on the MQL5 marketplace or on other websites. OK? Up here on the left we can see the amount of assets that my broker has or the trading account that I have connected to it. It is

[01:21] true that we are only seeing about 15 assets right now, and available. What you have to do is right-click, it will show you everything and now I can see all the assets. Okay, you can connect the robot to

[01:35] any asset on this list, but first of all, before connecting the robot to an asset, we need to add the robot to the Metatrader 5 platform. How do we do that? Well, it's like

[01:47] this. Go to File in the top left menu and click Open Data Folder. Okay, here it just opened a very strange address for me, look, that starts with C, users, user, appdata, roy, metaquotes,

[02:04] terminal and a bunch of things here, like an identifier. This identifier is inside your Metatrade, inside this folder, you can already see the folders for this

[02:16] Metatrader. I'm going to take a step before, but these are a few tips that I'm to go to the terminal. Notice that this folder ends in 075. Look, it's this one here. Look at how many folders I have apart from the one that

[02:31] already have other Metatraders installed on this computer. This is very interesting. You can install more Metatraders, more than one Metatrader on the same computer, but that's a topic for another video. I go into the Metatrader folder

[02:45] that I have open on the screen. And now here we have several folders. The one you should be concerned about is MQL5. and expers. Your robot has to be in here . Okay, now we'll talk about files so you're

[03:00] here inside you can see I have many little robot files and then folders. The folders simply don't matter if you put them inside a subfolder or directly in the root directory within Express. It will appear

[03:14] in your Metatrader 5 later, don't worry. Okay? Therefore, I am now going to copy and paste my robot. And I have my robot in a folder in downloads. Okay, trading bot. And here I have two files. I'm

[03:27] using Windows, you can use Mac, and I now I'm not very sure, but well, I suggest you use Metatrader for that, uh, Windows to use Metatrader. I have two files here

[03:40] that are exactly the same robot. A file that, if I show you the extension file that, if I show you the extension here, I'm going to go to properties here, I'm going to go to properties and this is an extension dot MQ5

[03:53] and this is an extension dot MQ5 dot MQ5 and the one above is an extension, this is very important. Point EX5. What is the difference between the two? You will have one of the two. The difference is

[04:07] that MQL5, which is the first one that puts the number five here if you use Windows, this is the one that has the source code. In other words, you could open it here in Metatrader and see the

[04:19] programming code. The one above is the compiled file, the compiled file of the one below. In other words, when I open the one below and click the compile button, the one above is generated. The one above is secure, meaning I

[04:34] can send it to you and you will never be able to see the line of code. If I don't want to, if I don't show you how the robot works, you can connect it and behind it, because you won't be able to access the source code, and no

[04:47] programmer, even if you give them the file above, will be able to modify this robot. Generally, when you buy a robot online, on the MQL5 market, Metatrader, or on the internet, they're going to give you the one above. I've given away some robots

[05:01] YouTube channel. In fact, I think I'm giving this one away; it's one of the ones I gave away in an old video. I'll give the one above. I don't believe you can touch the programming code. If you are a programmer or if you are

[05:15] someone who knows how to create trading robots, I will teach you this in the this video, even if you are not a programmer. In fact, we created this one below without knowing how to program. You don't need to know about programming. And

[05:28] what we do is the compilation above, okay? Therefore, I am now going to copy the one below. I copy and paste it into the experts themselves.

[05:41] copy and paste it into the experts themselves. Hobic code eh USD. And to compile this one here, Hobic code eh USD. And to compile this one here, squeeze it. Here it is, look, it 's this one. A new window appears

[05:55] in which I will enter Express again and select the hobicot eh USD. This is the programming code for this robot. All I'm going to do the programming code for this robot. All I'm going to do is compile

[06:08] and download it, perfect, zero errors. It shows zero errors at the bottom left. You do file. Okay, now I'll explain if you have another file. And look, in the folder, look, here I have the MQL5 and it just

[06:23] generated the ex5 for me. Okay, so I've already installed it on my Metatrader 5. What if you

[06:35] have it? I'm going to close the editor, okay, and I'm going to delete, I'm going to delete these two from here again . Okay, what if you only have the X5? Because generally, I repeat, you'll only find the X5 on the internet, okay?

[06:51] Just do the same. Copy and paste it here. It will appear Copy and paste it here. It will appear below. You don't need the version with To make it work on your metatriad 5. Okay, I've got it stuck here and that's it

[07:05] , that's it. I don't need, I repeat, the version that contains the programming code, I only need this version. Therefore, if you have the version with the code, which is MQL5, you have to compile it because

[07:18] if you don't compile it, Metatrader won't be able to read it. Okay, so we have it here and now you can do two things, one, close Metatrader 5, reopen it left. Look for expert advisors,

[07:31] right-click, and select update. Perfect. And now I open it here. And look, now I'm seeing the folders we used to see in the folder directory and all the robots. Look here, I'm getting the hobby code EA USD that I was

[07:45] telling you about earlier. Before placing it, the next step is to place the robot in a financial asset that we want to do is activate the option above. Algorithmic trading. We

[07:58] above. Algorithmic trading. We click on it. Okay, it's green now. Brilliant. When this is green, it's working. We are allowing us to add robots. Now we need to find the asset. As the

[08:12] specifically for gold, but I don't know what kind of robot you have. Maybe you have a robot that you've been told works with many, many financial assets. What I'm going to show you is, for example, here I have the gold.

[08:25] How do I add a new window? So you go to file, new new window? So you go to file, new chart and select forge, indices, whichever one you gold in Commodities. A window of opportunity opens up for me: gold. He'll go

[08:38] , Ramón, because I see it as dark as you do now. It's because I use templates. and I set myself to standard, which is mine, the one I like. But hey, you can put whichever one you want. Okay, next step, I have the gold already opened here, which

[08:51] is where I want to put it. Next step, temporary status that will go to the asset. I don't know, you'll have to read this yourself in the instructions or wherever you bought or acquired it. Your uncle should tell you, "Hey, this works well

[09:03] on H1." Or you say, "No, I want to put it in M5." It is very important that you set the time frame above before attaching the robot. For example, in timeframes you want, but I'm going to select H1 because I know it's from

[09:16] going to select H1 because I know it's from Ax1. Therefore, we have US SD H1. We've already got it ready to add the robot to this chart, because you can add one robot per chart you open below. Gerial, you'll see. So

[09:30] , I'll drag it along. In other words, I repeat, I select the robotic th USD and drag it to the chart and this screen opens. Okay, sometimes this screen will open, sometimes the general one.

[09:44] Look at the bottom where it says " allow algorithmic trading". This is You can activate it from here too. And in terms of input parameters, this is the configuration of this specific bot, but this configuration is totally

[09:57] you have, and with all the robots that exist in the world. Each robot has its own configuration. This is my own move, in which, well, I have this configuration. Imagine that this configuration is fine for me

[10:12] . You'll need to check your settings because each bot is different. Okay, I'll accept it, make sure the robot is properly connected? In two ways. The first one,

[10:26] look at the top right, it says hobby code/ the name of the robot and an hobby code/ the name of the robot and an icon of an academic graduation hat. It doesn't look like it's blue and not gray, or a little face that is

[10:39] n't smiling, whatever. This has to appear like this with the little blue hat and the robot's name . If that's the case, then the robot is . If that's the case, then the robot is correctly connected to the graph, but

[10:51] not functioning. Well, yes, it could be the same, but I suggest you make sure you get it at a second place. At the very bottom, here we can see tabs that say operation, exposure history, etc.,

[11:04] exposure history, etc., etc. We're going to go to the experts. To experts. Well, this is a message that the robot gives me, which I'm actually Because these are things that are really my own,

[11:30] And I'm going to go back to the very beginning, to when I first connected the robot. Notice, automated trading is enabled. This was generated by the little button at the top and then when I connected it it says ea initialized.

[11:42] should see a message here, the first of all, that the robot has been initialized. These messages that appeared to me robot. It doesn't have to appear for you. Prob probably won't appear,

[12:02] Look at these messages. If you see any errors in red or if it any errors in red or if it says "error" here, you haven't set parameter X correctly; you should check the parameters. Okay, but make sure the little hat icon

[12:15] appears in the upper right corner; that means it has connected correctly, and this here tells you that it is working properly. I already have a robot added to a trading account on a specific chart, which is the

[12:27] H1 gold chart. Now imagine you want to connect the same robot to another asset, so we'll go to file, new chart. Imagine you want to put it in Outcad. I'll add my templates.

[12:43] And now here, the same thing, I select the H1 timeframe in this case and drag the robot back onto this chart, in this window. And the same goes for magic numbers, be careful with magic numbers. If you are going to

[12:57] put more than one robot in the same Metatrader, use different magic numbers for each robot, because what this does is connect to your trading account through this identifier. If you put the same magic numbers in

[13:11] different robots, they'll get confused with each other. They'll open accounts for you in one place and other. For example, in this case I'm going to put two two. those messages, I'm going to set

[13:24] the spet high and I'm also going to accept and perfect. In the outcat graph I connected correctly. I go to experts and look at the very last one, it says outcat

[13:39] outcat H1 EA chart initialized. Perfect. The newspaper tells you that too, you know? Hobicot expert, it's gone well here. In correctly and in Aucat too, but in experts it will give you more detail

[13:53] robot itself wants to spit out to the user. Okay, and from here you can add as many robots as you want. And finally, how can I remove a robot from a chart? Well, in any window you have here, it doesn't matter if it's

[14:07] the robot or not, right-click on it, select "expert list" and here you will see all the robots that you have connected to this Metatrader 5 platform, which is a single trading account. You can select it, click the

[14:21] properties button, modify its parameters without having to delete it, or you can Notice that it has disappeared up here and here, so I'll delete it too. And I don't have it

[14:33] connected anymore either. This way I also have the robots removed to stop the operation on the robots. If, for example, you want to pause and I'm going to put them back here, I'll put 2 2 in the outcat

[14:48] and 11 1 in the CH USD. If they are currently trades yet, but both robots are already connected and waiting for the entry signal. If I want to stop for any reason, because there has been

[15:05] a world war, or whatever , or COVID, or whatever , and you want to stop it because of economic news and you feel like stopping it, you simply click the algorithmic trading button and it turns red.

[15:18] Notice that now my little hat has turned gray. This means that it's not working right now. It's connected, but it's not working. This is how we pause operations. If, for example,

[15:32] reactivate them without having to drag them one by one to each chart, which sometimes I do, for example, I sometimes have 15 robots in the same account, well, I simply resume it and notice that now the little shadow turns blue again and they

[15:46] continue working. I hope you liked this guide, this tutorial. You can apply it yourself if you like to delve into the world of robots. Just so you know, comment of the description, I've left you five free classes so you

[15:59] having to program. You're not going to learn programming or anything like that, and on top of that, you'll be looking for new, profitable strategies that you didn't know before. All of this is covered starting today; I'll leave them below. So I hope your trading goes very

[16:13] well. I wish you lots of profits and see you in the next video. Trader. and see you in the next video. Trader. Ciao. [music]

More from Hobbiecode

View all

⚡ Saved you 0h 16m reading this? Transcribe any YouTube video for free — no signup needed.