Update back-testing.md

This commit is contained in:
Yo-An Lin 2022-10-04 16:44:54 +08:00 committed by GitHub
parent 04453c23ea
commit de3ebc23f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,12 @@ Note on date formats, the following date formats are supported:
And then, you can sync remote exchange k-lines (candle bars) data for back-testing:
```sh
bbgo backtest -v --sync --config config/grid.yaml
```
To customize the sync data range, add `--sync-from`:
```sh
bbgo backtest -v --sync --sync-only --sync-from 2020-11-01 --config config/grid.yaml
```