Skip to content

Welcome to backtrader!

A feature-rich Python framework for backtesting and trading

backtrader allows you to focus on writing reusable trading strategies, indicators and analyzers instead of having to spend time building infrastructure.


Open Source - GitHub

Use, modify, audit and share it. The secret is in the sauce and you are the cook. This is just the tool.

Docs & Blog

Check the QuickStart, the extensive documentation, in-depth topics and ideas in the blog.

Community (En)Disabled

It was being abused. It may come back in the future. In the meanwhile try for example: stackoverflow "backtrader" .

Hello Algotrading!

See a quick example of a Simple Moving Average Crossover strategy (long-only)

Features

See a quick overview of all the goodies that backtrader has to offer.