Replace separate start/end date option with usual timerange option

This commit is contained in:
froggleston
2022-11-27 11:30:13 +00:00
parent 706bc9ebea
commit 1a3f88c7b9
6 changed files with 21 additions and 48 deletions

View File

@@ -103,15 +103,14 @@ output.
### Filtering the trade output by date
To show only trades between dates within your backtested timerange, supply the following option(s) in YYYYMMDD format:
To show only trades between dates within your backtested timerange, supply the usual `timerange` option in `YYYYMMDD-[YYYYMMDD]` format:
```
--analysis-date-start : Start date to filter output trades, inclusive. e.g. 20220101
--analysis-date-end : End date to filter output trades, exclusive. e.g. 20220131
--timerange : Timerange to filter output trades, start date inclusive, end date exclusive. e.g. 20220101-20221231
```
For example, if your backtest timerange was `20220101-20221231` but you only want to output trades in January:
```bash
freqtrade backtesting-analysis -c <config.json> --analysis-date-start 20220101 --analysis-date-end 20220201
freqtrade backtesting-analysis -c <config.json> --timerange 20220101-20220201
```