Learn how to Backtest your own algorithmic trading strategy using two strategy coding examples involving Regular and Bracket orders respectively. Also, learn to fetch execution logs and various types of Backtesting reports including P&L report, statistics report and order history log for your strategy.
- EMA-Regular-Order Strategy: Fetching the Strategy
- EMA-Regular-Order Strategy: Backtesting the Strategy
- EMA-Regular-Order Strategy: Fetching Backtesting Logs in real time
- EMA-Regular-Order Strategy: Fetching Backtesting Report - Profit-&-Loss Table
- EMA-Regular-Order Strategy: Fetching Backtesting Report - Statistics Table
- EMA-Regular-Order Strategy: Fetching Backtesting Report - Order History
- MACD-Bracket-Order Strategy: Fetching the Strategy
- MACD-Bracket-Order Strategy: Backtesting the Strategy
- MACD-Bracket-Order Strategy: Fetching Backtesting Logs in real time
- MACD-Bracket-Order Strategy: Fetching Backtesting Report - Profit-&-Loss Table
- MACD-Bracket-Order Strategy: Fetching Backtesting Report - Statistics Table
- MACD-Bracket-Order Strategy: Fetching Backtesting Report - Order History
[Click here to VIEW Chapter 9 Jupyter Notebook on nbviewer]
[Click here to RUN Chapter 9 Jupyter Notebook in the cloud using binder. No installation needed on your end.]
- Python 3.7+
- Additional Python Packages required for this chapter can be installed as follows -
$ source <virtualenv> # optional, if you use a virtualenv
$ cd <path-to-this-folder>
$ pip install -r requirements.txt