Backtrader Redbook

I’ve tuned a SMA strategy that’s running on live trading for Chinese markets for commodities futures, after backtested the model via Goldmine between 2017-2021 (5 years histories for sharpe=1, mdd=10%, ror=20%). The plan is to create a program for western markets using the same model for program trading. I need to backtest the model for a list of instruments before live trading.

Backtrader seems a handy tool. Zipline (which was originally from Quantopian) gives me headache when using multiple timeframe of customized data, while Backtrader loads data quite conveniently, so I decided to invest some time on backtrader to experiment its features. This entry lists key features of the tool, with the aim to build a multiple timeframe and multiple commodities CTA strategy using SMA. 1.Basic template strategy runs in backtrader 2.Load Sina Futures Bars Into Backtrader 3.Load customized data under Redis 4.Fix ImportError on “matplotlib” 5.Synchronize Data From Different Market

Published by

wofong

三千娑婆世界,三千难忘遗憾;回头乃是岸,此岸在何方;堪忍不能忍,万般看不穿;何时放得下,始得自在心。 I'm a programmer, a quantitative analyst, a photography hobbyist, a traveler, a runner, and a nature lover.

2 thoughts on “Backtrader Redbook”

Leave a comment