Home / Backtesting & trading frameworks
backtrader
Python backtesting and live trading platform for strategies
What it is
A Python backtesting and live trading platform for trading strategies. It lets users define strategies with built-in indicators such as moving averages, run them against data feeds from CSV files, online sources, pandas, or blaze, and plot results as full charts. Live data and trading are supported through Interactive Brokers, Visual Chart, and Oanda. Developers should be aware that some live brokers require additional dependencies, and Oanda support is limited to the REST API only.
At a glance
Worth watchingOur rating, based on popularity, maintenance and how ready it is for real use.
| Best for | Developers |
|---|---|
| Used for | Backtesting, Strategy research |
| Markets | Multi-market |
| Stack | Python |
| Learning curve | Moderate learning curve |
| Practical value | High practical value |
| Cost | Free and open source |
| Hardware | No GPU needed |
| Maintenance | No commits in over six months |
GitHub stars, last 30 days
Daily snapshots since 2026-09-12 (up to 30 days): +207 over the period, now 23,448. Gaps mean no snapshot was taken that day.
Python Backtesting library for trading strategies.
Similar tools
Deep reinforcement learning library for automated quantitative trading
Python algorithmic trading framework with machine learning support
Fast limit order book simulator for trading strategy research
Python reinforcement learning framework for training trading agents
Modular schedule-driven backtesting engine for equities and ETFs
Gym-style environment for reinforcement learning trading and backtesting