Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
MQL5 Wizard for Dummies

MQL5 Wizard for Dummies

MetaTrader 5Examples | 17 May 2011, 12:11
25 440 1
MetaQuotes
MetaQuotes

In early 2011 we released the first version of the MQL5 Wizard. This new application provides traders a simple and convenient tool to automatically generate trading robots. Any MetaTrader 5 user can create a custom Expert Advisor without even knowing how to program in MQL5.

In the new version of the Wizard we have expanded the functionality of the program. Now it enables you to create Expert Advisors based on a combination of several signals. This innovation allows the use of sophisticated analysis in an Expert Advisor to get detailed accurate signals. Nevertheless, this innovation does not complicate the process of generating an EA. It still implies a step-by-step selection of required parameters as a base for EA construction.

Let's consider each step separately and go through all the steps for creating an Expert Advisor. First you will need to define the tool and the timeframe, on which the EA will trade: EUR/USD and M10. We will use the following signals:

  • EMA('EURUSD',M10,31) - An exponential moving average;
  • Stochastic('EURUSD',M10,8,3,3) - Stochastic oscillator;
  • EMA('EURUSD',H1,24) - An exponential moving average from another timeframe to confirm the first EMA;
  • Stochastic('EURJPY',H4,8,3,3) - Stochastic oscillator from another symbol and timeframe to confirm the first one;
  • IntradayTimeFilter – A time filter, which reveals the efficiency of all other signals during certain hours and days of the week.

Thus, we have outlined the basic parameters for our Expert Advisor. Now we can start working in the MQL5 Wizard. To start the program, open the MetaEditor program and click "Create" in the "File" tab of the main menu. In the appeared window, select "Generate Expert Advisor”:

Generate Expert Advisor

In the next window, specify the symbol and the timeframe, on which the EA will trade. If we leave the default current value, we will receive a universal Expert Advisor able to trade on any symbol and timeframe to which it is connected. But we want to create an EA for intraday trading on EURUSD, as if applied to other instruments it may produce unexpected results. Therefore specify EURUSD and M10.

General Properties of the Expert Advisor

Now proceed to the most interesting step - select the signals, based on which our Expert Advisor will trade. At this point the standard library includes ready-made modules of 20 trading signals, which are based on the logic of standard indicators. We select the necessary symbols among them.

Ready-made Modules of Trading Signals

Then, configure the parameters for each signal we have chosen - from the MA to IntradayTimeFilter.

Signals of Moving Average

Each selected signal has its own set of parameters. For example, for the exponential MA we need to specify its period (31), its shift from the current bar (0), the averaging method (Exponential), the price to apply the MA (Close price) and the weight of the signal (1.0).

A detailed description of each trading signal can be found in the MQL5 Reference.

Selected Signals

After we've set up the parameters of all signals, our Expert Advisor is almost ready. Now, we only need to configure trailing stop and money management modules. However, this step is beyond the scope of this article. Therefore, our Expert Advisor will be constructed without trailing, and will trade the fixed lot.

For further study on how to configure these parameters, please read the article MQL5 Wizard: Creating Expert Advisors without Programming.

After all above steps, we must select a money management strategy and return to the MetaEditor where the code of the resulting Expert Advisor is available.

Code of the Resulting Expert Advisor

To compile the EA, press "Compile" in the control panel. After this, start the MetaTrader 5 Client Terminal and run the Expert Advisor by selecting it in the Navigator -> Expert Advisors.

Created Expert Advisor in MetaTrader 5 Strategy Tester

So we've created a full-fledged Expert Advisor with minimum time and effort. Now any MetaTrader 5 user can create an EA just as easy and quick.

The MQL5 Wizard is a powerful tool for creating trading robots. Now anyone can create a fully functional Expert Advisor regardless of programming skills and experience. In a few clicks you select the options you want - and the Expert Advisor created will be trading according to your strategy.

Try MQL5 Wizard today and create EAs with ease according to your specific trading strategy!


Download MetaTrader 5


Translated from Russian by MetaQuotes Ltd.
Original article: https://www.mql5.com/ru/articles/287

Last comments | Go to discussion (1)
farhadmax
farhadmax | 10 Jul 2023 at 16:25
the 4th signal's symbol (Stochastics(8,3,3)) in the wizard should be "EURJPY"
The Fundamentals of Testing in MetaTrader 5 The Fundamentals of Testing in MetaTrader 5
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
Statistical Estimations Statistical Estimations
Estimation of statistical parameters of a sequence is very important, since most of mathematical models and methods are based on different assumptions. For example, normality of distribution law or dispersion value, or other parameters. Thus, when analyzing and forecasting of time series we need a simple and convenient tool that allows quickly and clearly estimating the main statistical parameters. The article shortly describes the simplest statistical parameters of a random sequence and several methods of its visual analysis. It offers the implementation of these methods in MQL5 and the methods of visualization of the result of calculations using the Gnuplot application.
Advanced Adaptive Indicators Theory and Implementation in MQL5 Advanced Adaptive Indicators Theory and Implementation in MQL5
This article will describe advanced adaptive indicators and their implementation in MQL5: Adaptive Cyber Cycle, Adaptive Center of Gravity and Adaptive RVI. All indicators were originally presented in "Cybernetic Analysis for Stocks and Futures" by John F. Ehlers.
MQL5 Wizard: New Version MQL5 Wizard: New Version
The article contains descriptions of the new features available in the updated MQL5 Wizard. The modified architecture of signals allow creating trading robots based on the combination of various market patterns. The example contained in the article explains the procedure of interactive creation of an Expert Advisor.