Similar to functions in programming languages, each thinkScript® function receives input parameters and produces a result. In thinkScript®, the parameters can be specified in any order. For example plot SMA = average(data = close, length = 50) and plot SMA = average(length = 50, data = close) produce the same result.

All the functions are spread among the following sections: