ta-lib指标使用

均线

类型代码计算方法
N日简单移动平均线ta.SMA(close,timeperiod=N)N日移动平均线 = N日收盘价之和/N
N日指数移动均线ta.EMA(close,timeperiod=N)N日指数移动均线
N日加权移动均线ta.WMA(close,timeperiod=N)N日加权移动均线
类型中文释义代码
Double Exponential Moving Average双指数移动平均线ta.DEMA(close, timeperiod=30)
Hilbert Transform – Instantaneous Trendline希尔伯特变换——瞬时趋势线ta.HT_TRENDLINE(close)
Kaufman Adaptive Moving Average考夫曼自适应移动平均线ta.KAMA(close, timeperiod=30)
MESA Adaptive Moving AverageMESA自适应移动平均ta.MAMA(close, fastlimit=0, slowlimit=0)
Moving average with variable period变周期移动平均线ta.MAVP(close, periods, minperiod=2, maxperiod=30, matype=0)
MidPoint over period一段时间收盘价的最大值和最小值的均值构成的线ta.MIDPOINT(close, timeperiod=14)
Midpoint Price over period一段时间高价的最大值和低价的最小值的均值构成的线ta.MIDPRICE(high, low, timeperiod=14)
Parabolic SAR抛物线指标ta.SAR(high, low, acceleration=0, maximum=0)
Triple Exponential Moving Average (T3)三指数移动平均线(T3)ta.T3(close, timeperiod=5, vfactor=0)
Triple Exponential Moving Average三指数移动平均线ta.TEMA(close, timeperiod=30)
Triangular Moving Average三角形加权法ta.TRIMA(close, timeperiod=30)
***

布林线

类型计算方法代码
中间线过去20交易日收盘价均线ta.BBANDS(close, timeperiod=5, nbdevup=2, nbdevdn=2, matype=0)
Upper线中间线+2*过去20交易日收盘价的标准差ta.BBANDS(close, timeperiod=5, nbdevup=2, nbdevdn=2, matype=0)
Down线中间线-2*过去20交易日收盘价的标准差ta.BBANDS(close, timeperiod=5, nbdevup=2, nbdevdn=2, matype=0)

其他

类型中文释义代码
Average Directional Movement Index平均方向移动指数ta.ADX(high, low, close, timeperiod=14)
Average Directional Movement Index Rating平均方向移动指标排名ta.ADXR(high, low, close, timeperiod=14)
Absolute Price Oscillator绝对价格振荡器ta.APO(close, fastperiod=12, slowperiod=26, matype=0)
Aroon阿隆指标ta.AROON(high, low, timeperiod=14)
Aroon Oscillator阿隆振荡器ta.AROONOSC(high, low, timeperiod=14)
Balance Of Power均势指标ta.BOP(open, high, low, close)
Commodity Channel Index商品通道指数ta.CCI(high, low, close, timeperiod=14)
Chande Momentum Oscillator钱德动量摆动指标ta.CMO(close, timeperiod=14)
Directional Movement Index方向性移动指标ta.DX(high, low, close, timeperiod=14)
MACD with controllable MA type带可控MA类型的MACDta.MACDEXT(close, fastperiod=12, fastmatype=0, slowperiod=26, slowmatype=0, signalperiod=9, signalmatype=0)
Moving Average Convergence/Divergence Fix 12/26移动平均收敛/散度 固定 12/26ta.MACDFIX(close, signalperiod=9)
Money Flow Index资金流量指标ta.MFI(high, low, close, volume, timeperiod=14)
Minus Directional Indicator负向指标ta.MINUS_DI(high, low, close, timeperiod=14)
Minus Directional Movement负向运行指标ta.MINUS_DM(high, low, timeperiod=14)
Momentum动量ta.MOM(close, timeperiod=10)
Plus Directional Indicator正向指标ta.PLUS_DI(high, low, close, timeperiod=14)
Plus Directional Movement正向移动指标ta.PLUS_DM(high, low, timeperiod=14)
Percentage Price Oscillator比例价格振荡器ta.PPO(close, fastperiod=12, slowperiod=26, matype=0)
Rate of change变化率 ((price/prevPrice)-1)*100ta.ROC(close, timeperiod=10)
Rate of change Percentage变化率百分比 (price-prevPrice)/prevPriceta.ROCP(close, timeperiod=10)
Rate of change ratio变化率的比率 (price/prevPrice)ta.ROCR(close, timeperiod=10)
Rate of change ratio 100 scale变化率的比率100倍 (price/prevPrice)*100ta.ROCR100(close, timeperiod=10)
Relative Strength Index相对强弱指数ta.RSI(close, timeperiod=14)
Stochastic Fast随机指标快速线ta.STOCHF(high, low, close, fastk_period=5, fastd_period=3, fastd_matype=0)
Stochastic Relative Strength Index随机相对强弱指标ta.STOCHRSI(close, timeperiod=14, fastk_period=5, fastd_period=3, fastd_matype=0)
1-day Rate-Of-Change (ROC) of a Triple Smooth EMA三重光滑EMA的日变化率ta.TRIX(close, timeperiod=30)
Ultimate Oscillator终极指标ta.ULTOSC(high, low, close, timeperiod1=7, timeperiod2=14, timeperiod3=28)
Williams’ %R威廉指标ta.WILLR(high, low, close, timeperiod=14)
0 0 投票数
Article Rating
订阅评论
提醒
guest
2 评论
最旧
最新 最多投票
内联反馈
查看所有评论
2
0
希望看到您的想法,请您发表评论x