A function, or predicate calculus, performs a mathematical operation on a data series. The program provides the following types of functions: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. |
SQRT(IBM)
The program calculates the square root of IBM
s 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 IBM
s 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 IBM
s last price. Using second-order calculation, you can compute a moving average over half a MESA dominant cycle:savg(ibm,mdomcycle(ibm)*0.5)