mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
122 lines
6.5 KiB
Markdown
122 lines
6.5 KiB
Markdown
``` output
|
|
usage: freqtrade backtesting [-h] [-v] [--no-color] [--logfile FILE] [-V]
|
|
[-c PATH] [-d PATH] [--userdir PATH] [-s NAME]
|
|
[--strategy-path PATH]
|
|
[--recursive-strategy-search]
|
|
[--freqaimodel NAME] [--freqaimodel-path PATH]
|
|
[-i TIMEFRAME] [--timerange TIMERANGE]
|
|
[--data-format-ohlcv {json,jsongz,feather,parquet}]
|
|
[--max-open-trades INT]
|
|
[--stake-amount STAKE_AMOUNT] [--fee FLOAT]
|
|
[-p PAIRS [PAIRS ...]] [--eps]
|
|
[--enable-protections]
|
|
[--enable-dynamic-pairlist]
|
|
[--dry-run-wallet DRY_RUN_WALLET]
|
|
[--timeframe-detail TIMEFRAME_DETAIL]
|
|
[--strategy-list STRATEGY_LIST [STRATEGY_LIST ...]]
|
|
[--export {none,trades,signals}]
|
|
[--backtest-filename PATH]
|
|
[--backtest-directory PATH]
|
|
[--breakdown {day,week,month,year,weekday} [{day,week,month,year,weekday} ...]]
|
|
[--cache {none,day,week,month}]
|
|
[--freqai-backtest-live-models] [--notes TEXT]
|
|
|
|
options:
|
|
-h, --help show this help message and exit
|
|
-i, --timeframe TIMEFRAME
|
|
Specify timeframe (`1m`, `5m`, `30m`, `1h`, `1d`).
|
|
--timerange TIMERANGE
|
|
Specify what timerange of data to use.
|
|
--data-format-ohlcv {json,jsongz,feather,parquet}
|
|
Storage format for downloaded candle (OHLCV) data.
|
|
(default: `feather`).
|
|
--max-open-trades INT
|
|
Override the value of the `max_open_trades`
|
|
configuration setting.
|
|
--stake-amount STAKE_AMOUNT
|
|
Override the value of the `stake_amount` configuration
|
|
setting.
|
|
--fee FLOAT Specify fee ratio. Will be applied twice (on trade
|
|
entry and exit).
|
|
-p, --pairs PAIRS [PAIRS ...]
|
|
Limit command to these pairs. Pairs are space-
|
|
separated.
|
|
--eps, --enable-position-stacking
|
|
Allow buying the same pair multiple times (position
|
|
stacking).
|
|
--enable-protections, --enableprotections
|
|
Enable protections for backtesting. Will slow
|
|
backtesting down by a considerable amount, but will
|
|
include configured protections
|
|
--enable-dynamic-pairlist
|
|
Enables dynamic pairlist refreshes in backtesting. The
|
|
pairlist will be generated for each new candle if
|
|
you're using a pairlist handler that supports this
|
|
feature, for example, ShuffleFilter.
|
|
--dry-run-wallet, --starting-balance DRY_RUN_WALLET
|
|
Starting balance, used for backtesting / hyperopt and
|
|
dry-runs.
|
|
--timeframe-detail TIMEFRAME_DETAIL
|
|
Specify detail timeframe for backtesting (`1m`, `5m`,
|
|
`30m`, `1h`, `1d`).
|
|
--strategy-list STRATEGY_LIST [STRATEGY_LIST ...]
|
|
Provide a space-separated list of strategies to
|
|
backtest. Please note that timeframe needs to be set
|
|
either in config or via command line. When using this
|
|
together with `--export trades`, the strategy-name is
|
|
injected into the filename (so `backtest-data.json`
|
|
becomes `backtest-data-SampleStrategy.json`
|
|
--export {none,trades,signals}
|
|
Export backtest results (default: trades).
|
|
--backtest-filename, --export-filename PATH
|
|
Use this filename for backtest results.Example:
|
|
`--backtest-
|
|
filename=backtest_results_2020-09-27_16-20-48.json`.
|
|
Assumes either `user_data/backtest_results/` or
|
|
`--export-directory` as base directory.
|
|
--backtest-directory, --export-directory PATH
|
|
Directory to use for backtest results. Example:
|
|
`--export-directory=user_data/backtest_results/`.
|
|
--breakdown {day,week,month,year,weekday} [{day,week,month,year,weekday} ...]
|
|
Show backtesting breakdown per [day, week, month,
|
|
year, weekday].
|
|
--cache {none,day,week,month}
|
|
Load a cached backtest result no older than specified
|
|
age (default: day).
|
|
--freqai-backtest-live-models
|
|
Run backtest with ready models.
|
|
--notes TEXT Add notes to the backtest results.
|
|
|
|
Common arguments:
|
|
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
|
|
--no-color Disable colorization of hyperopt results. May be
|
|
useful if you are redirecting output to a file.
|
|
--logfile, --log-file FILE
|
|
Log to the file specified. Special values are:
|
|
'syslog', 'journald'. See the documentation for more
|
|
details.
|
|
-V, --version show program's version number and exit
|
|
-c, --config PATH Specify configuration file (default:
|
|
`userdir/config.json` or `config.json` whichever
|
|
exists). Multiple --config options may be used. Can be
|
|
set to `-` to read config from stdin.
|
|
-d, --datadir, --data-dir PATH
|
|
Path to the base directory of the exchange with
|
|
historical backtesting data. To see futures data, use
|
|
trading-mode additionally.
|
|
--userdir, --user-data-dir PATH
|
|
Path to userdata directory.
|
|
|
|
Strategy arguments:
|
|
-s, --strategy NAME Specify strategy class name which will be used by the
|
|
bot.
|
|
--strategy-path PATH Specify additional strategy lookup path.
|
|
--recursive-strategy-search
|
|
Recursively search for a strategy in the strategies
|
|
folder.
|
|
--freqaimodel NAME Specify a custom freqaimodels.
|
|
--freqaimodel-path PATH
|
|
Specify additional lookup path for freqaimodels.
|
|
|
|
```
|