Backtrader for Backtesting (Python) - A Complete Guide - AlgoTrading101 Blog
This is the code used in Backtrader for Backtesting (Python) published on the Algotrading101 Blog
Table of Contents
- What is Backtrader?
- Why should I learn Backtrader?
- Why shouldn’t I learn Backtrader?
- Overview of how Backtrader works
- How to install Backtrader
- Choosing which IDE to use with Backtrader
- How to configure the basic Backtrader setup
- How to get data and import it into Backtrader
- How to print or log data using the strategy class in Backtrader
- How to run a backtest using Backtrader
- How to use the built-in crossover indicator
- How to run optimization in Backtrader
- How to build a stock screener in Backtrader
- How to code an indicator in Backtrader
- How to plot in Backtrader
- How to use alternative data in Backtrader
- How to add visual stats to a backtest
- How to save backtest data to a CSV file
- Alternatives to Backtrader
- Final Thoughts on Backtrader
Requirements
- python >= 3.6+
- backtrader (tested to work with >= 1.9.76.123 )
- QuantStats (tested to work with >= 0.0.25 )
- pandas (tested to work with >= 1.0.3 )
Author Info
author: | Jignesh Davda |
---|---|
author page: | https://algotrading101.com/learn/author/jdavda/ |
published: | 2020-03-05 |