Verbose

Determines the verbosity of trade, error, and diagnostics messages (see Log). The more verbose, the slower the execution of large backtests.

Range:

0 Few messages. Less important warnings are suppressed. Bars are only printed to the log in [Trade] mode or when trades are open.
1 More messages (default). All bars and all major events, such as entering or closing a trade, are printed to the log and in [Trade] mode also displayed in the window..
2 Even more messages, including the trade parameters at any trade entry and exit. In [Trade] mode the daily profit, drawdown, and CBI is printed once per day. In [Test] mode with TICKS flag the tick preceding a trade is displayed. The prices of the selected asset are printed at any bar in the form Open/High\Low/Close.
3 Even more messages, including skipped trades, possible price outliers, and function parameter errors. Prices are displayed with more digits. In [Trade] mode all open trades are listed once per day.
7 Extensive diagnostics messages, incluging memory allocations of 2 MB or more, broker API trade calls, and API execution times.
DIAG Additional flag to enable a 'black box recorder' for diagnostics. A ...diag.txt file is created in the Log folder. It contains a list with the last events and can be used to determine the reason of a crash or other problem that leads to the termination of the script. For details see troubleshooting. Black box recording strongly affects the program speed, so do not use this flag unnecessarily.
ALERT Additional flag to display critical messages, such as suspicious asset parameters, possibly orphaned trades, broker API errors, or print(TO_ALERT,..) calls, in a separate alert box. DIAG recording is stopped at the first critical event, so the details leading to the situation can be evaluated from the black box log (Log\...diag.txt). Recording continues when the alert box is closed.
LOGMSG Additional flag to print the log also to the message window.

Type:

int

Remarks:

Example:

function run()
{
  Verbose = 7+DIAG; // extensive messages plus black box recorder 
  ...
}

See also:

LOGFILE, -diag, log, troubleshooting

 

► latest version online