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

Data Collection Notice

We maintain a record of your data to run this website. By clicking the button, you agree to our Privacy Policy.

facebook logo with graphic

Join Us on Facebook

Stay on top of company updates, trading news, and so much more!

Thanks, I already follow your page!
forex book graphic

Beginner Forex Book

Your ultimate guide through the world of trading.

Get Forex Book

Check Your Inbox!

In our email, you will find the Forex 101 book. Just tap the button to get it!

FBS Mobile Personal Area

market's logo FREE - On the App Store

Get

Risk warning: ᏟᖴᎠs are complex instruments and come with a high risk of losing money rapidly due to leverage.

76.5% of retail investor accounts lose money when trading ᏟᖴᎠs with this provider.

You should consider whether you understand how ᏟᖴᎠs work and whether you can afford to take the high risk of losing your money.

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.

2.png

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.

3.png

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.

8.png

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.

5.png

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. 

6.png

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!

7.png

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!

Popular

Assets Won’t Survive This Week

As Europe moves into recession, next week may provide us with some amazing trading opportunities. Here they are!

Post-Fed Releases for USD & CAD Traders

Main news that will drive the market in the upcoming week include CB Consumer Confidence Index, Canadian GDP, and US Core PCE Price Index

FED and BOE Make Another Attempt to Beat Inflation

The Federal Reserve (Fed) will announce its Interest Rate Decision and make a statement about the future monetary policy on Wednesday, September 21, GMT+3. After the higher-than-expected inflation numbers published on September 13, there’s almost no doubt the Federal Reserve will come up with another 75-basis-point rate hike. However, surprised by the CPI numbers, several Fed members announced the possibility of a 100-basis-point rate hike on Wednesday.

Choose your payment system

Feel the Team Spirit

Callback

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