重叠研究
BBANDS Bollinger Bands
DEMA Double Exponential Moving Average
EMA Exponential Moving Average
HT_TRENDLINE Hilbert Transform - Instantaneous Trendline
KAMA Kaufman Adaptive Moving Average
MA Moving average
MAMA MESA Adaptive Moving Average
MAVP Moving average with variable period
MIDPOINT MidPoint over period
MIDPRICE Midpoint Price over period
SAR Parabolic SAR
SAREXT Parabolic SAR - Extended
SMA Simple Moving Average
T3 Triple Exponential Moving Average (T3)
TEMA Triple Exponential Moving Average
TRIMA Triangular Moving Average
WMA Weighted Moving Average
动能指标
ADX Average Directional Movement Index
ADXR Average Directional Movement Index Rating
APO Absolute Price Oscillator
AROON Aroon
AROONOSC Aroon Oscillator
BOP Balance Of Power
CCI Commodity Channel Index
CMO Chande Momentum Oscillator
DX Directional Movement Index
MACD Moving Average Convergence/Divergence
MACDEXT MACD with controllable MA type
MACDFIX Moving Average Convergence/Divergence Fix 12/26
MFI Money Flow Index
MINUS_DI Minus Directional Indicator
MINUS_DM Minus Directional Movement
MOM Momentum
PLUS_DI Plus Directional Indicator
PLUS_DM Plus Directional Movement
PPO Percentage Price Oscillator
ROC Rate of change : ((price/prevPrice)-1)*100
ROCP Rate of change Percentage: (price-prevPrice)/prevPrice
ROCR Rate of change ratio: (price/prevPrice)
ROCR100 Rate of change ratio 100 scale: (price/prevPrice)*100
RSI Relative Strength Index
STOCH Stochastic
STOCHF Stochastic Fast
STOCHRSI Stochastic Relative Strength Index
TRIX 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
ULTOSC Ultimate Oscillator
WILLR Williams' %R
体积指标
AD Chaikin A/D Line
ADOSC Chaikin A/D Oscillator
OBV On Balance Volume
周期指标
HT_DCPERIOD Hilbert Transform - Dominant Cycle Period
HT_DCPHASE Hilbert Transform - Dominant Cycle Phase
HT_PHASOR Hilbert Transform - Phasor Components
HT_SINE Hilbert Transform - SineWave
HT_TRENDMODE Hilbert Transform - Trend vs Cycle Mode
价格︰ 变换
AVGPRICE Average Price
MEDPRICE Median Price
TYPPRICE Typical Price
WCLPRICE Weighted Close Price
波动性指标
ATR Average True Range
NATR Normalized Average True Range
TRANGE True Range
模式识别
CDL2CROWS Two Crows
CDL3BLACKCROWS Three Black Crows
CDL3INSIDE Three Inside Up/Down
CDL3LINESTRIKE Three-Line Strike
CDL3OUTSIDE Three Outside Up/Down
CDL3STARSINSOUTH Three Stars In The South
CDL3WHITESOLDIERS Three Advancing White Soldiers
CDLABANDONEDBABY Abandoned Baby
CDLADVANCEBLOCK Advance Block
CDLBELTHOLD Belt-hold
CDLBREAKAWAY Breakaway
CDLCLOSINGMARUBOZU Closing Marubozu
CDLCONCEALBABYSWALL Concealing Baby Swallow
CDLCOUNTERATTACK Counterattack
CDLDARKCLOUDCOVER Dark Cloud Cover
CDLDOJI Doji
CDLDOJISTAR Doji Star
CDLDRAGONFLYDOJI Dragonfly Doji
CDLENGULFING Engulfing Pattern
CDLEVENINGDOJISTAR Evening Doji Star
CDLEVENINGSTAR Evening Star
CDLGAPSIDESIDEWHITE Up/Down-gap side-by-side white lines
CDLGRAVESTONEDOJI Gravestone Doji
CDLHAMMER Hammer
CDLHANGINGMAN Hanging Man
CDLHARAMI Harami Pattern
CDLHARAMICROSS Harami Cross Pattern
CDLHIGHWAVE High-Wave Candle
CDLHIKKAKE Hikkake Pattern
CDLHIKKAKEMOD Modified Hikkake Pattern
CDLHOMINGPIGEON Homing Pigeon
CDLIDENTICAL3CROWS Identical Three Crows
CDLINNECK In-Neck Pattern
CDLINVERTEDHAMMER Inverted Hammer
CDLKICKING Kicking
CDLKICKINGBYLENGTH Kicking - bull/bear determined by the longer marubozu
CDLLADDERBOTTOM Ladder Bottom
CDLLONGLEGGEDDOJI Long Legged Doji
CDLLONGLINE Long Line Candle
CDLMARUBOZU Marubozu
CDLMATCHINGLOW Matching Low
CDLMATHOLD Mat Hold
CDLMORNINGDOJISTAR Morning Doji Star
CDLMORNINGSTAR Morning Star
CDLONNECK On-Neck Pattern
CDLPIERCING Piercing Pattern
CDLRICKSHAWMAN Rickshaw Man
CDLRISEFALL3METHODS Rising/Falling Three Methods
CDLSEPARATINGLINES Separating Lines
CDLSHOOTINGSTAR Shooting Star
CDLSHORTLINE Short Line Candle
CDLSPINNINGTOP Spinning Top
CDLSTALLEDPATTERN Stalled Pattern
CDLSTICKSANDWICH Stick Sandwich
CDLTAKURI Takuri (Dragonfly Doji with very long lower shadow)
CDLTASUKIGAP Tasuki Gap
CDLTHRUSTING Thrusting Pattern
CDLTRISTAR Tristar Pattern
CDLUNIQUE3RIVER Unique 3 River
CDLUPSIDEGAP2CROWS Upside Gap Two Crows
CDLXSIDEGAP3METHODS Upside/Downside Gap Three Methods
统计函数
BETA Beta
CORREL Pearson's Correlation Coefficient (r)
LINEARREG Linear Regression
LINEARREG_ANGLE Linear Regression Angle
LINEARREG_INTERCEPT Linear Regression Intercept
LINEARREG_SLOPE Linear Regression Slope
STDDEV Standard Deviation
TSF Time Series Forecast
VAR Variance
数学变换
ACOS Vector Trigonometric ACos
ASIN Vector Trigonometric ASin
ATAN Vector Trigonometric ATan
CEIL Vector Ceil
COS Vector Trigonometric Cos
COSH Vector Trigonometric Cosh
EXP Vector Arithmetic Exp
FLOOR Vector Floor
LN Vector Log Natural
LOG10 Vector Log10
SIN Vector Trigonometric Sin
SINH Vector Trigonometric Sinh
SQRT Vector Square Root
TAN Vector Trigonometric Tan
TANH Vector Trigonometric Tanh
数学运算符
ADD Vector Arithmetic Add
DIV Vector Arithmetic Div
MAX Highest value over a specified period
MAXINDEX Index of highest value over a specified period
MIN Lowest value over a specified period
MININDEX Index of lowest value over a specified period
MINMAX Lowest and highest values over a specified period
MINMAXINDEX Indexes of lowest and highest values over a specified period
MULT Vector Arithmetic Mult
SUB Vector Arithmetic Substraction
SUM Summation
以下提供的用法仅作参考最好的方法是在程序内调用帮助程序。
# 导入TA-Lib import talib talib.OBV?
upperband, middleband, lowerband = BBANDS(close, timeperiod=5, nbdevup=2, nbdevdn=2, matype=0)
real = DEMA(close, timeperiod=30)
real = EMA(close, timeperiod=30)
real = HT_TRENDLINE(close)
real = KAMA(close, timeperiod=30)
real = MA(close, timeperiod=30, matype=0)
mama, fama = MAMA(close, fastlimit=0, slowlimit=0)
real = MAVP(close, periods, minperiod=2, maxperiod=30, matype=0)
real = MIDPOINT(close, timeperiod=14)
real = MIDPRICE(high, low, timeperiod=14)
real = SAR(high, low, acceleration=0, maximum=0)
real = SAREXT(high, low, startvalue=0, offsetonreverse=0, accelerationinitlong=0,
accelerationlong=0, accelerationmaxlong=0, accelerationinitshort=0, accelerationshort=0, accelerationmaxshort=0)
real = SMA(close, timeperiod=30)
real = T3(close, timeperiod=5, vfactor=0)
real = TEMA(close, timeperiod=30)
real = TRIMA(close, timeperiod=30)
real = WMA(close, timeperiod=30)
real = ADX(high, low, close, timeperiod=14)
real = ADXR(high, low, close, timeperiod=14)
real = APO(close, fastperiod=12, slowperiod=26, matype=0)
aroondown, aroonup = AROON(high, low, timeperiod=14)
real = AROONOSC(high, low, timeperiod=14)
real = BOP(open, high, low, close)
real = CCI(high, low, close, timeperiod=14)
real = CMO(close, timeperiod=14)
real = DX(high, low, close, timeperiod=14)
macd, macdsignal, macdhist = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)
macd, macdsignal, macdhist = MACDEXT(close, fastperiod=12, fastmatype=0, slowperiod=26,
slowmatype=0, signalperiod=9, signalmatype=0)
macd, macdsignal, macdhist = MACDFIX(close, signalperiod=9)
real = MFI(high, low, close, volume, timeperiod=14)
real = MINUS_DI(high, low, close, timeperiod=14)
real = MINUS_DM(high, low, timeperiod=14)
real = MOM(close, timeperiod=10)
real = PLUS_DI(high, low, close, timeperiod=14)
real = PLUS_DM(high, low, timeperiod=14)
real = PPO(close, fastperiod=12, slowperiod=26, matype=0)
real = ROC(close, timeperiod=10)
real = ROCP(close, timeperiod=10)
real = ROCR(close, timeperiod=10)
real = ROCR100(close, timeperiod=10)
real = RSI(close, timeperiod=14)
slowk, slowd = STOCH(high, low, close, fastk_period=5, slowk_period=3, slowk_matype=0,
slowd_period=3, slowd_matype=0)
fastk, fastd = STOCHF(high, low, close, fastk_period=5, fastd_period=3, fastd_matype=0)
fastk, fastd = STOCHRSI(close, timeperiod=14, fastk_period=5, fastd_period=3, fastd_matype=0)
real = TRIX(close, timeperiod=30)
real = ULTOSC(high, low, close, timeperiod1=7, timeperiod2=14, timeperiod3=28)
real = WILLR(high, low, close, timeperiod=14)
real = AD(high, low, close, volume)
real = ADOSC(high, low, close, volume, fastperiod=3, slowperiod=10)
real = OBV(close, volume)
real = ATR(high, low, close, timeperiod=14)
real = NATR(high, low, close, timeperiod=14)
real = TRANGE(high, low, close)
real = AVGPRICE(open, high, low, close)
real = MEDPRICE(high, low)
real = TYPPRICE(high, low, close)
real = WCLPRICE(high, low, close)
real = HT_DCPERIOD(close)
real = HT_DCPHASE(close)
inphase, quadrature = HT_PHASOR(close)
sine, leadsine = HT_SINE(close)
integer = HT_TRENDMODE(close)
integer = CDL2CROWS(open, high, low, close)
integer = CDL3BLACKCROWS(open, high, low, close)
integer = CDL3INSIDE(open, high, low, close)
integer = CDL3LINESTRIKE(open, high, low, close)
integer = CDL3OUTSIDE(open, high, low, close)
integer = CDL3STARSINSOUTH(open, high, low, close)
integer = CDL3WHITESOLDIERS(open, high, low, close)
integer = CDLABANDONEDBABY(open, high, low, close, penetration=0)
integer = CDLADVANCEBLOCK(open, high, low, close)
integer = CDLBELTHOLD(open, high, low, close)
integer = CDLBREAKAWAY(open, high, low, close)
integer = CDLCLOSINGMARUBOZU(open, high, low, close)
integer = CDLCONCEALBABYSWALL(open, high, low, close)
integer = CDLCOUNTERATTACK(open, high, low, close)
integer = CDLDARKCLOUDCOVER(open, high, low, close, penetration=0)
integer = CDLDOJI(open, high, low, close)
integer = CDLDOJISTAR(open, high, low, close)
integer = CDLDRAGONFLYDOJI(open, high, low, close)
integer = CDLENGULFING(open, high, low, close)
integer = CDLEVENINGDOJISTAR(open, high, low, close, penetration=0)
integer = CDLEVENINGSTAR(open, high, low, close, penetration=0)
integer = CDLGAPSIDESIDEWHITE(open, high, low, close)
integer = CDLGRAVESTONEDOJI(open, high, low, close)
integer = CDLHAMMER(open, high, low, close)
integer = CDLHANGINGMAN(open, high, low, close)
integer = CDLHARAMI(open, high, low, close)
integer = CDLHARAMICROSS(open, high, low, close)
integer = CDLHIGHWAVE(open, high, low, close)
integer = CDLHIKKAKE(open, high, low, close)
integer = CDLHIKKAKEMOD(open, high, low, close)
integer = CDLHOMINGPIGEON(open, high, low, close)
integer = CDLIDENTICAL3CROWS(open, high, low, close)
integer = CDLINNECK(open, high, low, close)
integer = CDLINVERTEDHAMMER(open, high, low, close)
integer = CDLKICKING(open, high, low, close)
integer = CDLKICKINGBYLENGTH(open, high, low, close)
integer = CDLLADDERBOTTOM(open, high, low, close)
integer = CDLLONGLEGGEDDOJI(open, high, low, close)
integer = CDLLONGLINE(open, high, low, close)
integer = CDLMARUBOZU(open, high, low, close)
integer = CDLMATCHINGLOW(open, high, low, close)
integer = CDLMATHOLD(open, high, low, close, penetration=0)
integer = CDLMORNINGDOJISTAR(open, high, low, close, penetration=0)
integer = CDLMORNINGSTAR(open, high, low, close, penetration=0)
integer = CDLONNECK(open, high, low, close)
integer = CDLPIERCING(open, high, low, close)
integer = CDLRICKSHAWMAN(open, high, low, close)
integer = CDLRISEFALL3METHODS(open, high, low, close)
integer = CDLSEPARATINGLINES(open, high, low, close)
integer = CDLSHOOTINGSTAR(open, high, low, close)
integer = CDLSHORTLINE(open, high, low, close)
integer = CDLSPINNINGTOP(open, high, low, close)
integer = CDLSTALLEDPATTERN(open, high, low, close)
integer = CDLSTICKSANDWICH(open, high, low, close)
integer = CDLTAKURI(open, high, low, close)
integer = CDLTASUKIGAP(open, high, low, close)
integer = CDLTHRUSTING(open, high, low, close)
integer = CDLTRISTAR(open, high, low, close)
integer = CDLUNIQUE3RIVER(open, high, low, close)
integer = CDLUPSIDEGAP2CROWS(open, high, low, close)
integer = CDLXSIDEGAP3METHODS(open, high, low, close)
real = BETA(high, low, timeperiod=5)
real = CORREL(high, low, timeperiod=30)
real = LINEARREG(close, timeperiod=14)
real = LINEARREG_ANGLE(close, timeperiod=14)
real = LINEARREG_INTERCEPT(close, timeperiod=14)
real = LINEARREG_SLOPE(close, timeperiod=14)
real = STDDEV(close, timeperiod=5, nbdev=1)
real = TSF(close, timeperiod=14)
real = VAR(close, timeperiod=5, nbdev=1)
real = ACOS(close)
real = ASIN(close)
real = ATAN(close)
real = CEIL(close)
real = COS(close)
real = COSH(close)
real = EXP(close)
real = FLOOR(close)
real = LN(close)
real = LOG10(close)
real = SIN(close)
real = SINH(close)
real = SQRT(close)
real = TAN(close)
real = TANH(close)
real = ADD(high, low)
real = DIV(high, low)
real = MAX(close, timeperiod=30)
integer = MAXINDEX(close, timeperiod=30)
real = MIN(close, timeperiod=30)
integer = MININDEX(close, timeperiod=30)
min, max = MINMAX(close, timeperiod=30)
minidx, maxidx = MINMAXINDEX(close, timeperiod=30)
real = MULT(high, low)
real = SUB(high, low)
real = SUM(close, timeperiod=30)