coral-media / ext-ta
Technical analysis indicators (TA-Lib) for PHP
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:C
Type:php-ext
Ext name:ext-ta
pkg:composer/coral-media/ext-ta
Requires
- php: >=8.1
README
PIE-ready TA-Lib extension for PHP, bundling the TA-Lib sources and exposing a set of technical analysis functions.
Install using PIE
From sources
pie install --with-ta
Build (from source)
phpize
./configure --with-ta
make -j"$(nproc)"
make install
TA-Lib Functions
Check the full API docs.
Overlap Studies
Trend-following averages and bands that overlay price series.
ACCBANDS, BBANDS, DEMA, EMA, HT_TRENDLINE, KAMA, MA, MAMA, MAVP, MIDPOINT, MIDPRICE, SAR, SAREXT, SMA, T3, TEMA, TRIMA, WMA
Volatility Indicators
Measures of price range and volatility over time.
Momentum Indicators
Oscillators and momentum measures that quantify speed and direction.
ADX, ADXR, APO, AROON, AROONOSC, BOP, CCI, CMO, DX, IMI, MACD, MACDEXT, MACDFIX, MFI, MINUS_DI, MINUS_DM, MOM, PLUS_DI, PLUS_DM, PPO, ROC, ROCP, ROCR, ROCR100, RSI, STOCH, STOCHF, STOCHRSI, TRIX, ULTOSC, WILLR
Cycle Indicators
Hilbert Transform-based cycle and phase estimates.
HT_DCPERIOD, HT_DCPHASE, HT_PHASOR, HT_SINE, HT_TRENDMODE
Volume Indicators
Volume-driven indicators that combine price and volume flows.
Pattern Recognition
Candlestick pattern detectors returning integer pattern signals.
CDL2CROWS, CDL3BLACKCROWS, CDL3INSIDE, CDL3LINESTRIKE, CDL3OUTSIDE, CDL3STARSINSOUTH, CDL3WHITESOLDIERS, CDLABANDONEDBABY, CDLADVANCEBLOCK, CDLBELTHOLD, CDLBREAKAWAY, CDLCLOSINGMARUBOZU, CDLCONCEALBABYSWALL, CDLCOUNTERATTACK, CDLDARKCLOUDCOVER, CDLDOJI, CDLDOJISTAR, CDLDRAGONFLYDOJI, CDLENGULFING, CDLEVENINGDOJISTAR, CDLEVENINGSTAR, CDLGAPSIDESIDEWHITE, CDLGRAVESTONEDOJI, CDLHAMMER, CDLHANGINGMAN, CDLHARAMI, CDLHARAMICROSS, CDLHIGHWAVE, CDLHIKKAKE, CDLHIKKAKEMOD, CDLHOMINGPIGEON, CDLIDENTICAL3CROWS, CDLINNECK, CDLINVERTEDHAMMER, CDLKICKING, CDLKICKINGBYLENGTH, CDLLADDERBOTTOM, CDLLONGLEGGEDDOJI, CDLLONGLINE, CDLMARUBOZU, CDLMATCHINGLOW, CDLMATHOLD, CDLMORNINGDOJISTAR, CDLMORNINGSTAR, CDLONNECK, CDLPIERCING, CDLRICKSHAWMAN, CDLRISEFALL3METHODS, CDLSEPARATINGLINES, CDLSHOOTINGSTAR, CDLSHORTLINE, CDLSPINNINGTOP, CDLSTALLEDPATTERN, CDLSTICKSANDWICH, CDLTAKURI, CDLTASUKIGAP, CDLTHRUSTING, CDLTRISTAR, CDLUNIQUE3RIVER, CDLUPSIDEGAP2CROWS, CDLXSIDEGAP3METHODS
Statistic Functions
Statistical relationships and regressions over a data series.
BETA, CORREL, LINEARREG, LINEARREG_ANGLE, LINEARREG_INTERCEPT, LINEARREG_SLOPE, STDDEV, TSF, VAR
Price Transform
Derived price series from OHLC inputs (typical, median, weighted, etc).
AVGPRICE, AVGDEV, MEDPRICE, TYPPRICE, WCLPRICE
Math Transform
Element-wise math transforms applied to a series.
ACOS, ASIN, ATAN, CEIL, COS, COSH, EXP, FLOOR, LN, LOG10, SIN, SINH, SQRT, TAN, TANH
Math Operators
Element-wise arithmetic and min/max operations on series.
ADD, DIV, MAX, MAXINDEX, MIN, MININDEX, MINMAX, MINMAXINDEX, MULT, SUB, SUM
Note On Function Counts
The list above is derived from the vendored TA-Lib source (ta_group_idx.c) and contains 161 functions. The public list at https://ta-lib.org/functions/ shows 137 functions and omits the following 24 that are present in the source:
ACCBANDS, ACOS, ADD, ASIN, ATAN, AVGDEV, CDL3OUTSIDE, CEIL, COS, COSH, DIV, EXP, FLOOR, IMI, LN, LOG10, MAVP, MULT, SIN, SINH, SQRT, SUB, TAN, TANH
This is why our README count is higher: it includes math operators/transforms and a few additional indicators that are not listed on the website.
Notes
- Vendored TA-Lib sources live under
lib/ta-lib.