Navigation: Realtest Script Language >

Column and Format Specifiers

 

 

 

Several of the Script Sections in RealTest serve to define items which are both calculated and displayed.

These sections include: Charts, Graphs, Results, Trades and Scan.

In each of these sections, the format in which to display the value of the calculated formula can be optionally specified by including a special kind of comment within the formula definition.

A format specification comment must use the squiggly-brace comment style and be the first such comment in the formula.

If no format specification is provided, the "general" format will be used (as in Excel).

As one quick example, the NetProfit formula in Results.rts is defined as {$0} S.Equity - S.StartEquity. The $0 tells RealTest to display this stat as a whole dollar value.

You can see other examples of these codes in the documentation for each of the sections listed above.

Available Formatting Codes

Code

Used In

Shows This

Digits (if present) Specify

#

scans, trades, charts, graphs, results

general-purpose numeric value

number of decimal places

$

scans, trades, charts, graphs, results

value as currency

number of decimal places

%

scans, trades, charts, graphs, results

value * 100 as a percent

number of decimal places

-

with any of the above codes

value as above, use red if negative

the ABS is the number of decimal places

//

scans, trades, charts, graphs, results

value as a date string

n/a

!

scans, trades

determines sort order and direction

order (1 first, then 2, etc.) and direction (descending if negative)

^

charts

show this indicator in the upper indicator pane

n/a

|

charts

show this indicator in the volume pane

n/a

 

|

graphs

draw bars rather than a line

base value (x-axis) for bar chart

|

results

show this item in the status bar

n/a

"name"

any

override the default item name

n/a

 

 

 

 

Copyright © 2020-2021 Systematic Solutions, LLC