Constructor Simple MT5 - Expert Advisor

Constructor Simple MT5 - Expert Advisor

30 июля 2022, 20:28
Aliaksandr Chupryna
0
390

            Let's consider an example of "Constructor Simple MT5" Expert Advisor optimization                

By optimizing the Expert Advisor on different timeframes and in different ranges of parameters, you can create several (and more) strategies for yourself with different input data. At the end of the blog, ".set" files are attached, which can be used as a basis for optimization and edit the data of only those currency pairs that are not suitable for the given conditions of the trading account.

   ACT 1   

Turn on the optimization mode.

O_11

We will optimize each block (EA) separately. 

O_2

It is necessary to disable all characters except the first one.

O2_2

To reduce the optimization time, we will limit the results we need to the drawdown. To do this, set Auto_Lot=true, Deposit=2000, BalanceForAdd=200.

O3

   ACT 2   

 We turn on the parameters to be optimized and set their ranges. Be sure to set: Exponent_Symbol=1.     

O4

We look at the number of test options

O_5

Choose an optimization option. Option 1( Slow complete algorithm) will show us all the results (which is desirable). But if the number of testing options is very large, then option 2( Fast genetic based algorithm) can be chosen. Run the optimization.

O_6

   ACT 3   

From the optimization results, select one of them and start testing.

O7

O7_2

Now we switch to the "Auto_Lot = false".

Opt_13

We get a result that suits us.

O8

   ACT 4   

Now let's find out which symbols' volatility is suitable for trading according to the selected parameters. To do this, turn on the "All symbols selected in MarketWatch" optimization mode.

O8_1

You need to include "Only_1_Symbol=true". Without this, the tester will not be able to iterate through the symbols from the MarketWatch. And start the optimization.

O8_2

   ACT 5   

From the results obtained, we sequentially select the appropriate symbols.

O8_3

Write selected symbols to input parameters

O8_5

Set "Only_1_Symbol=false" and start testing EA-1

O8_6

Get the result

O8_7

Don't forget to save in "file.set" .

O8_8

   ACT 6   

We repeat the same steps for EA-2, EA-3, EA-4 and EA-5. 

O10

O11

O12

O13

   ACT 7   

For each EA we get the results

O14

Now enable all EA and test

O15

   ACT 8   

Enable Auto_Lot=true . Let's take a deposit of 1500. BalanceForAdd=1500 (every 1500 lot will increase by 0.01)

O16

Result

O2019