Navigation: <Root level>

Using Command Line Mode





RealTest supports an optional Windows command line mode. To use this mode, simply invoke RealTest from any Windows command shell window or batch script, with arguments specifying your desired action.

Supported command line tasks:

realtest -import script.rts

runs script.rts in Import mode

saves data to RTD file if import definition includes a SaveAs path

realtest -scan script.rts

runs script.rts in Scan mode

saves scan output to CSV if ScanSettings include a SaveScanAs path

realtest -test script.rts

runs script.rts in Test mode

saves results data to RTD if the TestSettings include a ResultsFile path

saves results window contents to CSV if test settings include a SaveTestListAs path

saves stats to CSV if test settings include a SaveStatsAs path

saves final position list to CSV if test settings include a SavePositionsAs path

saves trade list to CSV if test settings include a SaveTradesAs path

Any number of such -task script pairs can be added to a command line. RealTest will perform them in the order provided.

If all scripts ran successfully, the program return code will be 0. If there were errors, the return code will be -1.

When using a standard Windows .BAT file, you can check the return code using %errorlevel%.

Note that in the event of an error, there will also be a popup message telling you what went wrong.

Note also that in batch mode, RealTest runs with its main window minimized, but you can restore it manually if desired, to see what it's doing.




Copyright © 2020-2022 Systematic Solutions, LLC