METATRADER EXPERT ADVISORS OPTIMIZATION Let's examine the optimization of expert advisors on the example of advisor upstream EURJPY. We will optimize the size of stop loss and take profit. If you make optimization for Metatrader broker AlpariUK, then the period of optimization will be: start is 07.2004; the end is the current date.
We recommend to conduct optimization not up to the end of period = to the current date, but up to the end of period = current date – N of days N is chosen directly for every expert and depends on how often expert opens and closes orders. More orders are opened by an expert, less is N. The segment of history beginning of the period = (current date – N of days), the end of period = a current date will enable us to do a backtest of advisor on the area of quotations, which did not participate in optimization. So you are doing so called forward test of advisor.
So for the expert optimization, you should:
- Open the window strategy tester by pressing Ctrl+R or by pressing the right mouse button on graphic arts to which we added adviser and choose strategy tester.

2.In the window strategy tester , open the window expert properties
3. Select optimized parameters ( in our example stop-loss and stop-profit)

4.Enter the initial values of the optimized parameters, step and stop
5.close a window
6.Select Optimization
7.Choose a model for optimization ( a model “ Open prices only (fastest method to analyze the bar just completed)” corresponds to the most advisors, although for greater accuracy it is possible to test on Every tick (based on all available least timeframes) but then time of optimization substantially will be increased.
8.Press start
9. After completion of optimization, open Optimization result and choose parameters considering a highest income and minimum drawdown. (obviously income should be high and drawdown should be less)
Metatrader Expert advisors Quotations
Metatrader Expert advisors Instalation
Metatrader Expert advisors Optimization
Metatrader Expert advisors Back Testing |