Don’t waste your time – keep track of how NFP affects the US dollar!

Data collection notice

FBS maintains a record of your data to run this website. By pressing the “Accept” button, you agree to our Privacy policy.

Join the Facebook community of FBS!

Beginner Forex book

Beginner Forex book will guide you through the world of trading.

Email tooltip

Thank you!

We've emailed a special link to your e-mail.
Click the link to confirm your address and get Beginner Forex book for free.

FBS Mobile Personal Area



How to Launch Trading Robots in MetaTrader 5?

Information is not investment advice

In the previous article dedicated to the basics of algorithmic trading, we looked at its origins and the most popular languages for creating trading robots. As we chose MQL5, the language of MetaTrader 5,  for learning algo trading, let’s look at the main types of trading robots and where to find them in the MT 5 environment.

4 1.png

MQL5 documentation describes four types of automated trading applications: scripts, services, custom indicators, and expert advisors. They differ by tasks they implement.

A script is a program that executes only one action. This is the simplest form of trading robot in MQL5. Scripts can make alerts when a certain level is reached, modify your stop loss and take profit levels, and even gather historical data of your trades.

Service is an application that works without being attached to the chart. Like scripts, services implement only one function.

A custom indicator is a technical indicator that is developed by a user. It can be a modification of standard indicators or a completely new one. Just like standard indicators in MetaTrader 5 (MACD, RSI, moving averages, etc.), custom indicators do not make trades automatically. They are used as additional instruments for technical analysis.

Expert Advisor (EA) is the most complex type of trading robots that can be programmed in MQL5. They can perform trading operations based on a pre-identified trading strategy. EAs follow a special pre-programmed algorithm and place orders according to that set of rules. 

Now, since we know the main types of automated trading programs, let’s learn where to find them in MetaTrader 5.

Where to find trading robots in MT5?

All expert advisors, scripts, and indicators are stored in the data folder of MT5. To open this data folder, you need to click File – Open Data Folder. Click the MQL5 folder there to find indicators, expert advisors, scripts, and services. If you download custom indicators or expert advisors from the internet, you need to put them in this folder. This way, MetaTrader will see them.


If you look in a folder of any type of trading robot (for example, Experts), you can see that two connected files represent one program. They have the same name, but different directories: mq5 and ex5. The first one contains source code that can be opened in MetaEditor (the working environment for MQL5 programming), while the second file represents a compiled (converted) version of an MQL5 program that allows to launch it in a trading platform.

In MetaTrader 5, you can see all compiled programs in the Navigator window.


If you want to launch a certain indicator or expert advisor, double-click on it, or drag it to a chart.

This action will open the properties window of a chosen robot. To start it, click “OK”. If it’s successfully started, a green icon will appear in the upper right corner of the chart.


If the icon is red, the Expert Advisor is switched off. You need to enable algo trading in the EA's settings and the options of a trading platform.


Note: Only one Expert Advisor can run on one chart, but multiple indicators can be attached.  

In the settings of any expert advisor, you can find the “Common” and the “Inputs” tabs. The “Common” tab contains general information about a robot. There are also two individual parameters: “Allow modification of Signal settings” and “Allow Algo Trading”.

The first option allows a program to subscribe to signals and edit signal settings. You will learn more about signals in MetaTrader 5 in the next articles dedicated to MQL5.

The option “Allow algo trading” limits the trading activities of expert advisors. Remember that even if this option is enabled, the automated trading may be disabled in the settings of MT 5. Be sure that you switched on both of them if you want to launch a robot.

The second tab of an expert advisor or an indicator contains input parameters. They allow you to adapt the application to your strategy, making it more flexible. 


If you want to try out custom trading robots built by the members of the MQL5 community, go to Toolbox – CodeBase. It contains hundreds of trading robots that you can test yourself!


Or you can buy or download indicators, robots, and scripts directly from the MQL5 Marketplace.

This is the second article in the FBS algo trading course. In the next lesson, we are going to observe the functions of MetaEditor and look at the structure of a trading robot. Stay tuned!


Turkey has decreased interest rates, but is it a buy?

Turkey’s central bank governor was at a crossroads: to hold interest rates and take a risk to be fired like it was for three governors before him, or to comply with the president, to cut rates, and to risk the market. Let’s find out, how to react to the rate cut.

Main Market Trends on September 23

The Fed can start tapering already this November, oil is rallying pushing the Canadian dollar up! Jump in to know more!

German Ifo Business Climate

Germany, the leading economy in the Euro Zone, will reveal one of the key economic indicators – German Ifo Business Climate on September 24 at 11:00 MT time.

Choose your payment system

Be on top of your game


Please fill in the form below so we can contact you

Select the best time for us to call you. We give calls from Monday to Friday in suggested intervals. In case we couldn't get through, we will try again at the same time the next day. For getting real-time assistance, use FBS chat.

We provide only English-speaking callbacks. If you prefer any other languages, contact the support team.

We will call you at the time interval that you chose

Change number

Your request is accepted.

We will call you at the time interval that you chose

Next callback request for this phone number will be available in 00:30:00

If you have an urgent issue please contact us via
Live chat

Internal error. Please try again later