Execute Program

Use the Execute Program to run a program from the MQL command line.

execute program NAME [-method METHOD_NAME] [ARGS] [-construct ARG];
  • NAME is the name of the program to execute.
  • METHOD_NAME is the name of a method within the program to execute.
  • ARGs are any arguments to pass to the program.

The -construct clause passes an argument to the constructor. If more than one argument needs to be passed to the constructor, the -construct clause can be repeated as many times as necessary on a single command.