The C reference implementation of technical indicators, where every pure-Python port disagrees during warm-up and none of them say so. TRIGGER - import talib, pip install TA-Lib, ta-lib-python, talib.RSI, talib.MACD, talib.ATR, talib.ADX, talib.BBANDS, talib.OBV, from talib import abstract, talib.get_functions, unstable period, indicator warm-up, an indicator differing between two libraries or between backtest and live; "Exception: input array type is not double", a failed ta-lib C build or missing ta_libc.h. Memory is stale here: the install pain is solved - 0.7.1 (2026-07-16) ships 54 prebuilt wheels bundling the C library, including cp311-win_amd64 - while pandas-ta's repo, homepage and release history are all gone. SKIP for whether a signal actually predicts returns (factor-and-timeseries-research) and for leak-free signal construction generally (signal-construction). SKIP for choosing between libraries, or when no library is named - the domain skill's job.
Ships in fin-libraries. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The C reference every other Python indicator library is measured against — and the reason two libraries computing "the same" RSI hand you two different backtests.
| pip / import | pip install TA-Lib · import talib (repo ta-lib-python, now the ta-lib org) |
| Version | 0.7.1 (2026-07-16) · C core 0.7.1 · requires_python >=3.9 |
| Licence | BSD-ish |
| Status | ✅ 54 wheels incl. cp311-win_amd64, bundling the C library since 0.6.5 (2025-08-07) |
🚨 Every pure-Python port emits values before TA-Lib does, computed on partial windows — silently wrong, not NaN. TA-Lib's documented "unstable period" behaviour is exactly why its warm-up start indices differ from every port. Swap libraries, or restart the calculation per symbol on a short slice, and the same strategy becomes two different backtests.
Measured — TA-Lib python 0.7.1 / C core 0.7.1, pandas 3.0.5, numpy 2.4.6, 500-bar synthetic GBM,
seed 7; maxabs = max absolute difference over the overlapping non-NaN region:
| Library | SMA/BBands/CCI/OBV | RSI(14) | EMA(20) | ATR(14) | ADX(14) | MACD |
|---|---|---|---|---|---|---|
| talipp 2.7.0 | exact | 1.4e-14, exact incl. warm-up start index | 2.8e-14 | 3.2e-02 warm-up only | — | 0.155 warm-up only |
| pandas-ta-classic 0.6.52 | ≤3e-11 | 3.6e-14 | 2.8e-14 | 8.9e-16 | 🚨 4.25, emits from bar 13 vs TA-Lib's 27 | 0.155 early bars |
| ta 0.11.0 | identical | 🚨 3.84 | 🚨 0.363 | 🚨 0.0477, emits from bar 0 | 🚨 0.642, emits from bar 0 | 🚨 0.378, 8 bars early |
How long ta's RSI(14) takes to converge on the same input: |diff| > 1.0 through bar 36 ·
> 0.1 through bar 67 · > 0.01 through bar 97 · > 1e-6 through bar 217.
🚨 Universal rule: discard the first ~10–15 × period bars of any recursive indicator (EMA, RSI, ATR, ADX, MACD), whatever the library.
"Needs the C library compiled by hand; no Windows wheels" was true and is not any more. ta-lib-python ships prebuilt wheels bundling the TA-Lib C library since v0.6.5. pip install TA-Lib just works on Windows. If you are still writing build instructions into a README, that guidance is stale.
It takes numpy float64 arrays, not Series. Pass .values and reattach the index yourself, or
use the abstract API, which accepts dict / pandas / polars inputs.
import talib
rsi = talib.RSI(close, timeperiod=14) # close must be float64 ndarray
from talib import abstract
out = abstract.MACD(df, fastperiod=12, slowperiod=26, signalperiod=9)
| Package | Version | Licence | Verdict |
|---|---|---|---|
| TA-Lib | 0.7.1 (2026-07-16) | BSD-ish | ✅ the reference |
talipp | 2.7.0 (2025-09-09) | MIT | ✅ incremental/streaming; closest match, only one that also matches TA-Lib's RSI warm-up start index |
pandas-ta-classic | 0.6.52 (2026-06-24) | MIT | ✅ the maintained successor, 427★, py≥3.10; watch ADX warm-up |
ta (bukosabino) | 0.11.0 (2023-11-02) | MIT | ⚠️ pure python, sdist only, ~3 yrs stale — usable with fillna=False |
🚨 pandas-ta | 0.4.71b0 (2025-09-14) | 🚨 NONE DECLARED | 🔴 do not install |
🔴 finta | 1.3 (2021) | LGPL-3.0 | repo ARCHIVED 2022-07-24 |
🔴 tulipy / bta-lib | 0.4.0 (2019) / — | LGPL / — | dead |
✅ talipp's incremental .add() produces bit-identical output to batch construction. That is the whole reason it exists, and it is the correct choice when a strategy runs streaming — it removes the backtest-vs-live warm-up divergence.
pandas-ta — supply-chain cautiongithub.com/twopirllc/pandas-ta → HTTP 404 (removed ~June 2025).license field and no license classifier; requires_python >=3.12; the Repository URL
still points at the dead 404 repo.pandas-ta.dev — DNS does not resolve, and archive.org has no snapshots.A package with no licence, wiped release history, a dead upstream repo and a dead homepage is a
supply-chain risk regardless of intent. Pin to pandas-ta-classic, ta, or TA-Lib.
ta's verified bugs, if you must use itIsolated by perturbing only future bars and checking whether early bars changed:
IchimokuIndicator(..., visual=True).ichimoku_a() — CONFIRMED LOOK-AHEAD, 26 early bars
changed, max |Δ| 35.34, even with fillna=False.DPOIndicator(..., fillna=True).dpo() — CONFIRMED LOOK-AHEAD, 11 early bars, max |Δ| 34.43._check_fillna() does ffill().bfill() — the bfill() pulls future values backwards into
leading NaNs; PSAR up/down are genuinely affected.ichimoku_b() hardcodes min_periods=0 — the first 51 Span B values are computed on partial
windows and are silently wrong.ta.utils.dropna() silently deletes every row where any numeric column equals 0.0 — it will
destroy zero-volume and zero-return rows.../../../fin-core/skills/signal-construction/SKILL.md — leak-free signal construction, §2 measured agreement../../../fin-core/skills/signal-construction/references/indicator-libraries.md — the source card../../../fin-core/skills/signal-construction/references/_repainting.md — the full repainting detailThis file is the deep dive on one library and assumes the choice is already made.
For which library to pick, how it compares with the alternatives, and the traps that span
several of them, the entry point is the domain skill signal-construction (../../../fin-core/skills/signal-construction/SKILL.md).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
24 skills in this plugin
/lib-akshareakshare is the widest free Chinese-market scraper (1,103 public interfaces) and it purges its own PyPI history, so you cannot pin it. TRIGGER - akshare, "import akshare as ak", pip install akshare, stock_zh_a_hist, stock_zh_a_daily, index_stock_cons_csindex, stock_zt_pool_em, stock_zh_a_stop_em, adjust="qfq"/"hfq", 复权, 前复权, 后复权, 涨跌停, 东方财富, 新浪财经, A股数据, 沪深300成分股, "No matching distribution found for akshare==", akshare 报错, akshare 封 IP. akshare ships roughly 2.3 releases a week and deletes the old ones, so any signature, column name or version pin you remember is probably already gone. SKIP for lib-tushare, which is the skill for point-in-time fundamentals and dated index membership. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./lib-alpaca-pyAlpaca's current Python SDK, which defaults to the paper host but lets url_override silently send live orders from a client that believes it is in the sandbox. TRIGGER - import alpaca, pip install alpaca-py, TradingClient, StockHistoricalDataClient, CryptoHistoricalDataClient, submit_order, LimitOrderRequest, MarketOrderRequest, OrderSide, TimeInForce, client_order_id, url_override, paper=True, BaseURL.TRADING_PAPER, paper-api.alpaca.markets, bracket OCO OTO orders, trail_percent, IEX vs SIP feed, Algo Trader Plus, alpaca-trade-api, APCA_API_BASE_URL; an order rejected asynchronously for time-in-force or price precision. Memory is stale here: alpaca-trade-api was deprecated in 2024 and defaulted to LIVE, whereas alpaca-py 0.44.0 (2026-08-11) declares paper=True - the widely repeated warning is inverted. SKIP for Interactive Brokers and for the general order-safety patterns (broker-execution-apis). SKIP for choosing between libraries, or when no library is named - the domain skill's job./lib-alphalensalphalens-reloaded scores cross-sectional factors, and its forward return starts at date t's OWN price - it never lags your factor. TRIGGER - alphalens, alphalens-reloaded, "import alphalens as al", get_clean_factor_and_forward_returns, compute_forward_returns, factor_information_coefficient, mean_return_by_quantile, factor_returns, quantile_turnover, factor_rank_autocorrelation, create_full_tear_sheet, MaxLossExceededError, max_loss=0.35, cumulative_returns, information coefficient, IC decay, quantile spread, "pip install alphalens". The original quantopian package is dead at 0.4.0 (2020-04-27) and most snippets you recall target it or its removed pandas internals. SKIP for lib-qlib, which is the skill for the feature pipeline and model. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./lib-archThe reference GARCH implementation in Python, and the home of SPA/StepM/MCS - which all take LOSSES, so passing returns silently inverts the test and names your worst strategy as the best. TRIGGER - arch, arch_model, arch.bootstrap, arch.univariate, SPA, RealityCheck, StepM, MCS, optimal_block_length, StationaryBootstrap, superior_models, spa.pvalues, mcs.included, arch.unitroot, GARCH, EGARCH, GJR-GARCH, TARCH, APARCH, FIGARCH, HARCH, HAR-RV, skewt, conditional_volatility, or a GARCH fit emitting convergence warnings. Memory is stale on licence and version - it is 8.0.0 (2025-10-21) under NCSA, not one of the three usual permissive licences. SKIP for PSR and DSR (backtest-validation), for PBO and CPCV (lib-purgedcv) and for reporting Sharpe (lib-quantstats). SKIP for choosing between libraries, or when no library is named - the domain skill's job./lib-backtesting-pySingle-asset bar-loop backtester with honest next-open fills, an AGPL-3.0 licence, and an indicator API that computes over the entire series before slicing. TRIGGER - from backtesting import Backtest, Strategy; pip install backtesting, bt = Backtest(df, MyStrategy), bt.run(), bt.optimize(), self.I(), self.buy(), self.sell(), self.data.Close, trade_on_close, exclusive_orders, finalize_trades, commission, spread, backtesting.lib crossover, _OutOfMoneyError, "kernc"; wanting a portfolio, a universe or a second instrument inside it. Memory is stale here: it is alive at 0.6.6 (2026-07-22), it is AGPL-3.0-or-later rather than MIT, and trade_on_close fills at data.Close[-2] rather than the current bar's close. SKIP for multi-asset or cross-sectional work and for engine choice generally (backtesting-engines). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./lib-ccxtThe unified MIT client for 100+ crypto venues - and not a backtester, with an OHLCV endpoint that silently truncates and returns an unclosed final bar. TRIGGER - import ccxt, import ccxt.pro, import ccxt.async_support, pip install ccxt, fetch_ohlcv, fetchOHLCV, load_markets, fetch_markets, create_order, watchOrderBook, watchTicker, watchMyTrades, set_sandbox_mode, enableRateLimit, amount_to_precision, price_to_precision, exchange.has, options defaultType, parse8601, implicit methods like fapiPrivateGetPositionRisk, CCXT Pro subscription expiry, funding rate history; an order rejected on precision or min-notional, fewer candles returned than requested. Memory is stale here: CCXT Pro was merged into the free MIT package at v1.95, prediction markets landed at 4.5.66, and 4.5.77 shipped 2026-09-01. SKIP for equity and futures brokers (broker-execution-apis). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./fin-libraries:lib-talibfrom fin-libraries
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin fin-libraries