Function API Examples
Similar to TA-Lib, the function interface provides a lightweight wrapper of
the exposed TA-Lib indicators.
类似于TA库,对函数接口进行了一个轻量级的封装,用于公开的ta-lib的指标。
Each function returns an output array and have default values for their
parameters, unless specified as keyword arguments. Typically, these functions
will have an initial "lookback" period (a required number of observations
before an output is generated) set to NaN.
每个函数都默认需要输入数组,并为它们提供默认值。 参数,除非指定为关键字参数。通常,这些函数 会有一个初步的“lookback”时期(观测所需数量 在生成一个输出之前),设置为“NaN”。
All of the following examples use the function API:
所有的API函数的使用,都需引入库文件:
本文档介绍了TA-Lib的Function API,它提供了对TA-Lib指标的轻量级封装。每个函数返回输出数组,带有默认参数值,并在初始阶段设置为'NaN'。示例包括计算收盘价的简单移动平均线(SMA)、布林线、5日动量以及各种技术分析指标的分类应用。
订阅专栏 解锁全文
2086

被折叠的 条评论
为什么被折叠?



