Backtrader
Python framework for backtesting and trading built around reusable indicators, analyzers and a simulated broker.
At a glance
| Type | Python library |
|---|---|
| Discipline | Backtesting |
| Code access | Open-source |
| Interface | Python library |
| Asset coverage | Multi-asset |
| Intended autonomy | Research tool |
| Official site | www.backtrader.com ↗ |
| Last reviewed | November 2026 |
Best suited to
Python users testing single-instrument or small-portfolio strategies with custom indicators.
Strengths
- Flexible, readable strategy code
- Rich set of built-in indicators and analyzers
- Widely used in tutorials and courses
Limitations
- Development activity has slowed
- Can be slow on large universes
- Live trading integrations are limited and dated
Editorial note
Flexible and widely taught. Development activity has slowed, so check compatibility with current Python versions.
Before you use it
Pin library versions and test compatibility with current Python and pandas releases.