RealTest User Guide
RealTest User Guide

 

 

Navigation: Software User Interface > Graphical Windows >

Daily Stats Graphs

 

 

 

 

As we drill further down, the next level of results analysis to look at are the daily stats graphs.

Each test record in a results file includes each stat element as a daily time series rather than just a final summed value.

These results time series are also available to the test script while the test is running, allowing a strategy to dynamically refer to its own performance and/or the performance of other simultaneously running strategies. (The example script mr_tracking.rts shows how this is implemented.)

Double-clicking on a row in a results list opens the daily stats graph for that test. Here is an example from a 2-strategy system, long/short mean-reversion:

Each strategy is graphed separately with color-coded lines and labels, along with the combined system results.

Here is the drawdown graph, showing how the two sides of this long/short strategy will usually hedge each other to some degree:

Stat series lines (or bars) can be displayed for any combination of the multiple strategies that were contained in the system defined in the test script that produced this set of results.

Which strategies to display and which to hide can be specified by clicking on their names at the top of the graph:

The names switch to boldface when you hover over them to show that you can click.

The square next to each name is filled if that line is showing or hollow otherwise.

Clicking on the name of a strategy hides all other strategies except for that one.

Holding down Ctrl while clicking on the name of a strategy toggles it between shown and hidden without effecting other strategies.

Clicking "Show All" shows all the strategies plus the combined line.

Holding down Ctrl while clicking "Show All" hides all the lines.

Strategies can also be selected (or toggled if Ctrl is pressed), or by using the number keys 1-9 and 0.

If there are more than 10 strategies, shift+digit can be used for numbers 11-20.

 

The data underlying a stats graph can also be easily viewed by pressing the D key or selecting Show Data from the context menu:

In every stats graph, the Y axis represents the daily values resulting from evaluating the formula for that graph, and the X axis contains the dates.

As with results and charts, daily stats graph content is defined using the Graphs Section of a script, and all open graph windows use the same set of graph type definitions:

If the active script does not include a Graphs section, then the default script – Graphs.rts in the program directory – is applied.

To quickly access the underlying formulas for any Results, Graphs, Trades or Chart window, press the F9 key or use the context menu.

Press F4 or click Apply after modifying the graph definitions to see the result of your changes in all open graph and data table windows.

 

Graph Colors

Graph windows allow specification of 10 colors via the options dialog.

The first strategy that is defined in a system script gets line color 1, the second strategy line color 2, and so on.

Lines are labeled with the name of each strategy in color-coded text, so it should always be clear which is which.

If there are more than 9 strategies, strategy 10 gets color 1, strategy 11 gets color 2, etc.

Line colors can be edited using the graph options dialog:

Clicking on the "…" to the left of any color opens the Windows color selection dialog.

Most of the other options in this dialog can also be accessed using the Graph Menu and/or the keyboard shortcuts listed above and on the menu items.

This and other options dialogs in RealTest also include reminders about keyboard shortcuts that can be used.

 

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC