📈 Backtest Visualization Tool — bt-visualizer
A lightweight, interactive charting tool to visualize your backtest results inside JupyterLab, with trade annotations, zoom support, tooltips, and more.
https://github.com/user-attachments/assets/df64633e-7e28-4a82-b4da-9640e7d01b62
✨ Features
- 🕵️ Hover to see trade information
- 🖱️ Click to zoom into a specific trade
- 🔍 Zoom / pan support
- 🖱️ Double click to zoom out
- 🔄 Reset chart and load new backtest results dynamically
📦 Installation
You can install the Python package via pip:
pip install bt-visualizer
Make sure you have JupyterLab installed as well.
🛠️ Usage Example
Inside your JupyterLab notebook:
from bt_visualizer import show_bt_visualization
# Ensure the following files are present in the project directory
show_bt_visualization(
equity="equity_curve.csv",
stats="stats.csv",
ohlc="ohlc.csv",
trades="trades.csv"
)
📂 Input Data Format
The visualization expects CSV input following the structure from backtesting.py outputs.
You can find sample input files here to see the expected format.
Files expected:
-
equity_curve.csv
-
stats.csv
-
ohlc.csv
-
trades.csv
🌐 Online Demo
You can also try the standalone version of the app, deployed here:
💻 Developer Setup (Optional)
If you want to run or modify the TypeScript frontend locally:
git clone https://github.com/Finance-Insight-Lab/bt-visualizer.git
cd bt-visualizer
npm install
npm run dev
This will start the development server.
📝 License
MIT License.
Created by Ali Gheshlaghi.
Metadata
Release files for bt-visualizer 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bt_visualizer-0.2.3.tar.gz | 128.4 kB | Without provenance | Details for bt_visualizer-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bt_visualizer-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for bt_visualizer-0.2.3-py3-none-any.whl |
Total release size: 258.9 kB
Release files / bt_visualizer-0.2.3.tar.gz
| Download URL | bt_visualizer-0.2.3.tar.gz |
|---|---|
| Size | 128.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0e505975fedd3a9798a969c09541e3917e2cd44c5a512d18c14ab49f9b1a708
|
|
BLAKE2b-256 checksum How to use checksums |
b151576a86b803b763436321e3fcc439b6a4418f1a151703bc7af8e71b253f09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / bt_visualizer-0.2.3-py3-none-any.whl
| Download URL | bt_visualizer-0.2.3-py3-none-any.whl |
|---|---|
| Size | 130.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cd2ceddd3f02ae7903451595fcc2446acfa5d7dc34fe65877be3dae03b0eec4
|
|
BLAKE2b-256 checksum How to use checksums |
f13c2eadd97331e1c597cb8c85b080657553e0c257689f8ddd9ab821ab160980
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for bt-visualizer 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.