How to Launch Trading Robots in MetaTrader 5?

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!

Frequently asked questions

  • How to start trading?

    If you are 18+ years old, you can join FBS and begin your FX journey. To trade, you need a brokerage account and sufficient knowledge on how assets behave in the financial markets. Start with studying the basics with our free educational materials and creating an FBS account. You may want to test the environment with virtual money with a Demo account. Once you are ready, enter the real market and trade to succeed.

  • How to open an FBS account?

    Click the 'Open account' button on our website and proceed to the Trader Area. Before you can start trading, pass a profile verification. Confirm your email and phone number, get your ID verified. This procedure guarantees the safety of your funds and identity. Once you are done with all the checks, go to the preferred trading platform, and start trading.

  • How to withdraw the money you earned with FBS?

    The procedure is very straightforward. Go to the Withdrawal page on the website or the Finances section of the FBS Trader Area and access Withdrawal. You can get the earned money via the same payment system that you used for depositing. In case you funded the account via various methods, withdraw your profit via the same methods in the ratio according to the deposited sums.

Latest news

Short-Term Trading Strategies That Work

While some traders find comfort in longer timeframes that allow them to check positions less frequently and have ample time to make decisions, others get an adrenaline rush from more aggressive, day-to-day trading.

USD: Powell Speaks on Cutting Interest Rates

Jerome H. Powell, the Federal Reserve chair, stated that the central bank can afford to be patient in deciding when to cut interest rates, citing easing inflation and stable economic growth. Powell emphasized the Fed's independence from political influences, particularly relevant as the election season nears. The Fed had raised interest rates to 5.3 ...

BTCUSD: Rich Dad Says Buy

Robert Kiyosaki, the author of "Rich Dad Poor Dad," has updated his bitcoin price forecast, now projecting the cryptocurrency to hit $100,000 by September. He plans to acquire more bitcoin before April, attributing his decision to the upcoming halving event. Kiyosaki advises investors to consider adding bitcoin to their portfolios and suggests...

Deposit with your local payment systems

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.


A manager will call you shortly.

Change number

Your request is accepted.

A manager will call you shortly.

Next callback request for this phone number
will be available in

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

Internal error. Please try again later

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

You are using an older version of your browser.

Update it to the latest version or try another one for a safer, more comfortable and productive trading experience.

Safari Chrome Firefox Opera