UK Edition 19 November 2026 Independent · Editorial · No paid placements

Backtrader

Python framework for backtesting and trading built around reusable indicators, analyzers and a simulated broker.

  • Backtesting
  • Open-source
  • Python library

At a glance

TypePython library
DisciplineBacktesting
Code accessOpen-source
InterfacePython library
Asset coverageMulti-asset
Intended autonomyResearch tool
Official sitewww.backtrader.com ↗
Last reviewedNovember 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.