# xgboosted/pandas-ta-classic architecture

> Architecture diagram of the GitHub repository xgboosted/pandas-ta-classic, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xgboosted/pandas-ta-classic
- Repository: https://github.com/xgboosted/pandas-ta-classic

## Overview

Pandas TA Classic is a Python technical-analysis library for pandas data. A user applies indicators directly through the `df.ta` DataFrame extension or calls library functions; the library returns indicator series or frames for downstream use. Its capabilities span market indicators, candlestick patterns, performance measures, and utility functions, with optional TA-Lib and Numba integrations. The README documents the user-facing workflow and major capability areas; the source excerpts and index establish selected dispatch and helper relationships, but not every category’s internal calls.

Main entry points: [`pandas_ta_classic/core.py`](https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/core.py) (DataFrame extension), [`pandas_ta_classic/overlap`](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/overlap) (Overlap indicators), [`pandas_ta_classic/utils`](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/utils) (Shared utilities), [`pandas_ta_classic/_meta.py`](https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/_meta.py) (Category metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API and discovery"]
  node_accessor["DataFrame extension<br/>[core.py]"]
  node_discovery["Category metadata<br/>[_meta.py]"]
  node_loader["Indicator loader"]
end

subgraph group_indicators["Market indicators"]
  node_overlap["Overlap indicators"]
  node_momentum["Momentum indicators"]
  node_trend["Trend indicators"]
  node_volatility["Volatility indicators"]
  node_volume["Volume indicators"]
  node_other_indicators["Other indicators"]
end

subgraph group_analytics["Patterns and analytics"]
  node_candles["Candlestick patterns<br/>[cdl_pattern.py]"]
  node_performance["Performance metrics"]
  node_statistics["Statistics indicators"]
end

subgraph group_foundation["Shared foundation"]
  node_helpers["Shared utilities"]
end

subgraph group_acceleration["Optional acceleration"]
  node_talib["TA-Lib"]
  node_numba["Numba"]
end

node_user(("Pandas user"))

node_user -->|"calls"| node_accessor
node_accessor -->|"runs indicators"| node_overlap
node_accessor -->|"runs indicators"| node_momentum
node_accessor -->|"runs indicators"| node_trend
node_accessor -->|"runs indicators"| node_volatility
node_accessor -->|"runs indicators"| node_volume
node_accessor -->|"runs indicators"| node_other_indicators
node_accessor -->|"runs patterns"| node_candles
node_accessor -->|"runs metrics"| node_performance
node_accessor -->|"runs indicators"| node_statistics
node_accessor -->|"uses categories"| node_discovery
node_accessor -->|"loads indicators"| node_loader
node_discovery -->|"provides metadata"| node_loader
node_overlap -->|"uses utilities"| node_helpers
node_candles -->|"uses utilities"| node_helpers
node_accessor -->|"uses utilities"| node_helpers
node_overlap -.->|"optional backend"| node_talib
node_other_indicators -.->|"optional acceleration"| node_numba

click node_accessor "https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/core.py"
click node_discovery "https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/_meta.py"
click node_loader "https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/_indicator_loader.py"
click node_overlap "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/overlap"
click node_momentum "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/momentum"
click node_trend "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/trend"
click node_volatility "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/volatility"
click node_volume "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/volume"
click node_other_indicators "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic"
click node_candles "https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/candles/cdl_pattern.py"
click node_performance "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/performance"
click node_statistics "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/statistics"
click node_helpers "https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/utils"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_accessor,node_discovery,node_loader,node_user toneBlue
class node_overlap,node_momentum,node_trend,node_volatility,node_volume,node_other_indicators toneAmber
class node_candles,node_performance,node_statistics toneMint
class node_helpers toneRose
class node_talib,node_numba toneIndigo
```

## Components

### API and discovery

- [DataFrame extension](https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/core.py): `pandas_ta_classic/core.py`
- [Category metadata](https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/_meta.py): `pandas_ta_classic/_meta.py`
- [Indicator loader](https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/_indicator_loader.py): `pandas_ta_classic/_indicator_loader.py`

### Market indicators

- [Overlap indicators](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/overlap): `pandas_ta_classic/overlap`
- [Momentum indicators](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/momentum): `pandas_ta_classic/momentum`
- [Trend indicators](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/trend): `pandas_ta_classic/trend`
- [Volatility indicators](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/volatility): `pandas_ta_classic/volatility`
- [Volume indicators](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/volume): `pandas_ta_classic/volume`
- [Other indicators](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic): `pandas_ta_classic`

### Patterns and analytics

- [Candlestick patterns](https://github.com/xgboosted/pandas-ta-classic/blob/main/pandas_ta_classic/candles/cdl_pattern.py): `pandas_ta_classic/candles/cdl_pattern.py`
- [Performance metrics](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/performance): `pandas_ta_classic/performance`
- [Statistics indicators](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/statistics): `pandas_ta_classic/statistics`

### Shared foundation

- [Shared utilities](https://github.com/xgboosted/pandas-ta-classic/tree/main/pandas_ta_classic/utils): `pandas_ta_classic/utils`

### Optional acceleration

- **TA-Lib**
- **Numba**

### Other components

- **Pandas user**

## Connections

- Pandas user → DataFrame extension: calls
- DataFrame extension → Overlap indicators: runs indicators
- DataFrame extension → Momentum indicators: runs indicators
- DataFrame extension → Trend indicators: runs indicators
- DataFrame extension → Volatility indicators: runs indicators
- DataFrame extension → Volume indicators: runs indicators
- DataFrame extension → Other indicators: runs indicators (evidence: `pandas_ta_classic/core.py`)
- DataFrame extension → Candlestick patterns: runs patterns (evidence: `pandas_ta_classic/core.py`)
- DataFrame extension → Performance metrics: runs metrics
- DataFrame extension → Statistics indicators: runs indicators
- DataFrame extension → Category metadata: uses categories (evidence: `pandas_ta_classic/core.py`)
- DataFrame extension → Indicator loader: loads indicators (evidence: `pandas_ta_classic/core.py`)
- Category metadata → Indicator loader: provides metadata (evidence: `pandas_ta_classic/_indicator_loader.py`)
- Overlap indicators → Shared utilities: uses utilities (evidence: `pandas_ta_classic/overlap/ema.py`)
- Candlestick patterns → Shared utilities: uses utilities (evidence: `pandas_ta_classic/candles/cdl_pattern.py`)
- DataFrame extension → Shared utilities: uses utilities (evidence: `pandas_ta_classic/core.py`)
- Overlap indicators → TA-Lib: optional backend (evidence: `pandas_ta_classic/overlap/linreg.py`)
- Other indicators → Numba: optional acceleration (evidence: `pandas_ta_classic/utils/_njit.py`)
