kernc/backtesting.py

🔎 📈 🐍 💰 Backtest trading strategies in Python.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Added to GitGenius on September 7th, 2026
Created on January 2nd, 2019
Open Issues & Pull Requests: 80 (+0)
GitHub issues: Enabled
Number of forks: 1,531
Total Stargazers: 8,944 (+1)
Total Subscribers: 129 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.5 days
Mean response time: 115.2 days
90th percentile: 436.7 days
Tracked items: 234

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 95% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 6% of issues opened in the past year have been closed. Three people close 89% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 38
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 1,063 days
Stale 30+ days: 28
Stale 90+ days: 24

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (56)
  • invalid (48)
  • question (41)
  • enhancement (35)
  • duplicate (22)
  • help wanted (13)
  • good first issue (8)
  • upstream (8)

Most active issues this week

Detailed Description

Backtesting.py is a Python backtesting engine for evaluating trading strategies against historical market data.

The tool addresses the need to test algorithmic trading strategies before deploying them with real capital. It works by simulating trades on historical OHLC candlestick data, executing strategy logic against past prices, and calculating performance metrics. The engine handles position management, trade accounting, and result analysis automatically, allowing developers to focus on strategy logic rather than simulation mechanics.

Backtesting.py suits traders and quantitative developers who want a lightweight, straightforward way to validate strategies without external dependencies on specific indicator libraries. The tool works with any financial instrument that has candlestick data and remains agnostic about which indicators you use, letting you bring your own from any library. It includes a built-in optimizer for parameter tuning and provides a library of composable base strategies to build upon. The README references alternatives but does not make direct comparisons.

The project maintains high code quality with comprehensive test coverage and fast execution performance. Documentation is thorough and accessible through both a project website and inline API references. The tool is actively maintained with responsive engagement on the discussion board, and contributors are directed to clear guidelines for reporting issues and submitting improvements.