Fix markdown mistakes in backtesting doc
This commit is contained in:
parent
14d16f2574
commit
861e065d08
@ -52,37 +52,43 @@ python3 ./freqtrade/main.py backtesting --datadir freqtrade/tests/testdata-20180
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Running backtest with smaller testset**
|
**Running backtest with smaller testset**
|
||||||
Use the --timerange argument to change how much of the testset
|
Use the `--timerange` argument to change how much of the testset
|
||||||
you want to use. The last N ticks/timeframes will be used.
|
you want to use. The last N ticks/timeframes will be used.
|
||||||
Example:
|
|
||||||
|
|
||||||
|
Example:
|
||||||
```bash
|
```bash
|
||||||
python3 ./freqtrade/main.py backtesting --timerange=-200
|
python3 ./freqtrade/main.py backtesting --timerange=-200
|
||||||
```
|
```
|
||||||
|
|
||||||
***Advanced use of timerange***
|
***Advanced use of timerange***
|
||||||
Doing --timerange=-200 will get the last 200 timeframes
|
Doing `--timerange=-200` will get the last 200 timeframes
|
||||||
from your inputdata. You can also specify specific dates,
|
from your inputdata. You can also specify specific dates,
|
||||||
or a range span indexed by start and stop.
|
or a range span indexed by start and stop.
|
||||||
The full timerange specification:
|
|
||||||
Not implemented yet! --timerange=-20180131
|
The full timerange specification:
|
||||||
Not implemented yet! --timerange=20180101-
|
- Use last 123 tickframes of data: `--timerange=-123`
|
||||||
Not implemented yet! --timerange=20180101-20181231
|
- Use first 123 tickframes of data: `--timerange=123-`
|
||||||
Last 123 tickframes of data: --timerange=-123
|
- Use tickframes from line 123 through 456: `--timerange=123-456`
|
||||||
First 123 tickframes of data: --timerange=123-
|
|
||||||
Tickframes from line 123 through 456: --timerange=123-456
|
|
||||||
|
|
||||||
|
|
||||||
**Update testdata directory
|
Incoming feature, not implemented yet:
|
||||||
|
- `--timerange=-20180131`
|
||||||
|
- `--timerange=20180101-`
|
||||||
|
- `--timerange=20180101-20181231`
|
||||||
|
|
||||||
|
|
||||||
|
**Update testdata directory**
|
||||||
To update your testdata directory, or download into another testdata directory:
|
To update your testdata directory, or download into another testdata directory:
|
||||||
```bash
|
```bash
|
||||||
mkdir freqtrade/tests/testdata-20180113
|
mkdir -p user_data/data/testdata-20180113
|
||||||
cp freqtrade/tests/testdata/pairs.json freqtrade/tests/testdata-20180113
|
cp freqtrade/tests/testdata/pairs.json user_data/data-20180113
|
||||||
cd freqtrade/tests/testdata-20180113
|
cd user_data/data-20180113
|
||||||
|
```
|
||||||
|
|
||||||
Possibly edit pairs.json file to include/exclude pairs
|
Possibly edit pairs.json file to include/exclude pairs
|
||||||
|
|
||||||
python download_backtest_data.py -p pairs.json
|
```bash
|
||||||
|
python freqtrade/tests/testdata/download_backtest_data.py -p pairs.json
|
||||||
```
|
```
|
||||||
|
|
||||||
The script will read your pairs.json file, and download ticker data
|
The script will read your pairs.json file, and download ticker data
|
||||||
|
Loading…
Reference in New Issue
Block a user