talib

Syntax

talib(func, args…)

Arguments

func is a function.

args are the parameters of func.

Please see TA-Lib Functions for the parameters and windowing logic.

Details

..当 args 的前几个元素为 NULL 时,DolphinDB 内置滑动窗口函数与 python TA-lib 的处理方式不同:

To process data starting with consecutive NULL values in the same way as Python TA-Lib, you can call DolphinDB built-in functions with the higher-order function talib.

Examples

See the differences of function talib and DolphinDB built-in functions with the following example:

$ msum(NULL 1 2 3 4 5 6 7 8 9, 3)
[,,3,6,9,12,15,18,21,24]

$ talib(msum, NULL 1 2 3 4 5 6 7 8 9, 3)
[,,,6,9,12,15,18,21,24]