Navigation: Realtest Script Language > Syntax Element Categories >

General-Purpose Functions




Perform general operations on single values. Any parameter of a function can be a literal number, a single value, or a formula.

Abs - absolute value of a number

Bound - limit the range of a value

Combined - evaluate stats expression using combined strategy results

Cross - value1[1] < value2[1] and value1 > value2

Date - get the numeric date for a given year, month, day

Exp - exponential function (e^x)

Extern - evaluate expression for a different stock/contract or strategy

IIF - conditional branch

IsNan - true if value can't be evaluated, false if it can

Item - refer to a Data or Library item by name

Log - natural logarithm of a number

Max - largest of a group of values

Min - smallest of a group of values

Not - true if false or false if true

Random - random number from min to max rounded to step

Round - round value to nearest step

Select - multi-part conditional branch

Sign - sign of a number (1 or -1)

Sqr - square root of a number

Text - literal text for scan output, with optional embedded numeric values

This - anchored term in multi-bar function

Top - top N digits of a number





Copyright © 2020-2021 Systematic Solutions, LLC