Learn backtesting and algorithmic trading in Python
Step-by-step guides, runnable strategy walkthroughs, and honest tool comparisons, all built around realistic, reproducible backtests with Manifold-BT.
Guides
- Best Python Backtesting Libraries in 2026
Eight libraries compared on what their users praise and complain about: engine, multi-asset, execution realism, live trading, licence, maintenance. Checked September 2026.
- How to Backtest a Trading Strategy
A step-by-step Python walkthrough: from raw bars to a realistic backtest and a tearsheet.
- What Is Backtesting?
What backtesting is, why it works, where it lies to you, and how to do it honestly in Python.
- Algorithmic Trading in Python
The libraries, the workflow, and a runnable parameter sweep to research systematic strategies.
- Walk-Forward Optimization in Python
Optimize in-sample, validate out-of-sample, fold by fold, the honest way to tune parameters.
- Free Crypto Tick Data
Binance and Bybit publish their trades, and Bybit its order book, one file per day: what each archive holds, how big a day is, and how to backtest it.
- MBO vs MBP vs BBO: Order Book Data Levels
What L1, L2 and L3 order book data hold, which backtest needs which, and why only market-by-order data gives a queue position.
- Polymarket Historical Data, Tested
What Polymarket's free APIs return and omit, tested on the real endpoints: 1-minute prices for a market's whole life, every trade, no order book history, and the datasets and archives beyond them.
- Backtest a Trading Strategy with Claude Code
The workflow where a coding agent writes and runs your backtest, what breaks when it writes from memory, and the measured difference a reference makes.
Comparisons
- Manifold-BT vs RaptorBT
Two Rust engines, benchmarked head to head: one backtest at a time, and the parameter sweeps that validate a strategy, which RaptorBT has to run as a Python loop.
- Manifold-BT vs Freqtrade
An honest comparison: fast, realistic backtesting versus live crypto trading, and when to use each.
- Manifold-BT vs vectorbt
Rust engine with vectorized signals and a sequential fills pass, versus vectorized NumPy: speed, realism, path-dependent logic.
- Manifold-BT vs Backtrader
A fast, realistic research engine versus the classic pure-Python framework, and when each fits.
- Manifold-BT vs NautilusTrader
A research backtesting library with fast parameter sweeps and GPU, versus a full event-driven platform built for live trading and backtest-to-live parity.
- Manifold-BT vs hftbacktest
The same queue models fed the same quotes: 99.955% to 100% agreement on L2, none of hftbacktest's L3 fills missing, the rules where the two engines part, and when hftbacktest is the better pick.
- Manifold-BT vs QuantConnect
A local Python research library versus a hosted platform: pip install and every core of your machine, against cloud nodes, credits and live deployment, with the pricing compared.
- Manifold-BT vs Backtesting.py
The simplest Python backtester versus a Rust research engine: one instrument and a commission rate, against a universe in one account, funding, partial fills and walk-forward.
Deep dives
- Realistic Backtest Execution
Slippage, market impact, funding, partial fills, and signal delay: why most backtests lie, and how to fix it.
- Why AI-Written Backtests Lie
Look-ahead, optimistic fills, grid cherry-picking: how an agent-written backtest goes wrong while every number looks fine, and the check that catches each one.
Strategies
15 strategy walkthroughs with runnable Python and a sample tearsheet.
Browse all strategies →