MetaTrader 4のヘルプ
MetaTrader 4のヘルプUser InterfaceTesterProperties

Properties

Parameters of the virtual account and the expert advisor under test can be set up in this window.

strategy_tester_settings_expert_properties

These data will later be used for testing or optimization of the expert parameters. There are three tabs in the window:

  • Testing – Parameters common for both testing and optimizations are placed in this tab. These are volume and currency of initial deposit that are given in the fields of the corresponding names. Types of positions to be opened at testing can be selected, as well: "Only Long" – open only long positions; "Only Short" – only short ones; "Long and Short" – open both types of positions. Whatever expert mechanisms are used, they will open positions only as set here. One can include an optimization genetic algorithm and select a parameter to be optimized (maximization by the balance value, the profit factor, expected payoff, or minimization by the maximal drawdown value or drawdown percent).
  • Inputs – the list of all inputs is given here as a table. Inputs are variables that influence the expert work and can be changed directly from the client terminal. The amount thereof can vary from expert to expert. The current data to be used at testing an expert will be written in the "Value" field. Data to be written in the fields of "Start", "Step" and "Stop" do not influence the expert testing, and are only used for its optimization. Initial value of the variable, step of change, and final value are written in this field. At optimization, expert with parameters within the range between initial and final values will be passed consecutively. Checking from the right of the variable names allows to include the parameter into optimization process. If a variable has not been checked, it will not participate in optimization. Its value will not be changed in the optimization process, and the parameter written in the "Value" field will be used.
     
    There is an opportunity to download a set of inputs already saved before (including the values of "Start", "Step", and "Stop"). This can be done by pressing of the "Load" button and after the preliminarily saved set of inputs has been selected. The actual set of external variables can be saved by pressing of the button of the same name.

Attention: It is recommended to include only necessary variables into optimization process. If too many variables are included into it, the amount of passes and total optimization time will rapidly increase.

  • Optimization – this tab allows to manage optimization limits. If the real values meet those required in this tab, the current pass will be stopped and the next pass will start. Parameters limiting testing at optimization of the expert are:
    • Balance minimum – minimum balance value in the deposit currency;
    • Profit maximum – maximal profit in the deposit currency;
    • Minimal margin level, % – minimal level of margin in per cents;
    • Maximal drawdown, % – maximal drawdown in per cents;
    • Consecutive loss – maximal total loss in one series of trades. A loss series is a certain amount of consecutive loss trades;
    • Consecutive loss trades – maximal amount of loss trades in one series;
    • Consecutive win – maximal total win in one series of trades. A win series is a certain amount of consecutive win trades;
    • Consecutive win trades – maximal amount of win trades in one series.

More details are given in the sections of "testing Expert Advisors" and "Optimization".