RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language >

Default Scripts

 

 

 

 

RealTest uses four default scripts:

Results.rts - provides Results Section formulas defining the columns to display in Results Windows 

Graphs.rts - provides Graphs Section formulas defining the types of graphs available in Graph Windows

Trades.rts - provides Trades Section formulas defining the columns to display in Trades Windows

Charts.rts - provides Charts Section formulas defining the indicators to be added to Chart Windows

These four scripts are automatically included in any script that is parsed IF that script (or other scripts it includes) does not already define the corresponding section. For example, if your script has no Results section (as it typically will not), then the default Results.rts is automatically included. This ensures that the contents of the four window types listed above are always defined.

When a default script needs to be included, RealTest looks for it in the following locations:

1.The folder of the script being parsed

2.The folder in which RealTest is installed (c:\RealTest by default)

The RealTest Installer puts the "factory default" versions of these four scripts in your installation folder to ensure that they're always available. It is often a good practice to copy these to your Scripts folder before making changes, so that your "working" versions will be with your own scripts.

When you define any of the above four sections in any of your own scripts, this means that the corresponding default script will NOT be included.

For example if you add a Results section to a script with some strategy definitions,the columns defined by that section are the only columns that will appear in the Results window.

If you would like to include the default items AND add a few of your own, you can do so as in this example:

This would add a graph of your auto-tracker benchmark rank numbers to the end of your set of stats graphs.

If you prefer your script-specific items to appear before the default ones, simply move the Include line to after the Graphs section.

It is most often necessary to add custom items to the default section definitions when you want to refer to variables defined by your script, such as the "srank" StratData item in the above example (from oex_tf_auto_track.rts).

See each of the links above for more information about the specifics of each default script section and its corresponding output window type.

 

 

 

 

Copyright © 2020-2025 Systematic Solutions, LLC