Pandas Ta Classic
Technical Analysis Indicators - Pandas TA Classic is an easy to use Python 3 Pandas Extension with 250+ Indicators and Candlestick Patterns
Install / Use
npx skills add xgboosted/pandas-ta-classicInstalls into whichever agent you are using.
README
Pandas TA Classic - Technical Analysis Library

Pandas TA Classic is an easy-to-use library that leverages the Pandas package with 224 indicators and utility functions and 62 native candlestick patterns (284 total unique — no TA-Lib required). Many commonly used indicators are included, such as: Simple Moving Average (sma), Moving Average Convergence Divergence (macd), Hull Exponential Moving Average (hma), Bollinger Bands (bbands), On-Balance Volume (obv), Aroon & Aroon Oscillator (aroon), Squeeze (squeeze) and many more.
This is the classic/community maintained version of the popular pandas-ta library.
New to Pandas TA Classic?
Get started quickly with our comprehensive guides:
- Quickstart Guide - Installation, your first indicators, and common workflows
- Tutorials - Step-by-step tutorials for real-world use cases:
- Moving Average Crossover Strategy
- Building Custom Indicator Strategies
- Backtesting with Performance Metrics
- Integrating with backtesting.py
- Integrating with backtrader
- Integrating with VectorBT
- Multi-Timeframe Analysis
- Creating Custom Indicators
- Candlestick Pattern Recognition
Complete documentation: https://xgboosted.github.io/pandas-ta-classic/
Key Features
- 284 Unique Indicators & Patterns: 224 Category indicators + 62 CDL patterns via
cdl_pattern()= 284 unique (doji and inside appear in both counts; all CDL patterns use native Python — no TA-Lib required) - All-Native Candlestick Patterns: All 62 CDL patterns have native Python implementations — TA-Lib is never used for CDL patterns
- Optional TA-Lib Acceleration: Core indicators (EMA, SMA, RSI, MACD, OBV, ATR, etc.) use native implementations by default; pass
talib=Trueto use TA-Lib - Compatibility Scope Is Explicit: Not every TA-Lib/tulipy function has a pandas-ta-classic counterpart. See the full per‑indicator matrix for current coverage:
docs/indicator_support_matrix.rst - Optional Performance Boost: Install
numbafor 6–230× speedups on hot-loop indicators (QQE, RSX, HWMA, SSF, PSAR, Supertrend, MCGD) - Automatic Versioning: Version management via git tags using setuptools-scm
- Modern Package Management: Full support for both
uvandpip - Production Ready: Stable status with comprehensive test coverage including property-based testing (Hypothesis)
- Active Development: Regular updates with community contributions
Quick Start
Installation
The library supports both modern uv and traditional pip package managers.
Stable Release
Using uv (recommended - faster):
uv pip install pandas-ta-classic
Using pip:
pip install pandas-ta-classic
Latest Version
Using uv:
uv pip install git+https://github.com/xgboosted/pandas-ta-classic
Using pip:
pip install -U git+https://github.com/xgboosted/pandas-ta-classic
Development Installation
Using uv:
# Clone the repository
git clone https://github.com/xgboosted/pandas-ta-classic.git
cd pandas-ta-classic
# Install with all core dependencies (excludes the platform-fragile
# data/backtest extras — install those explicitly if needed)
uv pip install -e ".[all]"
# Or install specific dependency groups:
uv pip install -e ".[dev]" # Development tools
uv pip install -e ".[optional]" # Optional runtime features
uv pip install -e ".[oracle]" # Oracle parity lib: TA-Lib
uv pip install -e ".[data]" # Data sources: yfinance, alpha-vantage
uv pip install -e ".[backtest]" # Backtesting: backtesting, vectorbt, backtrader
Using pip:
# Clone the repository
git clone https://github.com/xgboosted/pandas-ta-classic.git
cd pandas-ta-classic
# Install with all core dependencies (excludes the platform-fragile
# data/backtest extras — install those explicitly if needed)
pip install -e ".[all]"
# Or install specific dependency groups:
pip install -e ".[dev]" # Development tools
pip install -e ".[optional]" # Optional runtime features
pip install -e ".[oracle]" # Oracle parity lib: TA-Lib
pip install -e ".[data]" # Data sources: yfinance, alpha-vantage
pip install -e ".[backtest]" # Backtesting: backtesting, vectorbt, backtrader
Basic Usage
import pandas as pd
import pandas_ta_classic as ta
# Load your data
df = pd.read_csv("path/to/symbol.csv")
# OR fetch OHLCV with yfinance directly (df.ta.ticker() is deprecated —
# see examples/fetch_market_data.py):
# import yfinance as yf
# df = yf.download("AAPL", period="1y")
# Calculate indicators
df.ta.sma(length=20, append=True) # Simple Moving Average
df.ta.rsi(append=True) # Relative Strength Index
df.ta.macd(append=True) # MACD
df.ta.bbands(append=True) # Bollinger Bands
# Fluent API chaining (v0.6+)
df.ta.chain().sma(20).ta.rsi(14).ta.macd().ta.bbands(20)
# Or run a strategy with multiple indicators
df.ta.strategy("CommonStrategy") # Runs commonly used indicators
Features
- 224 Technical Indicators & Utilities across 10 categories (Candles, Cycles, Math, Momentum, Overlap, Trend, Volume, etc.)
- 62 Native Candlestick Patterns — all patterns natively implemented, no TA-Lib required
- 284 Unique Indicators & Patterns - 224 category indicators plus 62 CDL patterns via
cdl_pattern() - Dynamic Category Discovery - automatically detects all available indicators from the filesystem
- Optional Numba Acceleration - 6–230× speedups via
pip install pandas-ta-classic[performance] - Strategy System with multiprocessing support for bulk indicator processing
- Fluent API Chaining:
df.ta.chain().sma(20).ta.rsi(14).ta.macd().ta.bbands(20)— chain multiple indicators in a single expression - Pandas DataFrame Extension for seamless integration (
df.ta.indicator()) - TA-Lib Integration (dual-role) - (1) acceleration backend: core indicators use native implementations by default; pass
talib=Trueto use TA-Lib's C implementation. (2) oracle:test_oracle_talib.pyverifies parity against TA-Lib - tulipy Integration (frozen oracle only) -
test_oracle_tulipy.pyverifies native output against a committed golden snapshot of tulipy's output (tests/fixtures/tulipy_oracle.json); tulipy itself is no longer installed at test time, only to regenerate the snapshot; never used as a computation backend - Backtesting.py Integration — bridge function and runnable SMA crossover example in
examples/backtesting_py_strategy.py - backtrader Integration — precompute-then-feed pattern with dynamic
PandasDatasubclass; runnable example inexamples/backtrader_strategy.py - Vectorbt Integration - compatible with popular backtesting framework
- Custom Indicators - easily create and chain your own indicators
Documentation
Complete documentation is available at: https://xgboosted.github.io/pandas-ta-classic/
Learning Resources
Start Here:
- Quickstart Guide - Get up and running in minutes
- Tutorials - Step-by-step guides for common workflows
- Examples - Jupyter notebooks with real examples
Reference Documentation:
- Usage Guide - Programming conventions and basic usage
- Strategy System - Multiprocessing and bulk indicator processing
- Indicators Reference - Complete list of 224 indi
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
