An easy to use Python 3 Pandas Extension with 130+ Technical Analysis Indicators. Can be called from a Pandas DataFrame or standalone like TA-Lib. Correlation tested with TA-Lib. This is the classic/community maintained version.
Project description
Pandas TA Classic - Technical Analysis Library
Pandas TA Classic is an easy-to-use library that leverages the Pandas package with 143 indicators and utility functions and 62 TA Lib candlestick patterns (205 total). 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.
🚀 Quick Start
Installation
Stable Release
pip install pandas-ta-classic
Latest Version
pip install -U git+https://github.com/xgboosted/pandas-ta-classic
Basic Usage
import pandas as pd
import pandas_ta_classic as ta
# Load your data
df = pd.read_csv("path/to/symbol.csv")
# OR if you have yfinance installed
df = df.ta.ticker("aapl")
# 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
# Or run a strategy with multiple indicators
df.ta.strategy("CommonStrategy") # Runs commonly used indicators
📊 Features
- 143 Technical Indicators & Utilities across 9 categories (Candles, Momentum, Overlap, Trend, Volume, etc.)
- 62 TA Lib Candlestick Patterns for comprehensive pattern recognition
- 205 Total Indicators & Patterns - the most comprehensive Python TA library
- Strategy System with multiprocessing support for bulk indicator processing
- Pandas DataFrame Extension for seamless integration (
df.ta.indicator()) - TA Lib Integration - automatically uses TA Lib versions when available
- 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/
Quick Links
- 📖 Usage Guide - Programming conventions and basic usage
- 🏗️ Strategy System - Multiprocessing and bulk indicator processing
- 📊 Indicators Reference - Complete list of all 143 indicators & 62 patterns
- 🔧 DataFrame API - Properties and methods reference
- 📈 Performance Metrics - Backtesting and performance analysis
- 💡 Examples - Jupyter notebooks and code examples
🐍 Python Version Support
Pandas TA Classic supports Python 3.9 through 3.13 following a rolling support policy for the latest stable version plus 4 preceding minor versions.
Note: TA Lib installation enables all candlestick patterns: pip install TA-Lib
🤝 Contributing
We welcome contributions! Please see our contributing guidelines and issues page.
Reporting Issues
- Check existing issues first
- Provide reproducible code examples
- Include relevant error messages and data samples
📋 Changelog
For detailed information about changes, improvements, and new features, please see the CHANGELOG.md file.
🔗 Sources
Original TA-LIB | TradingView | Sierra Chart | MQL5 | FM Labs | Pro Real Code | User 42
❤️ Support
If you find this library helpful, please consider:
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pandas_ta_classic-0.3.15-py3-none-any.whl.
File metadata
- Download URL: pandas_ta_classic-0.3.15-py3-none-any.whl
- Upload date:
- Size: 233.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac687500f9b40343a2f625c858444ae5cce452267defe82531a796b3de31178c
|
|
| MD5 |
0c89ebc035fbb5d585daf0431067690b
|
|
| BLAKE2b-256 |
824028b701062b99fe1028d31f9768ac8c97a2aa66554dc85ec24d7d62b2a326
|