Module backtesting

Backtesting.py Documentation

Manuals

Tutorials

These tutorials are also available as live notebooks: Binder

Example Strategies

  • (contributions welcome)

License

This software is licensed under the terms of AGPL 3.0, meaning you can use it for any reasonable purpose and remain in complete ownership of all the excellent trading strategies you produce, but you are also encouraged to make sure any upgrades to Backtesting.py itself find their way back to the community.

API Reference Documentation

Sub-modules

backtesting.backtesting

Core backtesting data structures. Objects from this module can be imported from the top-level module directly, e.g …

backtesting.lib

Collection of common building blocks, helper auxiliary functions and composable strategy classes for reuse …

backtesting.test

Data and utilities for testing.