Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

TA-Box

This is a Python implementation for TA-LIB based on Cython.

TA-Lib is widely used by trading software developers requiring to perform technical analysis of financial market data.

  • Includes 150+ indicators such as ADX, MACD, RSI, Stochastic, Bollinger Bands, etc.
  • Candlestick pattern recognition
  • Open-source API for C/C++, Java, Perl, Python and 100% Managed .NET

Because TA-Box is written in pure Python, you do not have to install the TA-Lib. TA-Box also supports Cython compilation. With the support of cython, the speed of TA-Box is comparable to TA-LIB.

Installation

You can install from PyPI:

$ python3 -m pip install TA-Box

Or install from git repository:

$ pip install git+https://github.com/quantmew/ta-box.git

Or checkout the sources and run setup.py yourself:

$ python setup.py install

How to use

import tabox as ta
import numpy as np

close = np.array([23.42, 23.11, 23.01, 23.15, 23.33, 23.10, 23.21, 23.00, 23.04, 22.85, 22.90, 22.77, 22.80, 22.69, 22.73, 22.80, 22.99])

ema = ta.EMA(close, timeperiod=14)

print(ema)

Function List

  • Cycle Indicators

    • HT_DCPERIOD

    • HT_DCPHASE

    • HT_PHASOR

    • HT_SINE

    • HT_TRENDMODE

  • Math Operators

    • ADD✓

    • DIV✓

    • MAX✓

    • MAXINDEX✓

    • MIN✓

    • MININDEX✓

    • MINMAX✓

    • MINMAXINDEX✓

    • MULT✓

    • SUB✓

    • SUM✓

  • Math Transform

    • ACOS✓

    • ASIN✓

    • ATAN✓

    • CEIL✓

    • COS✓

    • COSH✓

    • EXP✓

    • FLOOR✓

    • LN✓

    • LOG10✓

    • SIN✓

    • SINH✓

    • SQRT✓

    • TAN✓

    • TANH✓

  • Momentum Indicators

    • ADX✓

    • ADXR✓

    • APO✓

    • AROON✓

    • AROONOSC✓

    • BOP✓

    • CCI✓

    • CMO✓

    • DX✓

    • 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

  • Overlap Studies

    • BBANDS✓

    • DEMA✓

    • EMA✓

    • HT_TRENDLINE

    • KAMA✓

    • MA✓

    • MAMA✓

    • MAVP✓

    • MIDPOINT✓

    • MIDPRICE✓

    • SAR✓

    • SAREXT✓

    • SMA✓

    • T3✓

    • TEMA✓

    • TRIMA✓

    • WMA✓

  • Pattern Recognition

    • 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

  • Price Transform

    • AVGPRICE✓

    • MEDPRICE✓

    • TYPPRICE✓

    • WCLPRICE✓

  • Statistic Functions

    • BETA✓

    • CORREL✓

    • LINEARREG

    • LINEARREG_ANGLE

    • LINEARREG_INTERCEPT

    • LINEARREG_SLOPE

    • STDDEV✓

    • TSF

    • VAR✓

  • Volatility Indicators

    • ATR✓

    • NATR✓

    • TRANGE✓

  • Volume Indicators

    • AD✓

    • ADOSC✓

    • OBV✓

Metadata

Release files for TA-Box 0.0.1a1.dev5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TA-Box 0.0.1a1.dev5
File Size Uploaded
ta_box-0.0.1a1.dev5.tar.gz 11.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for TA-Box 0.0.1a1.dev5
File Interpreter ABI Platform
ta_box-0.0.1a1.dev5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details

Total release size: 17.0 MB

Release files / ta_box-0.0.1a1.dev5.tar.gz

Download URL ta_box-0.0.1a1.dev5.tar.gz
Size 11.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c018b5f943cd01421dccf2c67407eab0382dd113e998857e3f8539082fe71505
BLAKE2b-256 checksum
How to use checksums
2f070bf029d4d28381c17600a8add1f87da41256663020a989a61cb01d7606ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / ta_box-0.0.1a1.dev5-cp312-cp312-win_amd64.whl

Download URL ta_box-0.0.1a1.dev5-cp312-cp312-win_amd64.whl
Size 5.5 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d0485e32d5924b6a7b9b9b11a6585abd8406c7029d58cf2b1e805b02ea16a4e2
BLAKE2b-256 checksum
How to use checksums
203665b81b7c9ddffe201ffef736b44504dc777a11a53c29c9e6eb5c5fdc583b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page