Skip to main content

TA library for Pandas

Project description

Bamboo-TA: Technical Analysis Indicators Library

Bamboo TA

license Python Version PyPi Version Package Status Downloads Stars Forks Used By Contributors Issues Closed Issues Support me on Patreon YouTube Channel Subscribers YouTube Channel Views


About Bamboo-TA

Bamboo-TA is a personal library that consolidates various Technical Analysis (TA) indicators into one simple and modular package for analyzing financial market data. It is designed to help traders develop trading strategies based on candlestick data.

While this library includes popular TA indicators like MACD, RSI, SMA, EMA, it also provides lesser-known indicators like Waddah Attar Explosion and Bollinger Bands Trend Indicator. Bamboo-TA is complementary to other libraries like TA-lib, Pandas-ta, and qtpylib, and it is not intended to replace them.

If you're looking for a library to use for data analysis, backtesting, or integrating indicators into trading bots, Bamboo-TA is designed for simplicity and ease of use.


Features

  • Modular Indicators: Includes a wide range of trend, volatility, momentum, performance, volume, and other types of indicators.
  • Complementary to Other Libraries: Works alongside popular TA libraries such as TA-lib and Pandas-ta.
  • Focus on Algorithmic Trading: Useful for developing custom algorithmic trading strategies with backtesting capabilities.
  • Personal Project: Built and maintained for personal use but shared with the community.

Installation

Stable Version

Install the latest stable version directly from PyPi:

pip install bamboo-ta

Development Version

To install the bleeding-edge version from the GitHub repository:

pip install -U git+https://github.com/DutchCryptoDad/bamboo-ta.git@development

Usage

Importing the Library

To start using Bamboo-TA, import the library in your Python scripts or notebooks:

import bamboo_ta as bta
import pandas as pd
import numpy as np

Preparing Data

Make sure to format your DataFrame correctly, like this:

df = pd.read_json("./BTC_USDT-1d.json")
df.columns = ['date', 'open', 'high', 'low', 'close', 'volume']
df['date'] = pd.to_datetime(df['date'], unit='ms')

Applying Indicators

You can apply indicators in various ways. Here's how to use Alligator Bands:

alligator_result = bta.alligator_bands(df, 'close', 13, 8, 5, jaw_shift=8, teeth_shift=5, lips_shift=3)
df['jaw'] = alligator_result['jaw']
df['teeth'] = alligator_result['teeth']
df['lips'] = alligator_result['lips']

Importing Individual Indicators

You can also import and apply individual indicators. Here's how to the Exponential Moving Average::

from bamboo_ta.trend import exponential_moving_average

df['ema'] = bta.exponential_moving_average(df, "close", 21)

Indicator Categories

Explore the wide range of indicators:


Social & Community


Support & Donations

If you find Bamboo-TA useful, consider supporting the project:

  • Patreon: Support via Patreon.
  • Ko-fi: Make a one-time donation on Ko-fi.

Affiliates


Disclaimer

Bamboo-TA is a personal project, and while I make every effort to ensure accuracy, I cannot guarantee the functionality of the indicators. They are tested against Binance (BTC/USDT) data and compared with similar indicators on TradingView.

I personally use these indicators to build my own trading strategies, for backtesting and manual & bot trading using the Freqtrade trading bot. So it is in my own personal best interest to make these indicators work as accurately as possible.

Suggestions and bug reports are welcome, but fixes will be handled on a best-effort basis. Please be patient!


Indicator sources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bamboo-ta-0.2.0.tar.gz (38.1 kB view details)

Uploaded Source

Built Distribution

bamboo_ta-0.2.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file bamboo-ta-0.2.0.tar.gz.

File metadata

  • Download URL: bamboo-ta-0.2.0.tar.gz
  • Upload date:
  • Size: 38.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for bamboo-ta-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8399061f8fe582080831bce19249c7e19ab56bc2742d2d92aa5bf78bf3c43d93
MD5 58ac0bf6a7e2a8c14890b93b7d171fbc
BLAKE2b-256 56cdc7dd7b0ab9420a4f02ae184326606c328535cbf68c6aa480e4674bcbe295

See more details on using hashes here.

File details

Details for the file bamboo_ta-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bamboo_ta-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for bamboo_ta-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a14ae2e5996043ce29517637a4f926e077978b84f9385a4073b3325c37ad5bf
MD5 23626b6f1c0e6c3e22295fed826577c2
BLAKE2b-256 831a94eb229ac5da69590fd5733c8ce9e3164d1d08141727e6841a1047e98888

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page