Live metrics
| polakowo/vectorbt | mementum/backtrader | |
|---|---|---|
| AlgoScore | 84 | 60 |
| ★ | 10k | 24k |
| Forks | 1.4k | 5.3k |
| 30d growth | — | — |
| Last push | 28.11.2026 | 19.08.2024 |
| Last release | 28.11.2026 | 19.11.2016 |
| Contributors | 39 | 56 |
| License | NOASSERTION | GPL-3.0 |
Point by pointchecked 05.12.2026
| vectorbt | backtrader | |
|---|---|---|
| Model | Vectorized: NumPy arrays, Numba, optional Rust engine | Event-driven: the strategy receives bars one by one in next() |
| Language | Python 3.11 to 3.14 | Python, no external dependencies except for plotting |
| License | Apache 2.0 with Commons Clause: selling a product built on it is not allowed | GPL-3.0 |
| Strength | Sweeping thousands of parameters and assets in one run, walk-forward | Realistic broker: Market, Limit, Stop, StopLimit, trailing, OCO, brackets, slippage |
| Indicators | Built-in plus TA-Lib and Pandas TA integrations | 122 built-in, TA-Lib support |
| Live trading | Not in the README; data scheduling and Telegram notifications exist | Interactive Brokers, Oanda, Visual Chart via third-party packages |
| Paid edition | VectorBT PRO; the README lists limit orders and leverage as PRO features | None |
| Learning curve | You have to think in arrays and broadcasting | Familiar to anyone who has written a loop over bars |
| Maintenance | Release v1.2.2 on 2026-11-28 | Last 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.