Quant research & backtesting · Open-source community

Backtrader

Open-source Python backtesting and live-trading framework for building and evaluating trading strategies.

Backtrader is a Python library for backtesting and live trading of quantitative strategies, offering a strategy/indicator/broker object model, built-in performance analyzers, and plotting for visualizing trades against price data. It supports multiple data feeds and timeframes simultaneously, custom indicators and order types, and can route live orders through supported broker integrations such as Interactive Brokers and Oanda. As a self-hosted library rather than a hosted service, it runs entirely on infrastructure the user controls, with no cloud component, account system or subscription. Development activity has slowed in recent years, so users typically pin versions and maintain their own forks for newer Python compatibility.

At a glance

Vendor Open-source community
Pricing model Open source + paid options
Free tier Yes
Deployment Self-hosted
Open source Yes (GPL-3.0)
Best for Python developers who want full control over a self-hosted backtesting engine with no vendor lock-in.

Pricing

Free, open-source Python library with no paid tier or hosted offering.

Pricing has not been verified yet — see the vendor's site.

Features

  • Strategy, indicator and broker object model
  • Built-in performance analyzers (Sharpe, drawdown, returns)
  • Multiple simultaneous data feeds and timeframes
  • Custom indicators and order types
  • Backtest visualization/plotting
  • Live trading via broker integrations (Interactive Brokers, Oanda)

Integrations

Profile last reviewed September 21, 2026

Head to head

Alternatives

Backtrader in the index now

Terms to know

Related guides