@@ -7,111 +7,7 @@ To learn how to get data for the pairs and exchange you're interested in, head o
77
88## Backtesting command reference
99
10- ```
11- usage: freqtrade backtesting [-h] [-v] [--logfile FILE] [-V] [-c PATH]
12- [-d PATH] [--userdir PATH] [-s NAME]
13- [--strategy-path PATH]
14- [--recursive-strategy-search]
15- [--freqaimodel NAME] [--freqaimodel-path PATH]
16- [-i TIMEFRAME] [--timerange TIMERANGE]
17- [--data-format-ohlcv {json,jsongz,hdf5,feather,parquet}]
18- [--max-open-trades INT]
19- [--stake-amount STAKE_AMOUNT] [--fee FLOAT]
20- [-p PAIRS [PAIRS ...]] [--eps]
21- [--enable-protections]
22- [--dry-run-wallet DRY_RUN_WALLET]
23- [--timeframe-detail TIMEFRAME_DETAIL]
24- [--strategy-list STRATEGY_LIST [STRATEGY_LIST ...]]
25- [--export {none,trades,signals}]
26- [--export-filename PATH]
27- [--breakdown {day,week,month} [{day,week,month} ...]]
28- [--cache {none,day,week,month}]
29- [--freqai-backtest-live-models]
30-
31- options:
32- -h, --help show this help message and exit
33- -i TIMEFRAME, --timeframe TIMEFRAME
34- Specify timeframe (`1m`, `5m`, `30m`, `1h`, `1d`).
35- --timerange TIMERANGE
36- Specify what timerange of data to use.
37- --data-format-ohlcv {json,jsongz,hdf5,feather,parquet}
38- Storage format for downloaded candle (OHLCV) data.
39- (default: `feather`).
40- --max-open-trades INT
41- Override the value of the `max_open_trades`
42- configuration setting.
43- --stake-amount STAKE_AMOUNT
44- Override the value of the `stake_amount` configuration
45- setting.
46- --fee FLOAT Specify fee ratio. Will be applied twice (on trade
47- entry and exit).
48- -p PAIRS [PAIRS ...], --pairs PAIRS [PAIRS ...]
49- Limit command to these pairs. Pairs are space-
50- separated.
51- --eps, --enable-position-stacking
52- Allow buying the same pair multiple times (position
53- stacking).
54- --enable-protections, --enableprotections
55- Enable protections for backtesting.Will slow
56- backtesting down by a considerable amount, but will
57- include configured protections
58- --dry-run-wallet DRY_RUN_WALLET, --starting-balance DRY_RUN_WALLET
59- Starting balance, used for backtesting / hyperopt and
60- dry-runs.
61- --timeframe-detail TIMEFRAME_DETAIL
62- Specify detail timeframe for backtesting (`1m`, `5m`,
63- `30m`, `1h`, `1d`).
64- --strategy-list STRATEGY_LIST [STRATEGY_LIST ...]
65- Provide a space-separated list of strategies to
66- backtest. Please note that timeframe needs to be set
67- either in config or via command line. When using this
68- together with `--export trades`, the strategy-name is
69- injected into the filename (so `backtest-data.json`
70- becomes `backtest-data-SampleStrategy.json`
71- --export {none,trades,signals}
72- Export backtest results (default: trades).
73- --export-filename PATH, --backtest-filename PATH
74- Use this filename for backtest results.Requires
75- `--export` to be set as well. Example: `--export-filen
76- ame=user_data/backtest_results/backtest_today.json`
77- --breakdown {day,week,month} [{day,week,month} ...]
78- Show backtesting breakdown per [day, week, month].
79- --cache {none,day,week,month}
80- Load a cached backtest result no older than specified
81- age (default: day).
82- --freqai-backtest-live-models
83- Run backtest with ready models.
84-
85- Common arguments:
86- -v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
87- --logfile FILE, --log-file FILE
88- Log to the file specified. Special values are:
89- 'syslog', 'journald'. See the documentation for more
90- details.
91- -V, --version show program's version number and exit
92- -c PATH, --config PATH
93- Specify configuration file (default:
94- `userdir/config.json` or `config.json` whichever
95- exists). Multiple --config options may be used. Can be
96- set to `-` to read config from stdin.
97- -d PATH, --datadir PATH, --data-dir PATH
98- Path to directory with historical backtesting data.
99- --userdir PATH, --user-data-dir PATH
100- Path to userdata directory.
101-
102- Strategy arguments:
103- -s NAME, --strategy NAME
104- Specify strategy class name which will be used by the
105- bot.
106- --strategy-path PATH Specify additional strategy lookup path.
107- --recursive-strategy-search
108- Recursively search for a strategy in the strategies
109- folder.
110- --freqaimodel NAME Specify a custom freqaimodels.
111- --freqaimodel-path PATH
112- Specify additional lookup path for freqaimodels.
113-
114- ```
10+ --8<-- "commands/backtesting.md"
11511
11612## Test your strategy with Backtesting
11713
0 commit comments