Navigation: Trading Your System >

Tomorrow's Orders




RealTest includes several types of additional Test Output, including Orders.

After a test is run with TestOutput: Orders selected on the Settings Panel or specified in TestSettings, a new Log Window is opened showing the list of orders that would need to be placed with a broker before the open of the next day after the last date of the test. This can also be thought of as Tomorrow's Orders.

To best illustrate this feature, open the mr_sample.rts example script, and add the following TestSettings specification (putting it somewhere after the line with Include statement):

The mr_sample_common.rts script that all the other mr_sample scripts include has it's own TestSettings section. By adding one here, you can override the previously included one.

This will model a trader who started trading the strategy at the beginning of 2020 with a $100K account and needs to know what orders to place for live trading on March 23.

(In actual usage, you would leave the EndDate set to Latest and re-import the data file each day.)

After running the test with these settings, the Orders log window appears:

Please note that this is only a best estimate of what your live orders should be. There is no way for RealTest to know what your actual fill prices and quantities were when recent positions were entered, what deposits or withdrawals you've made in your account, and so on.

This pair of strategies use the MaxSetups / SetupScore technique to ensure that the number of limit orders placed each day does not exceed your available position slots. These strategies also use AtOpen as the ExitTime for their rule-based exits. These two facts are why it is possible to determine "tomorrow's orders".

For strategies that use AtClose entries or exits, it is not possible to foresee what tomorrow's orders will be. In this case, this caveat will be indicated in the log (here demonstrated by temporarily ExitTime to AtClose for these strategies):

If a strategy uses MaxEntries with unlimited setups, the log text will include a caveat about how many fills to allow:


The "Tomorrow's Orders" feature can be useful to confirm that your strategies are doing what you think they are. You could also use it as a basis for live trading, though for a set of strategies with lots of orders this might be cumbersome and/or error-prone.




Copyright © 2020-2021 Systematic Solutions, LLC