mementum/backtrader
Python Backtesting library for trading strategies observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4253
- days_rel: n/a
- days_push: 744
- n_releases_24m: 0
Adoption not part of the score
22978 stars · 5248 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Backtrader is a feature-rich Python framework for backtesting trading strategies and live trading, with built-in indicators, data feeds, brokers, and performance analyzers. It lets users write reusable strategies and indicators while handling the event-driven execution engine, plotting, and broker simulation infrastructure.
Use cases
- backtest a moving average crossover strategy on historical stock data
- simulate trading strategies with market, limit, stop, and bracket orders
- test strategies across multiple timeframes and multiple data feeds
- connect to Interactive Brokers or Oanda for live trading
- compute technical indicators like RSI, MACD, and SMA over price series
- analyze strategy performance with returns and trade analyzers
- resample or replay daily bars into intraday chunks
When to choose
- you want a batteries-included Python backtesting engine with 120+ built-in indicators
- you need both backtesting and live trading through the same codebase
- you want built-in charting and performance analyzers without extra tooling
- you prefer a self-contained library with minimal external dependencies
When to avoid
- you need actively maintained software with recent Python version guarantees
- you require vectorized backtesting at scale for large parameter sweeps
- you need modern broker integrations beyond community-maintained third-party extensions
- you want a lightweight custom backtester you fully control
Facets
framework · maturity maintenance
trading simulation data-visualization benchmarking fintech data-science python cross-platform backtesting algorithmic-trading technical-analysis indicators live-trading interactive-brokers oanda finance trading python
7 sources
- readme: https://github.com/mementum/backtrader · fetched 2026-08-28 · 855d2fca6e4f
- homepage: https://www.backtrader.com · fetched 2026-08-29 · 2ef6408e1474
- site_page: https://www.backtrader.com/home/features · fetched 2026-08-29 · 2e271a08ea38
- site_page: https://www.backtrader.com/docu/installation · fetched 2026-08-29 · ab49c8aa384f
- site_page: https://www.backtrader.com/docu/quickstart/quickstart · fetched 2026-08-29 · beee12f951d7
- registry_pypi: https://pypi.org/pypi/backtrader/json · fetched 2026-08-29 · 16ac8651fec5
- site_page: https://www.backtrader.com/docu · fetched 2026-08-29 · d2aa6d66f614
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mementum/backtrader | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="mementum/backtrader")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem