File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,20 @@ $ pip install basana[charts] talipp pandas statsmodels
2626
2727### Backtest a pairs trading strategy
2828
29- #### Download historical data for backtesting
29+ 1 . Download an unzip [ samples ] ( https://github.com/gbeced/basana/releases/download/1.6.2/samples.zip ) .
3030
31- ```
32- $ python -m basana.external.binance.tools.download_bars -c BCH/USDT -p 1h -s 2021-12-01 -e 2021-12-26 -o binance_bchusdt_hourly.csv
33- $ python -m basana.external.binance.tools.download_bars -c CVC/USDT -p 1h -s 2021-12-01 -e 2021-12-26 -o binance_cvcusdt_hourly.csv
34- ```
31+ 2 . Download historical data for backtesting
3532
36- #### Run the backtest
33+ ```
34+ $ python -m basana.external.binance.tools.download_bars -c BCH/USDT -p 1h -s 2021-12-01 -e 2021-12-26 -o binance_bchusdt_hourly.csv
35+ $ python -m basana.external.binance.tools.download_bars -c CVC/USDT -p 1h -s 2021-12-01 -e 2021-12-26 -o binance_cvcusdt_hourly.csv
36+ ```
3737
38- ```
39- $ python -m samples.backtest_pairs_trading
40- ```
38+ 3 . Run the backtest
39+
40+ ```
41+ $ python -m samples.backtest_pairs_trading
42+ ```
4143
4244![ ./docs/_ static/readme_pairs_trading.png] ( ./docs/_static/readme_pairs_trading.png )
4345
You can’t perform that action at this time.
0 commit comments