backtrader is a Python framework for developing, backtesting, and running trading strategies. Its Cerebro engine coordinates strategies, data feeds, brokers, indicators, analyzers, and execution. Developers can combine multiple strategies, instruments, and timeframes while resampling or replaying market data. The framework includes a large indicator library, custom indicator support, analyzers, position sizing, commissions, and trading calendars. Its broker simulation supports market, limit, stop, trailing, OCO, and bracket-style orders along with slippage and volume filling. Backtrader can also work with live data and brokerage integrations and provides integrated charting for strategy analysis.

Features

  • Trading strategy backtesting and live execution
  • Multiple strategies, feeds, and timeframes
  • Integrated indicators and custom indicators
  • Broker and order execution simulation
  • Performance analyzers and position sizing
  • Data resampling, replaying, and plotting

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

GNU General Public License version 3.0 (GPLv3)

Follow backtrader

backtrader Web Site

Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of backtrader!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2026-08-17