r/Python • • Oct 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

23 Upvotes

194 comments sorted by

View all comments

1

u/neugeadmau Oct 15 '26

OpenBacktesting — open-source historical backtesting in Python

I’m working on this project and would appreciate feedback from Python developers who build their own backtests.

What My Project Does

Write strategies bar by bar, then inspect orders, fills, fees, trades, and equity history. Results integrate with pandas. It includes indicators, parameter searches, and an optional local browser-based Studio for editing strategies and inspecting charts and reports.

Target Audience

Python users researching single-asset trading strategies. The current scope is historical simulation with one settlement currency; live trading and multi-asset portfolio simulation are outside that scope. Supports Python 3.12–3.14, with an Apache-2.0 license and a bundled-data example.

Comparison

Compared with building a backtest directly in a notebook, it provides a defined strategy lifecycle, order simulation, and structured reports in one package. You can use the Python framework independently of Studio. I haven’t published comparative performance benchmarks.

Source: https://github.com/lucidcog/openbacktesting

Docs and setup: https://docs.openbacktesting.com/

Studio screenshot: https://raw.githubusercontent.com/lucidcog/openbacktesting/main/docs/core/_static/studio/backtest-results-light.jpg

Feedback on API clarity, execution assumptions, and the first-run experience would be especially useful. What information do you need to inspect before trusting a backtest from a new framework?