Skip to content
AI for Finance & Trading

Backtrader Review

Backtrader is a free, GPL-3.0 Python library for backtesting trading strategies and running them live through Interactive Brokers, Oanda or Visual Chart. For Python traders and quants.

Free · Web, GitHub · API

Stork's verdict on Backtrader

Backtrader is still a capable free backtester with live trading on the same code, but it has not been updated since 2023, so weigh that before building on it.

Backtrader reviewed by Stork AI · stork.ai/en/backtrader

stork
I am a flat drawing.
One flat drawing and one typed sentence.
This drawing was never animated.
A photo, a cartoon, a painting or a 3D character. From 10 cents a minute. Free to try.
Make a photo talkDevelopers: there is an API

What Backtrader does

Backtrader is an open-source Python framework for testing trading ideas on historical data. You write a strategy as a Python class, add one or more data feeds (CSV files, pandas dataframes, Yahoo Finance, Interactive Brokers or Oanda), and the Cerebro engine runs it bar by bar through a simulated broker that handles orders, commissions and slippage. Built-in analyzers such as SharpeRatio, TradeAnalyzer, SQN and TimeReturn report the results, and a single command plots the run with matplotlib. The project's features page also lists multiple timeframes, resampling and replay, pluggable position sizers and observers.

Install it with pip install backtrader (or pip install backtrader[plotting] to pull in matplotlib). The README says it runs on Python 3.2 or later and also on PyPy without plotting. Live trading uses the same strategy code with an Interactive Brokers (IbPy), Oanda (oandapy, REST only) or Visual Chart store; the features page adds that third-party packages connect it to Alpaca, Oanda v2 and ccxt. Development has been quiet for years: the latest PyPI release, 1.9.78.123, dates from April 19, 2023, and that is also the date of the most recent commit on the GitHub repository.

Backtrader pricing

PlanMonthly priceWhat you get
Open source (GPL-3.0)$0The full library, all indicators, analyzers, data feeds and broker stores

Backtrader has no paid plan, hosted service or account. The code is published under the GPL-3.0 license on GitHub and on PyPI. GPL-3.0 matters if you plan to distribute software built on it: derived works you distribute must be released under the same license. Costs outside the project are your own: market data, broker accounts and any third-party store packages.

Prices checked on the vendor's pricing page on November 10, 2026. Backtrader has no pricing page; the license is stated in the GitHub repository.

Key features

What the official features page and README list:

  • Cerebro engine that runs one or many strategies over one or many data feeds
  • 122 built-in indicators (moving averages, MACD, Stochastic, RSI and more) plus ta-lib integration
  • Data feeds from CSV, pandas, Yahoo Finance, Interactive Brokers and Oanda, with resampling and replay
  • Simulated broker with order types, commission schemes and position sizers
  • Analyzers including SharpeRatio, TradeAnalyzer, SQN, VWR and TimeReturn
  • Live trading through Interactive Brokers, Oanda v1 and Visual Chart, plus third-party stores
  • One-command plotting with matplotlib (an optional extra)
  • Strategy parameter optimization across runs

Who Backtrader is best for

Backtrader suits Python traders who want an event-driven backtester they can read and extend, with realistic order handling and a path to live trading on Interactive Brokers or Oanda. Its long history means many tutorials, blog posts and forum threads exist for common problems.

It is a weaker fit if you need speed on large universes or parameter sweeps: vectorized tools such as VectorBT are built for that. For a smaller, actively maintained library with interactive charts, look at Backtesting.py. If you want hosted data and cloud backtests, QuantConnect is the usual pick. Teams that need a maintained engine for production trading may prefer NautilusTrader or Zipline Reloaded.

What users say

Third-party write-ups agree on the trade-off between realism and speed. A Trading Brokers comparison (July 2026; the site says it may earn broker referral fees) calls Backtrader "slower for large datasets" than vectorbt but credits it with more realistic simulation and an easy move to live trading, while noting more boilerplate and a moderate learning curve. Snyk's package page rates its maintenance as inactive, with no new PyPI versions in the past 12 months, while reporting no known vulnerabilities in the latest version. The project remains popular, with about 23,700 stars on GitHub as of November 10, 2026.

Pros

  • Free and open source, with no account or usage limits
  • 122 built-in indicators plus ta-lib support
  • Same strategy code runs in backtests and live trading
  • Event-driven broker simulation with commissions, sizers and order types
  • Large body of tutorials and community answers from years of use

Cons

  • No release since April 2023 and no recent commits
  • Slower than vectorized tools on large datasets or parameter sweeps
  • Built-in live stores cover only Interactive Brokers, Oanda and Visual Chart
  • GPL-3.0 license constrains distributing closed-source software built on it

Frequently asked questions

Is Backtrader free?

Yes. Backtrader is open source under the GPL-3.0 license, with no paid plan. You install it with pip install backtrader. You still pay for your own market data and broker account.

Is Backtrader still maintained?

Not actively. The latest PyPI release is 1.9.78.123 from April 19, 2023, and the GitHub repository's most recent commit is from the same day. Snyk rates its maintenance as inactive. The library still installs and works, but expect no new features or fixes.

Can Backtrader trade live?

Yes. It ships stores for Interactive Brokers (via IbPy), Oanda (REST API) and Visual Chart, and the project lists third-party integrations for Alpaca, Oanda v2 and ccxt. The same strategy class runs in backtests and live.

What Python version does Backtrader need?

The README says Python 3.2 or later, and that it also runs on PyPy and PyPy3 without plotting. Plotting needs matplotlib 1.4.1 or later.

How many indicators does Backtrader include?

122 built-in indicators according to the README, and it can also use ta-lib indicators if you install the Python ta-lib package.

Backtrader vs vectorbt: which is faster?

vectorbt. It runs vectorized calculations over arrays, while Backtrader steps through bars event by event. Third-party comparisons describe Backtrader as slower on large datasets but closer to real order execution.

What are the best Backtrader alternatives?

VectorBT for fast vectorized research, Backtesting.py for a small maintained library, QuantConnect for cloud backtesting with hosted data, and NautilusTrader or Zipline Reloaded for maintained open-source engines.

Compare Alternatives

See every Backtrader alternative, compared

Backtrader

Free · Web, GitHub · API

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking