talib python文档_talib 中文文档

这是一个Python 金融指数处理库TA-LIB,他是基于 Cython 而不是 SWIG。

TA-Lib is widely used by trading software developers requiring to perform technical analysis of financial market data.TA-Lib广泛应用与交易软件,和金融市场数据进行技术分析。

Includes 150+ indicators such as ADX, MACD, RSI, Stochastic, Bollinger Bands, etc.

Candlestick pattern recognition

Open-source API for C/C++, Java, Perl, Python and 100% Managed .NET

包含了150多个指标,包括:ADX, MACD, RSI, Stochastic, Bollinger Bands, 等.

K线形态识别

完全开源,支持 C/C++, Java, Perl, Python and 100% Managed .NET

案例(快速开始)

Similar to TA-Lib, the function interface provides a lightweight wrapper of the exposed TA-Lib indicators.

类似于TA-Lib,函数接口提供了一个暴漏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函数的使用,都需引入库文件:

import numpyimport talib

close = numpy.random.random(100)

计算收盘价的一个简单移动平均数SMA:

output = talib.SMA(close)

计算布林线,三指数移动平均:

from talib import MA_Typeupper, middle, lower = talib.BBANDS(close, matype=MA_Type.T3)

计算收盘价的动量,时间为5:

output = talib.MOM(close, timeperiod=5)

Abstract API Quick Start 抽象 API 快速入门

If you're already familiar with using the function API, you should feel right at home using the abstract API. Every function tak

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值