How To Test An Expert Advisor

Table of contents:

How To Test An Expert Advisor
How To Test An Expert Advisor

Video: How To Test An Expert Advisor

Video: How To Test An Expert Advisor
Video: How to Backtest an EA in MT4 (Complete Guide) 2024, May
Anonim

The MetaTrader trading terminal, used to perform trading operations on the interbank Forex market, allows not only creating advisor programs for automatic trading, but also testing them immediately before use. This allows you to check the effectiveness of the automated trading system on historical data even before entering real trades.

How to test an Expert Advisor
How to test an Expert Advisor

It is necessary

MetaTrader trading terminal

Instructions

Step 1

Before testing the Expert Advisor, configure the parameters. Select an advisor and set its input characteristics; choose a financial instrument; determine the modeling method. Optionally, you can also set the time range for testing.

Step 2

To select an Expert Advisor, go to the "Tester-Expert Advisors" window. There you will see the programs available for testing that were precompiled.

Step 3

For additional testing settings, click the Expert Properties button. On the "Testing" tab, set the general testing parameters: the volume and currency of the initial deposit. Also select the type of positions to be opened during testing.

Step 4

On the "Input parameters" tab, select those variables that you want to change later directly from the terminal, without making changes to the advisor code. On the "Optimization" tab, set the number of testing passes during optimization.

Step 5

In the "Symbol" field, specify the financial instrument, and in the "Period" field - the timeframe. If there is no data for a specific currency pair, the corresponding file will be created automatically.

Step 6

Select a method for modeling historical data. When testing, you can choose one of three methods:

- at opening prices;

- by control points;

- for all ticks. You can check the quality of the selected method in the "Report" window.

Step 7

Set the time range. This allows you to test the Expert Advisor not on the entire set of available data, but only on a selected time interval. To set the range by time, check the Use Dates checkbox and specify the required values in the corresponding fields.

Step 8

After you have made all the necessary settings of the strategy tester, click the "Start" button, which starts testing. You can see the estimated time of the end of the process in the lower part of the window. Upon completion of testing, evaluate its results in the tabs "Results", "Graph", "Report" and "Journal".

Recommended: