Table of Contents

Technical Functions

Scan Syntax Reference: Technical Functions

There are several arithmetic functions that you can use to modify the expressions in your scan. For more information on writing scans using these and other types of scan syntax, please see our Support Center article on Writing Scans.

Absolute Value (AbsVal)

The Absolute Value of the expression.

Syntax:

Parameters:

Example:

Count Down

The number of periods in the specified timeframe where the value has decreased for the given expression such as “close”, “volume” or “rsi(14)”.

Syntax:

Parameters:

Operators:

Example:

Count Up

The number of periods in the specified timeframe where the value has increased for the given expression such as “close”, “volume” or “rsi(14)”.

Syntax:

Parameters:

Operators:

Example:

Maximum Value (Max)

The highest value of the expression over the specified time period. See our Support Center article on Writing Min/Max Scans for more information.

Syntax:

Parameters:

Example:

Minimum Value (Min)

The lowest value of the expression over the specified time period. See our Support Center article on Writing Min/Max Scans for more information.

Syntax:

Parameters:

Example:

Percent Change (PctChange)

The percentage change of the expression over the specified time period. See our Support Center article on Writing Percent Change Scans for more information.

Syntax:

Parameters:

Example:

Percent Diff (PctDiff)

The percentage difference between two expressions.

Syntax:

Parameters:

Example:

Percent Relative (PctRelative)

The difference between the security's Percent Change (PctChange) value and the PctChange value of the specified symbol.

Syntax:

Parameters:

Operators:

Example:

Streak Down

The number of periods in a row where the value has decreased for the given expression such as “close”, “volume” or “rsi(14)”.

Syntax:

Parameters:

Operators:

Example:

Streak Up

The number of periods in a row where the value has increased for the given expression such as “close”, “volume” or “rsi(14)”.

Syntax:

Parameters:

Operators:

Example: