|
Category
Settings or Strategy Elements or Order Settings
Description
Path and name of the order list file to create when generating orders.
Notes
If OrdersFile is not specified then the default path is c:\RealTest\Output\Orders (assuming RealTest is installed in c:\RealTest) and the default file is script_date_orders.txt (where script is the current script name and date is the order date).
When OrdersMode is anything other than the default Text mode, two orders files are created: script_date_orders.txt and script_date_orders.csv in OrderClerk modes or script_date.csv in Rebalance or Template mode.
When OrdersFile is specified, the file name should end in .txt for the default OrdersMode or in .csv in any other mode.
A settings-level OrdersFile path will override the default and will apply to every strategy in the script that does not provide its own path.
A strategy-level OrdersFile path is only allowed when OrdersMode is Template. In that case it writes that strategy's own order list to the given file and overrides the settings-level path for that strategy.
See File Path Syntax for helpful tips including special path expansion variables.
The path is expanded when the orders are generated (so it can use ?orderdate?). If it then contains an unrecognized ?token? or the file cannot be created, the run reports the problem and, in command line mode, exits with code 9 rather than logging success with no orders written.
See OrdersTemplate and CSV Order Baskets for details about CSV order lists.
|