An important step in designing an automatic trading system is the optimization the parameters (inputs). Metatrader has an optimization feature that allows us to find the input values that enable us to make our Expert Advisor better on historical data (Backtesting).
The tester opens. We choose the strategy name, the market to be tested and the time frame (Figure 1) in the various drop-down menus.
As a second step, click on “Expert Properties”.
The Value column has the Default parameter. In the Start column, we set the startup value of the optimization. In Stops the last value we will test. In Step we enter the minimum increment value.
In the concrete case, the moving average will be optimized by a length of 20 to 200 passing through the value of 30, 40, 50 (that is 10 in 10 as an increment).
Finally by right clicking on the test that we prefer, we can save the best default parameters and use them for our Expert Advisor instead of the default ones.