MetaEditor Help

Debugging

Common parameters of program debugging and profiling are set up in this tab.

Debugging

The following parameters are represented here:

  • Use specified settings — turn on/off use of specified settings for program debugging and profiling. In this case a program will be run on a chart with the specified symbol and period. During debugging on history, these parameters are used for visual testing. If this option is disabled, editing of the below fields will be unavailable.
  • Symbol — the symbol the chart by which will be used for debugging/profiling programs.
  • Period — the chart period that will be used for debugging/profiling programs.
  • Date — the time period to run a program while debugging on history. Visual testing in the strategy tester will run on this period data.
  • Execution — the strategy tester allows you to emulate network delays during an Expert Advisor operation in order to bring testing closer to real conditions. A certain time delay is inserted between placing a trade request and its execution in the strategy tester. From the moment of sending a request till its execution, the price can change. This allows you to evaluate how trade processing speed affects the trading results. Select a delay to be used when debugging on history: no delay, a fixed value (one of the predefined values or a custom one) or a random value. For more details please read the client terminal user guide.
  • Tick generation mode — used for debugging on history. For more details please read the client terminal user guide.
  • Every tick — this is the most accurate, but the slowest mode. All ticks are emulated.
  • OHLC on М1 — in this mode, only 4 prices of every 1-minute bar are generated — Open, High, Low and Close prices.
  • Only Open prices — OHLC prices are generated, but only the Open price is used for testing/optimization.
  • Deposit and leverage — initial deposit amount and leverage used during debugging on history.

If no symbol or chart period is specified in this tab, then the first symbol in the Market Watch window and period H1 will be used for debugging/profiling on default.