quit (string text)

Terminates [Train], [Test], or [Trade] mode after the current run cycle. Prints the optional text to the window.

Remarks:

Example:

if(Equity < 100) {
  quit("Out of money!");
  return;
}

See also:

printf, run, wait, version

► latest version online