Low activity

pandas-ta guide

pandas-ta makes indicators feel native to pandas, which is why many notebooks use it.

Last reviewed · Also known as pandas_ta

Quick answer

pandas-ta is a pure-Python technical analysis library that adds a .ta accessor to pandas DataFrames, with over 130 indicators and “strategies” that append many indicators in one call. It needs no C compilation. Maintenance has been uneven, so pin a version that works with your pandas release.

pandas-ta at a glance

Category
Technical indicator libraries
Language
Python
License
MIT
Does
Indicators
Markets
Stocks, Crypto, Forex, Futures
Best for
Quick indicator columns in pandas-based research.
In AlgoGP
Use the exported strategy object from your own code

Pick it if

Quick indicator columns in pandas-based research.

Watch out for

Slower than TA-Lib.

pandas-ta strengths and limitations

Strengths

  • No C dependency.
  • Concise DataFrame API.
  • Many indicators.

Limitations

  • Slower than TA-Lib.
  • Uneven maintenance; check compatibility with new pandas versions.

pandas-ta example

pip install pandas-ta
Install
import pandas_ta as ta
df.ta.rsi(length=14, append=True)
df.ta.bbands(length=20, append=True)
Add RSI and Bollinger Bands.

Use pandas-ta with AlgoGP

AlgoGP does not add pandas-ta to projects automatically yet, but nothing stops you using them together. Every AlgoGP project exports plain Python with a framework-neutral strategy object, so you can call it from pandas-ta yourself.

  1. 1

    Design and backtest in AlgoGP

    Describe the idea to the copilot and backtest it on AlgoGP’s normalized history.

  2. 2

    Add any bridge to get the adapter core

    Adding a bridged framework (for example Backtrader) writes frameworks/algogp_bridge.py, whose StrategyBridge.on_bar() returns the orders the strategy wants.

  3. 3

    Call it from pandas-ta

    Feed pandas-ta’s bars to StrategyBridge, place the returned orders with pandas-ta, and report fills back with sync().

pandas-ta: frequently asked questions

pandas-ta or TA-Lib?

TA-Lib is faster and the reference; pandas-ta is easier to install and more pandas-native.

pandas-ta alternatives

Independent guide. AlgoGP is not affiliated with pandas-ta. Features, licenses and maintenance change; check the official documentation. Nothing here is investment advice.

Build a strategy