tradingtools.directory

Backtrader

Free Python library for backtesting and live-trading strategies

About Backtrader

Backtrader is an open-source Python framework for writing indicators and strategies, running backtests and optimizations, and plotting results. It can also trade live through a few broker connectors. It is widely used and well documented, but development has been largely dormant for years.

Best for: Python users who want a flexible, event-driven backtester they fully control.

Pros

  • Free and open source
  • Mature, readable API
  • Good plotting and analyzers

Cons

  • Little recent maintenance
  • Slow on large datasets
  • No bundled data

Tags

More in Backtesting & Strategy Research

See all