Zorro can be started directly from an external program, a shortcut, a batch file, the Windows command shell, or a PHP exec call on a Windows server. The command line looks like this:
"C:\Users\YourName\Zorro\Zorro.exe" [filename] [options]
For starting it manually with command line options, use the Windows command prompt, navigate to your Zorro folder (cd command), type in a command line, for instance Zorro -run MyScript, and hit the [Enter] key.
If a script name is given, Zorro will open and start it. This allows to automatically run scripts or display historical data by clicking on the file. filename (without blanks or special characters) must be either an existing script in the StrategyFolder given in Zorro.ini, or a historical data file in .t1, .t6, or .t8 format. If a historical data file is given, the Chart script is started with that file. While the script is running, the COMMAND status flag is set to indicate that it's run from the command line. Several Zorro functions use this way to start other Zorro processes, f.i. for multicore training, retraining, or retesting. External tools, like the genetic optimizer, also use the command line.
You can give a command line option either directly in the Windows command prompt, or with the Windows [Run] function, or by editing the properties of a Zorro shortcut on the Windows desktop. For this, right click the shortcut icon and select Properties (for icons in the task bar you need to hold the [Shift] key). Under the shortcut tab you'll see the Target field containing the exact location of Zorro.exe within quotation marks. Add command line options, such as '-diag', after the last quotation mark, and save the modified shortcut with [Apply].
Besides the file name, the following command line options can be given (Zorro S only):
Zorro.exe -train Z3
Starts a re-training run with the Z3 strategy.
"c:\Users\MyName\Zorro\Zorro.exe" -run pricedownload -a USD/CAD
From outside the Zorro folder, runs the script pricedownload.c with the selected asset "USD/CAD" in test mode.
Starts Zorro in diagnostics mode. A file diag.txt is generated in the Zorro folder.
Zorro -train MyStrategy1
Zorro -train MyStrategy2
Zorro -train MyStrategy3
Content of a .bat file in the Zorro folder that simultaneously trains 3 scripts when clicked on.
► latest version online