images/contents.gifimages/index.gifimages/prev1.gifimages/next1.gif

Functions

A function, or predicate calculus, performs a mathematical operation on a data series.

The program provides the following types of functions:

Function Type
Purpose
Math functions
To perform math operations like addition, subtraction, standard deviation, etc.

Logical functions
To perform conditional math.

Study functions
To perform common technical analyses.

Cyber Chart functions
To perform common technical analyses.
Quote Functions
To assist in displaying formula results in quote windows.

You use functions to build mathematical expressions. The simplest application of a function is to perform a mathematical operation on a data series. For example, in the following formula,

SQRT(IBM)

The program calculates the square root of IBMs last prices.

You can also perform mathematical calculations on the results of a mathematical operation. For example, in the following formula,

savg(ibm.high,10)-savg(ibm.low,10)

The program subtracts a simple moving average of IBMs low price from a simple moving average of IBMs high price.

Additionally, you can perform second-order calculations. An example of a second order calculation is a simple moving average of a simple moving average, as illustrated in the following formula:

savg(savg(ibm,10),5)

Here, the program calculates a five period simple moving average on a ten period simple moving average of IBMs last price. Using second-order calculation, you can compute a moving average over half a MESA dominant cycle:

savg(ibm,mdomcycle(ibm)*0.5)