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
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
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

3 days ago