# Backtesting | TradingAgentStack

> Backtesting for AI trading: QuantConnect / LEAN, NautilusTrader, VectorBT, Backtesting.py, Tactfolio, Vesper. Sources, pricing and safety controls.

Canonical: https://tradingagentstack.com/category/backtest-platform/

1. [Home](https://tradingagentstack.com/)

2. Backtesting

# Backtesting
Markets & infrastructure

**Who it's for:** Quants testing strategies on historical data before going live.

Every fact sourced · last checked 2026-11-27 · [how we verify](https://tradingagentstack.com/methodology/)

6 listed, each with a source and last-checked date.

Backtesting engines replay a strategy on historical data before it touches money. Two of the four here can also trade live, which is why their Safety scores are lower than the backtest-only libraries.

- [QuantConnect / LEAN](https://tradingagentstack.com/tool/quantconnect-lean/): backtest, paper, live; free tier (no live trading nodes; live trading needs a paid plan) + paid plans; LEAN open source; covers equities, forex, futures, options, crypto.

- [NautilusTrader](https://tradingagentstack.com/tool/nautilustrader/): backtest and live; open source (LGPL-3.0); multi-venue incl. IBKR and crypto.

- [VectorBT](https://tradingagentstack.com/tool/vectorbt/): backtest/research only; free; fair-code licence (Apache 2.0 with Commons Clause: you can't sell a product or service that is mainly vectorbt), so not OSI open source; works with any data you bring.

- [Backtesting.py](https://tradingagentstack.com/tool/backtesting-py/): backtest only; open source; works with any data you bring.

## Why the scores differ

The Safety score asks what a tool can do with your money. Tools that can't place real-money orders get full points on the first five inputs, because there is nothing for them to do with it. Engines that can trade live are scored like any trading tool, and inputs our sources don't cover count as missing, so those scores are partial. See the [Safety score](https://tradingagentstack.com/safety-score/) and the [methodology](https://tradingagentstack.com/methodology/).

Next: run a strategy on paper with [paper trading and guardrails](https://tradingagentstack.com/best-paper-trading-and-guardrails-for-ai-agents/), or learn the basics on [learn algorithmic trading](https://tradingagentstack.com/learn-algorithmic-trading/).

**Featured** · Make a listed tool stand out here for $149 per 30 days: labelled, and it never changes scores, facts or order. [Featured listings](https://tradingagentstack.com/advertise/#featured)

## All 6 backtesting

### [QuantConnect / LEAN](https://tradingagentstack.com/tool/quantconnect-lean/)
Backtestingofficial
**60**
 Pricingfree tier (no live trading nodes
Best forBacktesting · equities, forex, futures
Money accessbacktest, paper, live
Safety 60%✓ Verified 2026-11-20[Details →](https://tradingagentstack.com/tool/quantconnect-lean/)

### [NautilusTrader](https://tradingagentstack.com/tool/nautilustrader/)
Backtestingofficial
**47**
 Pricingopen source (LGPL-3.0)
Best forBacktesting · multi-venue incl. IBKR and crypto
Money accessbacktest and live
Safety 47% (partial)✓ Verified 2026-11-20[Details →](https://tradingagentstack.com/tool/nautilustrader/)

V

### [VectorBT](https://tradingagentstack.com/tool/vectorbt/)
Backtestingofficial
**90**
 Pricingfree
Best forBacktesting · any (bring data)
Money accessbacktest/research only
Safety 90%✓ Verified 2026-11-23[Details →](https://tradingagentstack.com/tool/vectorbt/)

B

### [Backtesting.py](https://tradingagentstack.com/tool/backtesting-py/)
Backtestingofficial
**100**
 Pricingopen source
Best forBacktesting · any (bring data)
Money accessbacktest only
Safety 100%✓ Verified 2026-11-23[Details →](https://tradingagentstack.com/tool/backtesting-py/)

T

### [Tactfolio](https://tradingagentstack.com/tool/tactfolio/)
Backtestingofficial
**33**
 PricingFree $0 (no trading
Best forBacktesting · US-listed stocks, ETFs (long only; no crypto, options, forex or CFDs)
Money accessbacktest, paper and live: strategies run in Tactfolio's own paper account or your Alpaca…
Safety 33% (partial)✓ Verified 2026-11-16[Details →](https://tradingagentstack.com/tool/tactfolio/)

V

### [Vesper](https://tradingagentstack.com/tool/vesper/)
Backtestingofficial
**90**
 PricingFree plan (1 strategy in paper trading, 5 strategy tests a day, 3 tests against cash a…
Best forBacktesting · US stock and ETF options (puts, spreads, covered calls and more), tested on real option quotes since 2016
Money accessbacktest and paper tracking only
Safety 90%✓ Verified 2026-11-26[Details →](https://tradingagentstack.com/tool/vesper/)

## More in Markets & infrastructure
[Crypto exchanges](https://tradingagentstack.com/crypto-exchanges-for-trading-bots/)[Prediction markets](https://tradingagentstack.com/prediction-market-apis/)[Broker APIs](https://tradingagentstack.com/category/broker-api/)[Market data APIs](https://tradingagentstack.com/category/data-api/)[VPS & hosting](https://tradingagentstack.com/vps-for-trading-bots/)[Best crypto exchanges for bots](https://tradingagentstack.com/best-crypto-exchanges-for-trading-bots/)[Best perp DEXs for bots](https://tradingagentstack.com/best-perp-dex-for-trading-bots/)[Best prediction market APIs](https://tradingagentstack.com/best-prediction-market-apis-for-ai-agents/)[Best free market data APIs](https://tradingagentstack.com/best-free-market-data-apis/)[Market data API pricing](https://tradingagentstack.com/market-data-api-pricing/)[Exchange API key safety](https://tradingagentstack.com/exchange-api-key-safety/)

Other paths: [Trade with a bot](https://tradingagentstack.com/trade-with-a-bot/) · [Build an AI agent](https://tradingagentstack.com/build-an-ai-agent/) · [Learn](https://tradingagentstack.com/learn-algorithmic-trading/) · [Search all tools](https://tradingagentstack.com/tools/)

## For agents

- [When to use this site, and the page index](https://tradingagentstack.com/llms.txt)
- [Sitemap](https://tradingagentstack.com/sitemap.xml)
- [Contact](https://tradingagentstack.com/contact/)
- [MCP server](https://tradingagentstack.com/mcp/)
- [MCP discovery](https://tradingagentstack.com/.well-known/mcp)
