Home / Backtesting & trading frameworks
algorithmic-trading-with-python
Python resources for trading simulation, backtesting, and ML
What it is
A collection of free pandas and scikit-learn resources for trading simulation, backtesting, and machine learning on financial data. Stand-alone modules cover performance metrics, technical indicators in pure pandas, ternary signal conversion, grid search optimization, portfolio simulation building blocks, and multi-core repeated K-fold cross-validation, along with simulated EOD stock and alternative data streams. Researchers interested in strategy evaluation and model validation can use these components with or without the companion material. Much of the deeper explanation and context depends on the accompanying book, and much of the code is research-oriented rather than a finished product.
At a glance
Research onlyOur rating, based on popularity, maintenance and how ready it is for real use.
| Best for | Beginners |
|---|---|
| Used for | Backtesting, Strategy research |
| Markets | Multi-market |
| Stack | Python |
| Learning curve | Easy to start |
| Practical value | Medium practical value |
| Cost | Free and open source |
| Hardware | No GPU needed |
| Maintenance | No commits in over six months |
GitHub stars, last 30 days
Daily snapshots since 2026-09-12 (up to 30 days): +5 over the period, now 3,490. Gaps mean no snapshot was taken that day.
Free `pandas` and `scikit-learn` resources for trading simulation, backtesting, and machine learning on financial data.
Similar tools
Flexible Python backtesting framework for investment strategies
Backtest investment strategies in a few lines of Python
Vectorized Python backtesting and strategy research toolkit
Deep reinforcement learning library for automated quantitative trading
Python algorithmic trading framework with machine learning support