Study functions perform common technical analyses. Study functions are not pointwise operations. For example, in savg(ibm.close,5) each element of the output series depends on the corresponding input element and the preceding four input elements. If the study function examined only the corresponding elements in the data series, the moving average would not be correct. Consequently, study functions treat their two parameters differently. In the example above, the first parameter, ibm.close, is a true time-series object, that is, ibm.close is not pointwise. The second parameter, 5 periods, is taken as a single number for each bar in the series. SAVG() is pointwise to the number of periods: the output at a given bar depends only on the corresponding value of the second parameter As a rule, a study function For each study function, you will find the following information:Study Functions
Category | Information |
Definition | A brief definition of the function. |
Syntax | The syntax of the function. |
Formula | The formula for the technical study created by the function. |
Parameters | A brief description of the parameters employed in the function. |