Resources¶
Learning material, examples, articles, videos, and help channels for VectorBT. Official resources are listed first in each section, followed by community resources and related VectorBT PRO material where useful.
Start here¶
Install VectorBT with the core package, optional Rust kernels, Docker, and extra dependencies.
Docs Usage examplesStart with holding, signal backtesting, parameter grids, interactive plots, and example apps.
GitHub Source repositoryBrowse the source code, examples, issues, discussions, and release history for the open-source project.
VectorBT PRO VectorBT PROLearn more about the advanced edition and how to access features beyond open-source VectorBT.
Notebooks¶
Run the notebooks locally to interact with widgets and dynamic charts.
Analyze the performance of a dual moving average crossover strategy.
VectorBT Stop signalsStudy stop-loss, trailing-stop, and take-profit behavior.
VectorBT Trading sessionsBacktest signals per trading session and compare session-level behavior.
VectorBT Portfolio optimizationExplore portfolio construction and optimization workflows.
VectorBT MACD parameter volumePlot MACD parameter results as a 3D volume.
VectorBT Walk-forward optimizationSplit time series data and evaluate strategies out of sample.
VectorBT Telegram signal botRun a Telegram-based signal workflow with VectorBT utilities.
VectorBT Porting from backtraderPort an RSI strategy from backtrader into VectorBT.
VectorBT Pairs tradingCompare a pairs-trading workflow against backtrader.
Dashboards¶
Tutorials¶
Design a streaming SuperTrend indicator and run large parameter sweeps.
VectorBT PRO Signal developmentConvert strategies into signals and inspect their distribution for logical flaws.
VectorBT PRO Stop signalsAnalyze stop orders, stop prices, and stop combinations across market regimes.
VectorBT PRO MTF analysisWork with multiple timeframes in a single research pipeline.
VectorBT PRO Portfolio optimizationOptimize portfolio weights and analyze allocation choices.
VectorBT PRO Pairs tradingResearch pairs-trading workflows with VectorBT PRO.
VectorBT PRO Patterns and projectionsDetect historical patterns and project similar future segments.
VectorBT PRO Cross-validationValidate strategy parameters across splits to reduce overfitting.
Qubit Quants Align MTF dataResample and align multiple timeframe data for VectorBT PRO strategies.
Qubit Quants Strategy developmentDevelop signals and convert them into VectorBT PRO portfolio simulations.
Qubit Quants Plot indicators and signalsVisualize indicators, cleaned signals, and strategy behavior in VectorBT PRO.
Qubit Quants Multi-asset simulationSimulate and inspect multi-asset portfolio behavior with VectorBT PRO.
Qubit Quants Custom dashboardBuild a custom dashboard for portfolio simulation and strategy visualization.
Qubit Quants Discretionary signalsBacktest manually derived trading signals with VectorBT PRO.
Qubit Quants Custom simulator basicsIntroduce the main functions behind a custom VectorBT PRO simulator.
Qubit Quants Custom candlestick simulatorImplement a basic candlestick strategy in a custom VectorBT PRO simulator.
Qubit Quants Custom stops simulatorAdd stop-loss and take-profit logic to a custom candlestick simulator.
Qubit Quants Partial profits simulatorExtend custom simulation with partial-profit exits and risk management.
Articles¶
Two million backtests shed light on stop-loss, trailing-stop, and take-profit behavior.
Polakowo on Medium SuperFast SuperTrendDesign a high-performance SuperTrend implementation and scalable backtesting pipeline.
AlgoTrading101 VectorBT introductory guideAlgoTrading101 introduces VectorBT concepts, examples, and common workflows.
Tobi Lux on Medium Backtesting cookbook, part 1Start of a multi-part VectorBT cookbook focused on practical backtesting workflows.
Tobi Lux on Medium Backtesting cookbook, part 2Continue the VectorBT cookbook with additional strategy construction examples.
Tobi Lux on Medium Backtesting cookbook, part 3Expand the cookbook workflow with more VectorBT backtesting patterns.
Tobi Lux on Medium Backtesting cookbook, part 4Work through further practical VectorBT backtesting examples.
Tobi Lux on Medium Backtesting cookbook, part 5Complete the VectorBT cookbook series with additional applied examples.
PyQuant News 1,000,000 backtest simulations in 20 secondsA PyQuant News walkthrough of large-scale VectorBT simulation.
Trading Dude on Medium Backtesting beginner's guideA beginner-oriented walkthrough of setting up and running VectorBT backtests.
Plain English First algorithmic trading modelBuild a first trading model in Python using VectorBT.
Greyhound Analytics Optimize entry and exit pointsUse VectorBT to grid-search entry and exit parameters and visualize the results.
Greyhound Analytics Create a custom indicatorLearn the IndicatorFactory workflow for custom VectorBT indicators.
Greyhound Analytics Use multiple indicatorsCombine RSI, moving averages, and custom logic into a VectorBT strategy.
Greyhound Analytics Plot custom graphsBuild custom Plotly views and portfolio dashboards from VectorBT objects.
Greyhound Analytics Backtest candlestick patternsDetect candlestick patterns with TA-Lib and backtest the signals in VectorBT.
Greyhound Analytics VectorBT vs BacktraderA comparison of VectorBT and Backtrader for Python backtesting workflows.
Coding Nexus Ultra-fast backtesting explainedAn overview of VectorBT's vectorized approach to fast strategy backtesting.
PTA on Medium Find your trading edgeExplore VectorBT as a fast Python engine for strategy discovery and testing.
AIMonks High-speed backtesting engineA high-level explanation of VectorBT's role in fast quantitative research.
PyQuantLab Minimal grid searchRun a compact VectorBT grid search using MultiIndex signal arrays.
PyQuantLab ETH trend-following strategyBuild and test a simple ETH trend-following strategy with VectorBT.
PyQuantLab Dynamic momentum squeezeImplement a momentum-squeeze strategy and backtest it with VectorBT.
PyQuantLab EMA-ATR breakout sweepParameter-sweep an EMA and ATR breakout strategy with an ADX filter.
PyQuantLab AO Twin Peaks strategyCombine AO Twin Peaks, market structure breaks, and ATR trailing stops.
Financialnoob on Substack Trading signal analysis with MarimoAnalyze trading signals with Marimo and VectorBT PRO.
PyQuant News Find chart patternsUse VectorBT PRO to algorithmically find chart patterns at scale.
PyQuant News Intraday backtestingBacktest intraday trading strategies with VectorBT PRO.
PyQuant News Cross-validate parametersUse cross-validation to improve strategy parameter selection.
PyQuant News Pairs trading with 500 stocksUse VectorBT PRO to build and test a large-universe pairs-trading workflow.
PyQuant News Forecast future price trendsProject future price segments from historical pattern matches.
Videos¶
Chad Thackray on YouTube Vectorbt for beginners A full Python course introducing VectorBT workflows for backtesting and research.
PyQuant News on YouTube 1,000,000 backtests A video walkthrough of running large-scale VectorBT simulations quickly.
Part Time Larry on YouTube VectorBT vs Backtrader Compare VectorBT's vectorized analysis style with Backtrader workflows.
PythonIA on YouTube 5 VectorBT use cases Survey practical algorithmic trading use cases with VectorBT and Python.
The Data Science Channel on YouTube Quantitative analysis An introduction to using VectorBT for quantitative analysis in Python.
OpenAlgo on YouTube OpenAlgo backtesting skills Use VectorBT in an OpenAlgo-focused backtesting workflow.
OpenAlgo on YouTube Self-improving AI backtesting OpenAlgo, DuckDB, Claude Code, and VectorBT in an automated research loop.
Trade Science on YouTube Walk-forward optimization Trade Science shows how to run walk-forward optimization in Python with VectorBT PRO.
Qubit Quants on YouTube Cross validation Validate parameter choices across time and reduce overfitting risk.
Qubit Quants on YouTube Multiple timeframe analysis Combine indicators across timeframes for a VectorBT PRO EMA crossover strategy.
Qubit Quants on YouTube Take profit ladders Build and test laddered take-profit behavior in VectorBT PRO.
Chad Thackray on YouTube Install guide and subscriber perks Chad Thackray covers installation, member resources, and how to approach learning VectorBT PRO.
Chad Thackray on YouTube Multi strategy portfolios Build and analyze multi-strategy portfolios with VectorBT PRO.
Qubit Quants on YouTube Custom Plotly dashboard Build a custom Plotly dashboard around VectorBT PRO analysis.
Qubit Quants on YouTube Discretionary signals Qubit Quants demonstrates backtesting manually derived signals with VectorBT PRO.
Books¶
Code repositories¶
Companion repository for the Python for Algorithmic Trading Cookbook.
AlgoTrading101 on GitHub AlgoTrading101 examplesExample notebooks and code for the AlgoTrading101 VectorBT guide.
Chad Thackray on GitHub VectorBT for beginners codeCompanion repository for Chad Thackray's VectorBT for beginners video course.
Marketcalls on GitHub VectorBT backtesting skillsOpenAlgo-oriented VectorBT examples and backtesting utilities.
Qubit Quants on GitHub VectorBT PRO tutorials codeCompanion repository for the Qubit Quants VectorBT PRO tutorial series.
Research¶
Research on parameter optimization and different exit strategies using VectorBT.
LinkedIn Automation of financial portfolio managementA thesis listed by the VectorBT PRO tutorials as research that utilized VBT.
Getting help¶
Start here for general VectorBT questions and community discussion.
GitHub Issues IssuesOpen an issue when you have found what appears to be a bug.
VectorBT PRO Discord serverVectorBT PRO members can use the community server for discussion and support.
Contributing¶
If you have created a tutorial using VBT and would like to share it here, please create a PR.
Thanks to everyone who has contributed so far!