Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Backtrader

backtrader.com

  • Free plan
  • Windows
  • macOS
  • Linux
7.5 Club score Visit backtrader.com

GPLv3+

Free

Free plan

What the maker publishes

Analyzers
Built-in performance analyzers include TimeReturns, TradeAnalyzer, SharpeRatio, VWR, and SQN. source
Audience
PyPI lists the intended audience as developers and the financial and insurance industry, and marks the project Production/Stable. source
Current release
The current PyPI release is 1.9.78.123, described as a BackTesting Engine, and that wheel was uploaded on April 19, 2023. source
Data feeds
Built-in feeds include CSV, database sources, Yahoo Finance, Interactive Brokers, and Oanda v1, and multiple feeds and timeframes can run together. source
IB live limit
Interactive Brokers live data and trading need the IbPy module, and strategies should be tested on a paper-trading account or the TWS demo before production. source
Indicators
It ships more than 122 indicators, including SMA, EMA, MACD, Stochastic, and RSI, and it integrates ta-lib. source
Install
The core package is self-contained with no external dependencies and is installed with pip install backtrader; plotting is an extra. source
Live brokers
Live trading is supported with Interactive Brokers, Oanda v1, and VisualChart, plus external brokers including Alpaca, Oanda v2, and ccxt. source
Oanda limit
The built-in Oanda integration needs oandapy and is REST-only, because v20 did not support streaming when it was implemented. source
Order types
The included broker supports market, limit, stop, stop-limit, trailing-stop, OCO, bracket, and market-on-close orders, and both long and short selling. source
Plotting
Plotting is a single customizable command and requires matplotlib, with a stated minimum version of 1.4.1. source
Purpose
Backtrader is a Python framework for backtesting and trading so users can write reusable strategies, indicators, and analyzers. source
Python versions
It requires Python 3.2 or newer and also runs on pypy and pypy3, but plotting is unavailable there because matplotlib is not supported under pypy. source
Support
The official community is disabled because it was abused, and the site points people to Stack Overflow questions tagged backtrader. source

Checked against the maker's pages on 14 Nov 2026.