VectorBT

One signal line fanning out into a grid of many parallel equity curves

Mastering VectorBT – Broadcasting -How to Run Multiple Strategies at Once – Part 5 -Python Tutorial

If you're using VectorBT to backtest trading strategies, you've probably seen the term "broadcasting" pop up. It's not just a fancy...
Rajandran R Rajandran R
2 min read

VectorBT Streamlit Backtesting App – Python Tutorial

This Streamlit application is designed for backtesting trading strategies using the VectorBT library in Python. It provides a user-friendly interface to...
Rajandran R Rajandran R
4 min read

How to Install VectorBT in a Virtual Environment and Access using VS Code – Python Tutorial

How to install VectorBT in a Python virtual environment and use it in VS Code, with 2026 Python version support, common...
Rajandran R Rajandran R
6 min read

Mastering VectorBT: Position Sizing – Code Snippets, Part 4, Python Tutorial

VectorBT position sizing explained with Python code: amount, value, percent and targetpercent size types, a sizing calculator and a corrected script.
Rajandran R Rajandran R
6 min read
Mastering VectorBT - Superfast Supertrend Grid Optimization - Part 3 – Python Tutorial

Mastering VectorBT – Superfast Supertrend Grid Optimization – Part 3: Python Tutorial

VectorBT provides a robust framework for optimizing trading strategies more efficiently, enabling the selection of the best parameters and fine-tuning of...
Rajandran R Rajandran R
5 min read
Mastering VectorBT - Portfolio Backtesting and Rebalancing – Part 2 – Python Tutorial

Mastering VectorBT – Portfolio Backtesting and Rebalancing: Part 2, Python Tutorial

Portfolio backtesting is a critical aspect of quantitative finance and trading strategy development. VectorBT is a Python library that stands out...
Rajandran R Rajandran R
5 min read

Mastering VectorBT Backtesting and Optimization – Part 1 – Python Tutorial

A VectorBT backtesting tutorial for Python: backtest an EMA crossover on HDFC Bank, read the metrics, plot equity and drawdown, then...
Rajandran R Rajandran R
8 min read