# TA-LIB 200多个技术指标含有及计算式

**

## Overlap Studies Functions重叠指标

**

• BBANDS布林线指标

upperband, middleband, lowerband = BBANDS(close, timeperiod=5, nbdevup=2, nbdevdn=2, matype=0)

• DEMA双移动平均线

real = DEMA(close, timeperiod=30)

• EMA指数平均数

real = EMA(close, timeperiod=30)

• HT_TRENDLINE希尔伯特瞬时变换

real = HT_TRENDLINE(close)

• KAMA考夫曼的自适应移动平均线

real = KAMA(close, timeperiod=30)

• MA移动平均线

real = MA(close, timeperiod=30, matype=0)

• MAMA自适应移动平均线

mama, fama = MAMA(close, fastlimit=0, slowlimit=0)

• MAVP - 移动平均变动期
real = MAVP(close, periods, minperiod=2, maxperiod=30, matype=0)

• MIDPOINT - 中期点
real = MIDPOINT(close, timeperiod=14)

• MIDPRICE - 中期价格
real = MIDPRICE(high, low, timeperiod=14)

• SAR抛物线指标

real = SAR(high, low, acceleration=0, maximum=0)

• SAREXT 抛物面SAR扩展
real = SAREXT(high, low, startvalue=0, offsetonreverse=0, accelerationinitlong=0, accelerationlong=0, accelerationmaxlong=0, accelerationinitshort=0, accelerationshort=0, accelerationmaxshort=0)

• SMA移动平均线（与MA无区别）
real = SMA(close, timeperiod=30)

• T3三重指数移动平均线

TRIX长线操作时采用本指标的讯号，长时间按照本指标讯号交易，获利百分比大于损失百分比，利润相当可观。

real = T3(close, timeperiod=5, vfactor=0)

• TEMA三重指数移动平均线（与T3无区别）
real = TEMA(close, timeperiod=30)

• TRIMA - 三角移动平均线
real = TRIMA(close, timeperiod=30)

• WMA移动加权平均法

real = WMA(close, timeperiod=30)


**

## Momentum Indicator Functions动量指标

**

real = ADX(high, low, close, timeperiod=14)


real = ADXR(high, low, close, timeperiod=14)

• APO - 绝对价格振荡器
real = APO(close, fastperiod=12, slowperiod=26, matype=0)

• AROON阿隆指标

aroondown, aroonup = AROON(high, low, timeperiod=14)

• AROONOSC阿隆振荡
real = AROONOSC(high, low, timeperiod=14)

• BOP均势指标
real = BOP(open, high, low, close)

• CCI顺势指标

real = CCI(high, low, close, timeperiod=14)

• CMO钱德动量摆动指标

real = CMO(close, timeperiod=14)

• DX动向指标或趋向指标

real = DX(high, low, close, timeperiod=14)

• MACD平滑异同移动平均线

macd, macdsignal, macdhist = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)

• MACDEXT - 具有可控MA类型的MACD
macd, macdsignal, macdhist = MACDEXT(close, fastperiod=12, fastmatype=0, slowperiod=26, slowmatype=0, signalperiod=9, signalmatype=0)

• MACDFIX - 移动平均收敛/发散修正
macd, macdsignal, macdhist = MACDFIX(close, signalperiod=9)

• MFI资金流量指标

real = MFI(high, low, close, volume, timeperiod=14)

• MINUS_DI下升动向值(与DX相似)

real = MINUS_DI(high, low, close, timeperiod=14)

• MINUS_DM上升动向值（与DX相似）

real = MINUS_DM(high, low, timeperiod=14)

• MOM上升动向值

real = MOM(close, timeperiod=10)

• PLUS_DI - Plus方向指示器
real = PLUS_DI(high, low, close, timeperiod=14)

• PLUS_DM - Plus定向运动
real = PLUS_DM(high, low, timeperiod=14)

• PPO价格震荡百分比指数（与MACD相似）
real = PPO(close, fastperiod=12, slowperiod=26, matype=0)

• ROC变动率指标

real = ROC(close, timeperiod=10)

• ROCP - 变化率百分比
real = ROCP(close, timeperiod=10)

• ROCR - 变化率比率
real = ROCR(close, timeperiod=10)

• ROCR100 - 变化率100比例
real = ROCR100(close, timeperiod=10)

• RSI相对强弱指数

real = RSI(close, timeperiod=14)

• STOCH - Stochastic KDJ指标中的KD指标
slowk, slowd = STOCH(high, low, close, fastk_period=5, slowk_period=3, slowk_matype=0, slowd_period=3, slowd_matype=0)

• STOCHF - 随机快速
fastk, fastd = STOCHF(high, low, close, fastk_period=5, fastd_period=3, fastd_matype=0)

• STOCHRSI - 随机相对强弱指数
fastk, fastd = STOCHRSI(close, timeperiod=14, fastk_period=5, fastd_period=3, fastd_matype=0)

• TRIX - 三次平滑EMA的1天变化率（与ROC相似）
real = TRIX(close, timeperiod=30)

• ULTOSC终极波动指标

real = ULTOSC(high, low, close, timeperiod1=7, timeperiod2=14, timeperiod3=28)

• WILLR威廉指标

real = WILLR(high, low, close, timeperiod=14)


**

## Volume Indicators成交量指标

**

real = AD(high, low, close, volume)


real = ADOSC(high, low, close, volume, fastperiod=3, slowperiod=10)

• OBV能量潮

real = OBV(close, volume)


**

## Volatility Indicator Functions波动率指标函数

**

• ATR真实波动幅度均值

real = ATR(high, low, close, timeperiod=14)

• NATR归一化波动幅度均值
real = NATR(high, low, close, timeperiod=14)

• TRANGE真正的范围
real = TRANGE(high, low, close)


**

## Price Transform Functions价格指标

**

• AVGPRICE平均价格函数
real = AVGPRICE(open, high, low, close)

• MEDPRICE中位数价格
real = MEDPRICE(high, low)

• TYPPRICE代表性价格
real = TYPPRICE(high, low, close)

• WCLPRICE加权收盘价
real = WCLPRICE(high, low, close)


**

## Cycle Indicator Functions周期指标

**

• HT_DCPERIOD希尔伯特变换-主导周期

real = HT_DCPERIOD(close)

• HT_DCPHASE希尔伯特变换-主导循环阶段
real = HT_DCPHASE(close)

• HT_ PHASOR希尔伯特变换-希尔伯特变换相量分量
inphase, quadrature = HT_PHASOR(close)

• HT_ SINE希尔伯特变换-正弦波
sine, leadsine = HT_SINE(close)

• HT_ TRENDMODE希尔伯特变换-趋势与周期模式
integer = HT_TRENDMODE(close)


**

## Math Transform Functions 数学变换

**

• ACOS反余弦
ACOS(close)

• ASIN反正弦
ASIN(close)

• ASIN反正切
ATAN(close)

• CEIL向上取整数
CEIL(close)

• COS余弦函数
COS(close)

• COSH双曲正弦函数
COSH(close)

• EXP指数曲线
EXP(close)

• FLOOR向下取整数
FLOOR(close)

• LN自然对数
LN(close)

• LOG10对数函数log
LOG10(close)

• SIN正弦函数
SIN(close)

• SINH双曲正弦函数
SINH(close)

• SQRT非负实数的平方根
SQRT(close)

• TAN正切函数
TAN(close)

• TANH双曲正切函数
TANH(close)


**

## Math Operator Functions 数学方法

**

real = ADD(high, low)

• DIV向量除法运算
real = DIV(high, low)

• MAX周期内最大值
real = MAX(close, timeperiod=30)

• MAXINDEX周期内最大值的索引
integer = MAXINDEX(close, timeperiod=30)

• MIN周期内最小值
real = MIN(close, timeperiod=30)

• MININDEX周期内最小值的索引
integer = MININDEX(close, timeperiod=30)

• MINMAX周期内最小值和最大值
min, max = MINMAX(close, timeperiod=30)

• MINMAX周期内最小值和最大值索引
minidx, maxidx = MINMAXINDEX(close, timeperiod=30)

• MULT向量乘法运算
MULT(high, low)

• SUB向量减法运算
SUB(high, low)

• SUM周期内求和
real = SUM(close, timeperiod=30)


**

## Statistic Functions 统计类指标

**

• BATE
real = BETA(high, low, timeperiod=5)

• CORREL
real = CORREL(high, low, timeperiod=30)

• LINEARREG
real = LINEARREG(close, timeperiod=14)

• LINEARREG_ANGLE
real = LINEARREG_ANGLE(close, timeperiod=14)

• LINEARREG_INTERCEPT
real = LINEARREG_INTERCEPT(close, timeperiod=14)

• LINEARREG_SLOPE
real = LINEARREG_SLOPE(close, timeperiod=14)

• STDDEV
real = STDDEV(close, timeperiod=5, nbdev=1)

• TSF
real = TSF(close, timeperiod=14)

• VAR
real = VAR(close, timeperiod=5, nbdev=1)


**

## Pattern Recognition Functions K线模式识别，形态识别

**

• CDL2CROWS两只乌鸦

integer = CDL2CROWS(open, high, low, close)

• CDL3BLACKCROWS三只乌鸦

integer = CDL3BLACKCROWS(open, high, low, close)

• CDL3INSIDE三内部上涨和下跌

integer = CDL3INSIDE(open, high, low, close)

• CDL3LINESTRIKE三线打击

integer = CDL3LINESTRIKE(open, high, low, close)

• CDL3OUTSIDE三外部上涨和下跌

integer = CDL3OUTSIDE(open, high, low, close)

• CDL3STARSINSOUTH南方三星

integer = CDL3STARSINSOUTH(open, high, low, close)

• CDL3WHITESOLDIERS三个白兵

integer = CDL3WHITESOLDIERS(open, high, low, close)

• CDLABANDONEDBABY弃婴

integer = CDLABANDONEDBABY(open, high, low, close, penetration=0)


integer = CDLADVANCEBLOCK(open, high, low, close)

• CDLBELTHOLD捉腰带线

integer = CDLBELTHOLD(open, high, low, close)

• CDLBREAKAWAY脱离

integer = CDLBREAKAWAY(open, high, low, close)

• CDLCLOSINGMARUBOZU收盘缺影线

integer = CDLCLOSINGMARUBOZU(open, high, low, close)

• CDLCONCEALBABYSWALL藏婴吞没

integer = CDLCONCEALBABYSWALL(open, high, low, close)

• CDLCOUNTERATTACK反击线

integer = CDLCOUNTERATTACK(open, high, low, close)

• CDLDARKCLOUDCOVER乌云压顶

integer = CDLDARKCLOUDCOVER(open, high, low, close, penetration=0)

• CDLDOJI十字

integer = CDLDOJI(open, high, low, close)

• CDLDOJISTAR十字星

integer = CDLDOJISTAR(open, high, low, close)

• CDLDRAGONFLYDOJI蜻蜓十字/T形十字

integer = CDLDRAGONFLYDOJI(open, high, low, close)

• CDLENGULFING吞噬模式

integer = CDLENGULFING(open, high, low, close)

• CDLEVENINGDOJISTAR十字暮星

integer = CDLEVENINGDOJISTAR(open, high, low, close, penetration=0)

• CDLEVENINGSTAR暮星

integer = CDLEVENINGSTAR(open, high, low, close, penetration=0)

• CDLGAPSIDESIDEWHITE向上/下跳空并列阳线

integer = CDLGAPSIDESIDEWHITE(open, high, low, close)

• CDLGRAVESTONEDOJI墓碑十字/倒T十字

integer = CDLGRAVESTONEDOJI(open, high, low, close)

• CDLHAMMER锤头

integer = CDLHAMMER(open, high, low, close)

• CDLHANGINGMAN上吊线

integer = CDLHANGINGMAN(open, high, low, close)

• CDLHARAMI母子线

integer = CDLHARAMI(open, high, low, close)

• CDLHARAMICROSS十字孕线

integer = CDLHARAMICROSS(open, high, low, close)

• CDLHIGHWAVE风高浪大线

integer = CDLHIGHWAVE(open, high, low, close)

• CDLHIKKAKE陷阱

integer = CDLHIKKAKE(open, high, low, close)

• CDLHIKKAKEMOD修正陷阱

integer = CDLHIKKAKEMOD(open, high, low, close)

• CDLHOMINGPIGEON家鸽

integer = CDLHOMINGPIGEON(open, high, low, close)

• CDLIDENTICAL3CROWS三胞胎乌鸦

integer = CDLIDENTICAL3CROWS(open, high, low, close)

• CDLINNECK颈内线

integer = CDLINNECK(open, high, low, close)

• CDLINVERTEDHAMMER倒锤头

integer = CDLINVERTEDHAMMER(open, high, low, close)

• CDLKICKING反冲形态

integer = CDLKICKING(open, high, low, close)

• CDLKICKINGBYLENGTH由较长缺影线决定的反冲形态

integer = CDLKICKINGBYLENGTH(open, high, low, close)


integer = CDLLADDERBOTTOM(open, high, low, close)

• CDLLONGLEGGEDDOJI长脚十字

integer = CDLLONGLEGGEDDOJI(open, high, low, close)

• CDLLONGLINE长蜡烛

integer = CDLLONGLINE(open, high, low, close)

• CDLMARUBOZU光头光脚/缺影线

integer = CDLMARUBOZU(open, high, low, close)

• CDLMATCHINGLOW相同低价

integer = CDLMATCHINGLOW(open, high, low, close)

• CDLMATHOLD铺垫

integer = CDLMATHOLD(open, high, low, close, penetration=0)

• CDLMORNINGDOJISTAR十字晨星

integer = CDLMORNINGDOJISTAR(open, high, low, close, penetration=0)

• CDLMORNINGSTAR晨星

integer = CDLMORNINGSTAR(open, high, low, close, penetration=0)

• CDLONNECK颈上线

integer = CDLONNECK(open, high, low, close)

• CDLPIERCING刺透形态

integer = CDLPIERCING(open, high, low, close)

• CDLRICKSHAWMAN黄包车夫

integer = CDLRICKSHAWMAN(open, high, low, close)

• CDLRISEFALL3METHODS上升/下降三法

integer = CDLRISEFALL3METHODS(open, high, low, close)

• CDLSEPARATINGLINES分离线

integer = CDLSEPARATINGLINES(open, high, low, close)

• CDLSHOOTINGSTAR射击之星

integer = CDLSHOOTINGSTAR(open, high, low, close)

• CDLSHORTLINE短蜡烛

integer = CDLSHORTLINE(open, high, low, close)

• CDLSPINNINGTOP纺锤

integer = CDLSPINNINGTOP(open, high, low, close)

• CDLSTALLEDPATTERN停顿形态

integer = CDLSTALLEDPATTERN(open, high, low, close)

• CDLSTICKSANDWICH条形三明治

integer = CDLSTICKSANDWICH(open, high, low, close)

• CDLTAKURI探水竿

integer = CDLTAKURI(open, high, low, close)

• CDLTASUKIGAP跳空并列阴阳线

integer = CDLTASUKIGAP(open, high, low, close)

• CDLTHRUSTING插入

integer = CDLTHRUSTING(open, high, low, close)

• CDLTRISTAR三星

integer = CDLTRISTAR(open, high, low, close)

• CDLUNIQUE3RIVER奇特三河床

integer = CDLUNIQUE3RIVER(open, high, low, close)

• CDLUPSIDEGAP2CROWS向上跳空的两只乌鸦

integer = CDLUPSIDEGAP2CROWS(open, high, low, close)

• CDLXSIDEGAP3METHODS上升/下降跳空三法

integer = CDLXSIDEGAP3METHODS(open, high, low, close)

• 点赞 11
• 评论 3
• 分享
x

海报分享

扫一扫，分享海报

• 收藏 47
• 手机看

分享到微信朋友圈

x

扫一扫，手机阅读

• 打赏

打赏

c.x.y.07.30

你的鼓励将是我创作的最大动力

C币 余额
2C币 4C币 6C币 10C币 20C币 50C币
• 一键三连

点赞Mark关注该博主, 随时了解TA的最新博文
08-08 1万+

10-19 4978
02-28 4531
04-21 1万+
07-25 3434
11-12 8422
03-19 1038
04-15 2831
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客