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 — used for debugging on history. Visual testing will run with the selected mode. In the normal mode, all  orders are executed at requested prices, no requotes are used, etc. Mode "Random Delay" provides testing conditions similar to real ones. Price may change from the moment an order is sent till the time it is executed. Depending on the deviation specified in an order, it can be executed at the current price (if it's within the allowable deviation) or requoted. 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.