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.

Building a Trading Robot without Programming

Information is not investment advice

After reading the first and the second articles in the “Algo trading with MQL5” course, you already know the origins of algorithmic trading and the main types of trading robots. We also showed you where to find these automated trading programs in MetaTrader 5. This is not a secret that good programming skills will certainly help you with building a robot. But is it that necessary to be a programmer to construct an expert advisor? No, it isn’t! MetaTrader 5 allows creating simple ready-made trading robots using MQL5 Wizard. Let's learn how to do it!

GM-4012 в статью #3 по алготрейдингу в Guidebook.jpg

What is MQL5 Wizard?

MQL5 Wizard is a tool that helps to create robots and program templates based on the settings you choose. It generates expert advisors that can provide reliable signals. All you need to do is to select the desired parameters as a base for an expert advisor's construction. To get access to it, you need to open MetaEditor - trading strategy development environment integrated with MetaTrader 5 platform. You can find its button right above the timeframes menu.

333.png

After opening MetaEditor, you need to click “New” in the upper left corner of the program. This button will launch MQL5 Wizard.

1.png

How to create an expert advisor in MQL5 Wizard?

You can easily develop a new expert advisor by following the instructions given by the MQL5 Wizard.  Let’s look at each step in detail.

Firstly, you need to define a strategy you want to program in your trading robot.

MQL5 Wizard’s library contains a set of signals. They are basically the standard alerts that indicators provide. When you create an expert advisor, you can use any combination of the modules of trade signals (up to 64). You can find the description of them in the MQL5 documentation.

In our example, we will use the following inputs:

 Instrument: EUR/USD

Timeframe: H4

Indicators: Simple moving averages with the 21 and the 89 periods, MACD (12; 24; 9).

Now, let's build this expert advisor.

In MQL Wizard, click "Expert Advisor (generate)".

 Рисунок3.png

In the next step, you need to name your expert advisor. Here, you can also choose a specific asset this EA will work with and a timeframe. As we want to trade EUR/USD on the H4 timeframe, we write EURUSD in the “symbol” string and “H4” in the timeframe.

Choosing the right signals for your expert advisor.

This step represents the most interesting part of a process. Here, we declare the settings under which a trading robot is going to operate. After clicking “Add”, we select the pre-determined signals. Each set of signals has its parameters. For example, to add the signals of 21-period moving average to our EA, we need to set its period (21), its shift from the current bar (0), the averaging method (Simple), the price to apply the MA (Close price), and the weight of the signal (1.0).

Рисунок5.png

 

As for MACD, we leave it with standard settings (fast period = 12, slow period = 24, and period signal = 9).

Рисунок6.png

For a detailed description of each signal, visit the MQL5 website.

You can also specify a timeframe for a particular signal. For example, if you want to see a confirmation on a larger timeframe, you need to fill in the "Timeframe" setting.

Applying a trailing stop

After adding all parameters, our Expert Advisor is almost ready. Our next action will be setting the trailing properties of our EA. In other words, we need to decide whether we are going to use a trailing stop loss or not. There are four options you can choose from:

  • avoid using stop loss (trailing stop not used);
  • place it based on fixed Stop Level;
  • set it based on a particular MA;
  • use Parabolic SAR.

In our example, we don’t use a trailing stop loss.

Rules of money management

In the final step, you can declare the rules of money management for your expert advisor. We choose to trade with a fixed trade volume of 0.1 lots and a risk of 10%.

Рисунок7.png

After we click finish, we get a big and structured code in MetaEditor. These are the spine and bones of our expert advisor.

Рисунок8.png

How can we turn it into a robot? You can easily do that by pressing the compile button. This action will create a file for your robot and transfer the code into MT5.

Рисунок9.png

After that, you can find the robot in the “Navigator” window of MT5.

Рисунок10.png

You can backtest your trading robot by clicking "Test" on the name of the robot. After the strategy tester opens, choose the suitable parameters and then press "Start". You can get the results of this check-up in the backtest bar.    

Рисунок11.png

Now, you can build a fully functional trading robot without any programming skills and experience. However, if you want your expert advisor to execute more complicated commands, you still need to learn how to program them right. In the next articles in this course, you will learn the basics of coding your first robot in MQL5!

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