Skip to content

Commit 3ce5249

Browse files
committed
Merge branch 'hotfix/issue_42'
2 parents b9fdb68 + 2baca74 commit 3ce5249

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)