Skip to content

TA-Lib Functions

All technical-analysis functions, grouped by category. Each page documents the formula, inputs, outputs, and links to the C / Rust / Java source.

Cycle Indicators

  • 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

Math Operators

  • 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 Subtraction
  • SUM — Summation

Math Transform

  • 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

Momentum Indicators

  • 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
  • IMI — Intraday Momentum 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

Overlap Studies

  • ACCBANDS — Acceleration Bands
  • 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

Pattern Recognition

Price Transform

Statistic Functions

Volatility Indicators

  • ATR — Average True Range
  • NATR — Normalized Average True Range
  • TRANGE — True Range

Volume Indicators

  • AD — Chaikin A/D Line
  • ADOSC — Chaikin A/D Oscillator
  • OBV — On Balance Volume