vectorbt vs backtrader: vectorized vs event-driven backtesting

AlgoScore vectorbt / backtrader
84 / 60
★ vectorbt10k
★ backtrader24k
Push vectorbt6 d
Push backtrader2.3 y

Live metrics

polakowo/vectorbtmementum/backtrader
AlgoScore8460
★10k24k
Forks1.4k5.3k
30d growth——
Last push28.11.202619.08.2024
Last release28.11.202619.11.2016
Contributors3956
LicenseNOASSERTIONGPL-3.0

Point by pointchecked 05.12.2026

vectorbtbacktrader
ModelVectorized: NumPy arrays, Numba, optional Rust engineEvent-driven: the strategy receives bars one by one in next()
LanguagePython 3.11 to 3.14Python, no external dependencies except for plotting
LicenseApache 2.0 with Commons Clause: selling a product built on it is not allowedGPL-3.0
StrengthSweeping thousands of parameters and assets in one run, walk-forwardRealistic broker: Market, Limit, Stop, StopLimit, trailing, OCO, brackets, slippage
IndicatorsBuilt-in plus TA-Lib and Pandas TA integrations122 built-in, TA-Lib support
Live tradingNot in the README; data scheduling and Telegram notifications existInteractive Brokers, Oanda, Visual Chart via third-party packages
Paid editionVectorBT PRO; the README lists limit orders and leverage as PRO featuresNone
Learning curveYou have to think in arrays and broadcastingFamiliar to anyone who has written a loop over bars
MaintenanceRelease v1.2.2 on 2026-11-28Last commit 2023-04-19 (1.9.78.123), issues disabled

Verdict

These are two poles of backtesting. vectorbt computes a strategy as whole arrays: entry and exit signals become a portfolio in one call, and broadcasting runs a grid of thousands of parameter combinations across several assets. For idea search and robustness checks, walk-forward included, it is very fast. The limits follow from the model: logic that depends on position state is harder to express, and the README names limit orders and leverage as features of the paid VectorBT PRO. The Apache 2.0 license carries a Commons Clause, so you may not sell a service whose value comes mainly from vectorbt. backtrader simulates trading bar by bar. Its broker simulator is one of the most detailed in Python: about ten order types, brackets, OCO, commission schemes, slippage, data resampling and replay. The code reads easily, and a strategy can move to live trading via Interactive Brokers or Oanda. The problem is maintenance: the last commit on the main branch dates from April 2023, issues are disabled, and the live-broker dependencies are dated. The repository is not archived, but no new versions ship. That is a risk for new projects and acceptable for learning or proven legacy code.

vectorbtPick vectorbt if you search for ideas by brute force: hundreds of parameters, many assets, fast metrics and charts in Jupyter. It is good at shortlisting candidates that you then verify in an event-driven engine with realistic execution.
backtraderPick backtrader if you need detailed order simulation in a readable bar loop and accept a library with no development since 2023. It works for learning and for systems already running on it; a new long-lived project is better started on a maintained engine.