---
title: Functions
description: "All TA-Lib technical analysis functions, grouped by category."
---

# 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](ht_dcperiod.md) — Hilbert Transform - Dominant Cycle Period
- [HT_DCPHASE](ht_dcphase.md) — Hilbert Transform - Dominant Cycle Phase
- [HT_PHASOR](ht_phasor.md) — Hilbert Transform - Phasor Components
- [HT_SINE](ht_sine.md) — Hilbert Transform - SineWave
- [HT_TRENDMODE](ht_trendmode.md) — Hilbert Transform - Trend vs Cycle Mode

## Math Operators

- [ADD](add.md) — Vector Arithmetic Add
- [DIV](div.md) — Vector Arithmetic Div
- [MAX](max.md) — Highest value over a specified period
- [MAXINDEX](maxindex.md) — Index of highest value over a specified period
- [MIN](min.md) — Lowest value over a specified period
- [MININDEX](minindex.md) — Index of lowest value over a specified period
- [MINMAX](minmax.md) — Lowest and highest values over a specified period
- [MINMAXINDEX](minmaxindex.md) — Indexes of lowest and highest values over a specified period
- [MULT](mult.md) — Vector Arithmetic Mult
- [SUB](sub.md) — Vector Arithmetic Subtraction
- [SUM](sum.md) — Summation

## Math Transform

- [ACOS](acos.md) — Vector Trigonometric ACos
- [ASIN](asin.md) — Vector Trigonometric ASin
- [ATAN](atan.md) — Vector Trigonometric ATan
- [CEIL](ceil.md) — Vector Ceil
- [COS](cos.md) — Vector Trigonometric Cos
- [COSH](cosh.md) — Vector Trigonometric Cosh
- [EXP](exp.md) — Vector Arithmetic Exp
- [FLOOR](floor.md) — Vector Floor
- [LN](ln.md) — Vector Log Natural
- [LOG10](log10.md) — Vector Log10
- [SIN](sin.md) — Vector Trigonometric Sin
- [SINH](sinh.md) — Vector Trigonometric Sinh
- [SQRT](sqrt.md) — Vector Square Root
- [TAN](tan.md) — Vector Trigonometric Tan
- [TANH](tanh.md) — Vector Trigonometric Tanh

## Momentum Indicators

- [ADX](adx.md) — Average Directional Movement Index
- [ADXR](adxr.md) — Average Directional Movement Index Rating
- [APO](apo.md) — Absolute Price Oscillator
- [AROON](aroon.md) — Aroon
- [AROONOSC](aroonosc.md) — Aroon Oscillator
- [BOP](bop.md) — Balance Of Power
- [CCI](cci.md) — Commodity Channel Index
- [CMO](cmo.md) — Chande Momentum Oscillator
- [DX](dx.md) — Directional Movement Index
- [IMI](imi.md) — Intraday Momentum Index
- [MACD](macd.md) — Moving Average Convergence/Divergence
- [MACDEXT](macdext.md) — MACD with controllable MA type
- [MACDFIX](macdfix.md) — Moving Average Convergence/Divergence Fix 12/26
- [MFI](mfi.md) — Money Flow Index
- [MINUS_DI](minus_di.md) — Minus Directional Indicator
- [MINUS_DM](minus_dm.md) — Minus Directional Movement
- [MOM](mom.md) — Momentum
- [PLUS_DI](plus_di.md) — Plus Directional Indicator
- [PLUS_DM](plus_dm.md) — Plus Directional Movement
- [PPO](ppo.md) — Percentage Price Oscillator
- [ROC](roc.md) — Rate of change : ((price/prevPrice)-1)*100
- [ROCP](rocp.md) — Rate of change Percentage: (price-prevPrice)/prevPrice
- [ROCR](rocr.md) — Rate of change ratio: (price/prevPrice)
- [ROCR100](rocr100.md) — Rate of change ratio 100 scale: (price/prevPrice)*100
- [RSI](rsi.md) — Relative Strength Index
- [STOCH](stoch.md) — Stochastic
- [STOCHF](stochf.md) — Stochastic Fast
- [STOCHRSI](stochrsi.md) — Stochastic Relative Strength Index
- [TRIX](trix.md) — 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
- [ULTOSC](ultosc.md) — Ultimate Oscillator
- [WILLR](willr.md) — Williams' %R

## Overlap Studies

- [ACCBANDS](accbands.md) — Acceleration Bands
- [BBANDS](bbands.md) — Bollinger Bands
- [DEMA](dema.md) — Double Exponential Moving Average
- [EMA](ema.md) — Exponential Moving Average
- [HT_TRENDLINE](ht_trendline.md) — Hilbert Transform - Instantaneous Trendline
- [KAMA](kama.md) — Kaufman Adaptive Moving Average
- [MA](ma.md) — Moving average
- [MAMA](mama.md) — MESA Adaptive Moving Average
- [MAVP](mavp.md) — Moving average with variable period
- [MIDPOINT](midpoint.md) — MidPoint over period
- [MIDPRICE](midprice.md) — Midpoint Price over period
- [SAR](sar.md) — Parabolic SAR
- [SAREXT](sarext.md) — Parabolic SAR - Extended
- [SMA](sma.md) — Simple Moving Average
- [T3](t3.md) — Triple Exponential Moving Average (T3)
- [TEMA](tema.md) — Triple Exponential Moving Average
- [TRIMA](trima.md) — Triangular Moving Average
- [WMA](wma.md) — Weighted Moving Average

## Pattern Recognition

- [CDL2CROWS](cdl2crows.md) — Two Crows
- [CDL3BLACKCROWS](cdl3blackcrows.md) — Three Black Crows
- [CDL3INSIDE](cdl3inside.md) — Three Inside Up/Down
- [CDL3LINESTRIKE](cdl3linestrike.md) — Three-Line Strike 
- [CDL3OUTSIDE](cdl3outside.md) — Three Outside Up/Down
- [CDL3STARSINSOUTH](cdl3starsinsouth.md) — Three Stars In The South
- [CDL3WHITESOLDIERS](cdl3whitesoldiers.md) — Three Advancing White Soldiers
- [CDLABANDONEDBABY](cdlabandonedbaby.md) — Abandoned Baby
- [CDLADVANCEBLOCK](cdladvanceblock.md) — Advance Block
- [CDLBELTHOLD](cdlbelthold.md) — Belt-hold
- [CDLBREAKAWAY](cdlbreakaway.md) — Breakaway
- [CDLCLOSINGMARUBOZU](cdlclosingmarubozu.md) — Closing Marubozu
- [CDLCONCEALBABYSWALL](cdlconcealbabyswall.md) — Concealing Baby Swallow
- [CDLCOUNTERATTACK](cdlcounterattack.md) — Counterattack
- [CDLDARKCLOUDCOVER](cdldarkcloudcover.md) — Dark Cloud Cover
- [CDLDOJI](cdldoji.md) — Doji
- [CDLDOJISTAR](cdldojistar.md) — Doji Star
- [CDLDRAGONFLYDOJI](cdldragonflydoji.md) — Dragonfly Doji
- [CDLENGULFING](cdlengulfing.md) — Engulfing Pattern
- [CDLEVENINGDOJISTAR](cdleveningdojistar.md) — Evening Doji Star
- [CDLEVENINGSTAR](cdleveningstar.md) — Evening Star
- [CDLGAPSIDESIDEWHITE](cdlgapsidesidewhite.md) — Up/Down-gap side-by-side white lines
- [CDLGRAVESTONEDOJI](cdlgravestonedoji.md) — Gravestone Doji
- [CDLHAMMER](cdlhammer.md) — Hammer
- [CDLHANGINGMAN](cdlhangingman.md) — Hanging Man
- [CDLHARAMI](cdlharami.md) — Harami Pattern
- [CDLHARAMICROSS](cdlharamicross.md) — Harami Cross Pattern
- [CDLHIGHWAVE](cdlhighwave.md) — High-Wave Candle
- [CDLHIKKAKE](cdlhikkake.md) — Hikkake Pattern
- [CDLHIKKAKEMOD](cdlhikkakemod.md) — Modified Hikkake Pattern
- [CDLHOMINGPIGEON](cdlhomingpigeon.md) — Homing Pigeon
- [CDLIDENTICAL3CROWS](cdlidentical3crows.md) — Identical Three Crows
- [CDLINNECK](cdlinneck.md) — In-Neck Pattern
- [CDLINVERTEDHAMMER](cdlinvertedhammer.md) — Inverted Hammer
- [CDLKICKING](cdlkicking.md) — Kicking
- [CDLKICKINGBYLENGTH](cdlkickingbylength.md) — Kicking - bull/bear determined by the longer marubozu
- [CDLLADDERBOTTOM](cdlladderbottom.md) — Ladder Bottom
- [CDLLONGLEGGEDDOJI](cdllongleggeddoji.md) — Long Legged Doji
- [CDLLONGLINE](cdllongline.md) — Long Line Candle
- [CDLMARUBOZU](cdlmarubozu.md) — Marubozu
- [CDLMATCHINGLOW](cdlmatchinglow.md) — Matching Low
- [CDLMATHOLD](cdlmathold.md) — Mat Hold
- [CDLMORNINGDOJISTAR](cdlmorningdojistar.md) — Morning Doji Star
- [CDLMORNINGSTAR](cdlmorningstar.md) — Morning Star
- [CDLONNECK](cdlonneck.md) — On-Neck Pattern
- [CDLPIERCING](cdlpiercing.md) — Piercing Pattern
- [CDLRICKSHAWMAN](cdlrickshawman.md) — Rickshaw Man
- [CDLRISEFALL3METHODS](cdlrisefall3methods.md) — Rising/Falling Three Methods
- [CDLSEPARATINGLINES](cdlseparatinglines.md) — Separating Lines
- [CDLSHOOTINGSTAR](cdlshootingstar.md) — Shooting Star
- [CDLSHORTLINE](cdlshortline.md) — Short Line Candle
- [CDLSPINNINGTOP](cdlspinningtop.md) — Spinning Top
- [CDLSTALLEDPATTERN](cdlstalledpattern.md) — Stalled Pattern
- [CDLSTICKSANDWICH](cdlsticksandwich.md) — Stick Sandwich
- [CDLTAKURI](cdltakuri.md) — Takuri (Dragonfly Doji with very long lower shadow)
- [CDLTASUKIGAP](cdltasukigap.md) — Tasuki Gap
- [CDLTHRUSTING](cdlthrusting.md) — Thrusting Pattern
- [CDLTRISTAR](cdltristar.md) — Tristar Pattern
- [CDLUNIQUE3RIVER](cdlunique3river.md) — Unique 3 River
- [CDLUPSIDEGAP2CROWS](cdlupsidegap2crows.md) — Upside Gap Two Crows
- [CDLXSIDEGAP3METHODS](cdlxsidegap3methods.md) — Upside/Downside Gap Three Methods

## Price Transform

- [AVGDEV](avgdev.md) — Average Deviation
- [AVGPRICE](avgprice.md) — Average Price
- [MEDPRICE](medprice.md) — Median Price
- [TYPPRICE](typprice.md) — Typical Price
- [WCLPRICE](wclprice.md) — Weighted Close Price

## Statistic Functions

- [BETA](beta.md) — Beta
- [CORREL](correl.md) — Pearson's Correlation Coefficient (r)
- [LINEARREG](linearreg.md) — Linear Regression
- [LINEARREG_ANGLE](linearreg_angle.md) — Linear Regression Angle
- [LINEARREG_INTERCEPT](linearreg_intercept.md) — Linear Regression Intercept
- [LINEARREG_SLOPE](linearreg_slope.md) — Linear Regression Slope
- [STDDEV](stddev.md) — Standard Deviation
- [TSF](tsf.md) — Time Series Forecast
- [VAR](var.md) — Variance

## Volatility Indicators

- [ATR](atr.md) — Average True Range
- [NATR](natr.md) — Normalized Average True Range
- [TRANGE](trange.md) — True Range

## Volume Indicators

- [AD](ad.md) — Chaikin A/D Line
- [ADOSC](adosc.md) — Chaikin A/D Oscillator
- [OBV](obv.md) — On Balance Volume
