2018-12-30 16:08:21 +00:00
# Start the bot
2018-07-29 07:51:45 +00:00
2018-12-30 16:08:21 +00:00
This page explains the different parameters of the bot and how to run it.
2018-01-02 02:17:10 +00:00
2019-08-22 04:57:32 +00:00
!!! Note
2019-07-27 23:35:21 +00:00
If you've used `setup.sh` , don't forget to activate your virtual environment (`source .env/bin/activate`) before running freqtrade commands.
2019-07-24 03:52:42 +00:00
2020-08-31 05:34:43 +00:00
!!! Warning "Up-to-date clock"
The clock on the system running the bot must be accurate, synchronized to a NTP server frequently enough to avoid problems with communication to the exchanges.
2018-01-02 02:17:10 +00:00
## Bot commands
2018-07-29 07:51:45 +00:00
2018-01-02 02:17:10 +00:00
```
2019-09-29 17:18:02 +00:00
usage: freqtrade [-h] [-V]
2020-06-02 08:06:26 +00:00
{trade,create-userdir,new-config,new-hyperopt,new-strategy,download-data,convert-data,convert-trade-data,backtesting,edge,hyperopt,hyperopt-list,hyperopt-show,list-exchanges,list-hyperopts,list-markets,list-pairs,list-strategies,list-timeframes,show-trades,test-pairlist,plot-dataframe,plot-profit}
2019-09-29 17:18:02 +00:00
...
2018-01-02 02:17:10 +00:00
2019-01-03 13:38:38 +00:00
Free, open source crypto trading bot
2018-01-02 02:17:10 +00:00
positional arguments:
2020-06-02 08:06:26 +00:00
{trade,create-userdir,new-config,new-hyperopt,new-strategy,download-data,convert-data,convert-trade-data,backtesting,edge,hyperopt,hyperopt-list,hyperopt-show,list-exchanges,list-hyperopts,list-markets,list-pairs,list-strategies,list-timeframes,show-trades,test-pairlist,plot-dataframe,plot-profit}
2019-09-29 17:18:02 +00:00
trade Trade module.
2020-06-02 08:06:26 +00:00
create-userdir Create user-data directory.
new-config Create new config
new-hyperopt Create new hyperopt
new-strategy Create new strategy
download-data Download backtesting data.
convert-data Convert candle (OHLCV) data from one format to
another.
convert-trade-data Convert trade data from one format to another.
2019-03-04 06:24:41 +00:00
backtesting Backtesting module.
edge Edge module.
hyperopt Hyperopt module.
2020-06-02 08:06:26 +00:00
hyperopt-list List Hyperopt results
hyperopt-show Show details of Hyperopt results
2019-07-28 13:34:49 +00:00
list-exchanges Print available exchanges.
2020-06-02 08:06:26 +00:00
list-hyperopts Print available hyperopt classes.
list-markets Print markets on exchange.
list-pairs Print pairs on exchange.
list-strategies Print available strategies.
list-timeframes Print available timeframes for the exchange.
show-trades Show trades.
test-pairlist Test your pairlist configuration.
2019-09-29 17:18:02 +00:00
plot-dataframe Plot candles with indicators.
plot-profit Generate plot showing profits.
optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
2019-10-20 17:35:38 +00:00
2019-09-29 17:18:02 +00:00
```
### Bot trading commands
```
usage: freqtrade trade [-h] [-v] [--logfile FILE] [-V] [-c PATH] [-d PATH]
[--userdir PATH] [-s NAME] [--strategy-path PATH]
2019-10-15 04:51:03 +00:00
[--db-url PATH] [--sd-notify] [--dry-run]
2018-01-02 02:17:10 +00:00
optional arguments:
-h, --help show this help message and exit
2019-09-29 17:18:02 +00:00
--db-url PATH Override trades database URL, this is useful in custom
deployments (default: `sqlite:///tradesv3.sqlite` for
2019-12-22 09:16:49 +00:00
Live Run mode, `sqlite:///tradesv3.dryrun.sqlite` for
Dry Run).
2019-09-29 17:18:02 +00:00
--sd-notify Notify systemd service manager.
2019-10-15 10:26:06 +00:00
--dry-run Enforce dry-run for trading (removes Exchange secrets
and simulates trades).
2019-09-29 17:18:02 +00:00
Common arguments:
2019-03-04 06:24:41 +00:00
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
2019-12-22 09:16:49 +00:00
--logfile FILE Log to the file specified. Special values are:
'syslog', 'journald'. See the documentation for more
details.
2019-07-18 09:12:34 +00:00
-V, --version show program's version number and exit
2018-01-18 07:06:37 +00:00
-c PATH, --config PATH
2020-02-14 19:04:05 +00:00
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.
2018-05-30 05:24:13 +00:00
-d PATH, --datadir PATH
2019-07-31 04:49:25 +00:00
Path to directory with historical backtesting data.
2019-07-28 13:34:49 +00:00
--userdir PATH, --user-data-dir PATH
2019-07-31 04:49:25 +00:00
Path to userdata directory.
2019-09-29 17:18:02 +00:00
Strategy arguments:
2018-03-25 14:39:31 +00:00
-s NAME, --strategy NAME
2019-09-21 17:54:44 +00:00
Specify strategy class name which will be used by the
bot.
2019-03-04 06:24:41 +00:00
--strategy-path PATH Specify additional strategy lookup path.
2019-12-22 09:16:49 +00:00
2018-01-02 02:17:10 +00:00
```
2019-08-12 21:10:33 +00:00
### How to specify which configuration file be used?
2018-07-29 07:51:45 +00:00
2019-08-12 21:10:33 +00:00
The bot allows you to select which configuration file you want to use by means of
the `-c/--config` command line option:
2018-01-02 02:17:10 +00:00
```bash
2019-09-29 17:21:18 +00:00
freqtrade trade -c path/far/far/away/config.json
2018-01-02 02:17:10 +00:00
```
2019-08-12 21:10:33 +00:00
Per default, the bot loads the `config.json` configuration file from the current
working directory.
2019-03-04 08:05:12 +00:00
### How to use multiple configuration files?
The bot allows you to use multiple configuration files by specifying multiple
2019-08-12 21:10:33 +00:00
`-c/--config` options in the command line. Configuration parameters
2019-08-12 21:14:19 +00:00
defined in the latter configuration files override parameters with the same name
2019-08-12 04:35:47 +00:00
defined in the previous configuration files specified in the command line earlier.
2019-03-04 08:05:12 +00:00
2019-11-27 13:18:40 +00:00
For example, you can make a separate configuration file with your key and secret
2019-03-04 08:05:12 +00:00
for the Exchange you use for trading, specify default configuration file with
2019-11-27 13:18:40 +00:00
empty key and secret values while running in the Dry Mode (which does not actually
2019-03-04 08:05:12 +00:00
require them):
```bash
2019-09-29 17:21:18 +00:00
freqtrade trade -c ./config.json
2019-03-04 08:05:12 +00:00
```
and specify both configuration files when running in the normal Live Trade Mode:
```bash
2019-09-29 17:21:18 +00:00
freqtrade trade -c ./config.json -c path/to/secrets/keys.config.json
2019-03-04 08:05:12 +00:00
```
2019-11-27 13:18:40 +00:00
This could help you hide your private Exchange key and Exchange secret on you local machine
2019-03-04 08:05:12 +00:00
by setting appropriate file permissions for the file which contains actual secrets and, additionally,
prevent unintended disclosure of sensitive private data when you publish examples
of your configuration in the project issues or in the Internet.
See more details on this technique with examples in the documentation page on
2019-04-01 17:25:13 +00:00
[configuration ](configuration.md ).
2019-03-04 08:05:12 +00:00
2019-07-28 13:34:49 +00:00
### Where to store custom data
Freqtrade allows the creation of a user-data directory using `freqtrade create-userdir --userdir someDirectory` .
This directory will look as follows:
2019-07-31 04:49:25 +00:00
```
2019-07-28 13:34:49 +00:00
user_data/
├── backtest_results
├── data
├── hyperopts
2019-10-18 20:29:19 +00:00
├── hyperopt_results
2019-07-28 13:34:49 +00:00
├── plot
└── strategies
2019-07-31 04:49:25 +00:00
```
2019-07-28 13:34:49 +00:00
2019-07-31 04:49:25 +00:00
You can add the entry "user_data_dir" setting to your configuration, to always point your bot to this directory.
2019-07-28 13:34:49 +00:00
Alternatively, pass in `--userdir` to every command.
2019-07-31 17:39:54 +00:00
The bot will fail to start if the directory does not exist, but will create necessary subdirectories.
2019-07-28 13:34:49 +00:00
2019-11-13 10:13:48 +00:00
This directory should contain your custom strategies, custom hyperopts and hyperopt loss functions, backtesting historical data (downloaded using either backtesting command or the download script) and plot outputs.
2019-07-28 13:34:49 +00:00
2019-07-31 04:49:25 +00:00
It is recommended to use version control to keep track of changes to your strategies.
2019-07-28 13:34:49 +00:00
2018-12-30 16:08:21 +00:00
### How to use **--strategy**?
2018-07-29 07:51:45 +00:00
2018-03-25 14:39:31 +00:00
This parameter will allow you to load your custom strategy class.
2020-03-30 06:11:38 +00:00
To test the bot installation, you can use the `SampleStrategy` installed by the `create-userdir` subcommand (usually `user_data/strategy/sample_strategy.py` ).
2018-01-18 07:06:37 +00:00
2020-03-30 05:56:17 +00:00
The bot will search your strategy file within `user_data/strategies` .
2020-03-30 06:11:38 +00:00
To use other directories, please read the next section about `--strategy-path` .
2018-01-18 07:06:37 +00:00
2018-03-25 14:39:31 +00:00
To load a strategy, simply pass the class name (e.g.: `CustomStrategy` ) in this parameter.
2018-01-18 07:06:37 +00:00
2018-11-15 18:54:17 +00:00
**Example:**
2018-03-25 14:39:31 +00:00
In `user_data/strategies` you have a file `my_awesome_strategy.py` which has
2018-03-25 14:42:20 +00:00
a strategy class called `AwesomeStrategy` to load it:
2018-07-29 07:51:45 +00:00
2018-01-18 07:06:37 +00:00
```bash
2019-09-29 17:18:02 +00:00
freqtrade trade --strategy AwesomeStrategy
2018-01-18 07:06:37 +00:00
```
2018-11-15 18:54:17 +00:00
If the bot does not find your strategy file, it will display in an error
2018-03-03 01:18:34 +00:00
message the reason (File not found, or errors in your code).
2018-01-18 07:06:37 +00:00
2019-03-05 11:09:26 +00:00
Learn more about strategy file in
2019-05-19 07:07:43 +00:00
[Strategy Customization ](strategy-customization.md ).
2018-01-18 07:06:37 +00:00
2018-12-30 16:08:21 +00:00
### How to use **--strategy-path**?
2018-07-29 07:51:45 +00:00
2018-03-27 16:46:42 +00:00
This parameter allows you to add an additional strategy lookup path, which gets
2019-07-04 17:56:48 +00:00
checked before the default locations (The passed path must be a directory!):
2019-08-22 04:57:32 +00:00
2018-03-27 16:46:42 +00:00
```bash
2019-09-29 17:18:02 +00:00
freqtrade trade --strategy AwesomeStrategy --strategy-path /some/directory
2018-03-27 16:46:42 +00:00
```
2018-01-18 07:06:37 +00:00
#### How to install a strategy?
2018-07-29 07:51:45 +00:00
2019-07-04 17:56:48 +00:00
This is very simple. Copy paste your strategy file into the directory
2018-03-27 16:46:42 +00:00
`user_data/strategies` or use `--strategy-path` . And voila, the bot is ready to use it.
2018-01-18 07:06:37 +00:00
2018-12-30 16:08:21 +00:00
### How to use **--db-url**?
2018-07-29 07:51:45 +00:00
2018-11-15 18:54:17 +00:00
When you run the bot in Dry-run mode, per default no transactions are
stored in a database. If you want to store your bot actions in a DB
2018-06-07 03:36:39 +00:00
using `--db-url` . This can also be used to specify a custom database
in production mode. Example command:
2018-01-02 02:17:10 +00:00
```bash
2019-09-29 17:21:18 +00:00
freqtrade trade -c config.json --db-url sqlite:///tradesv3.dry_run.sqlite
2018-01-02 02:17:10 +00:00
```
## Backtesting commands
Backtesting also uses the config specified via `-c/--config` .
```
2019-09-29 17:18:02 +00:00
usage: freqtrade backtesting [-h] [-v] [--logfile FILE] [-V] [-c PATH]
[-d PATH] [--userdir PATH] [-s NAME]
2020-06-02 08:03:23 +00:00
[--strategy-path PATH] [-i TIMEFRAME]
2020-11-24 05:51:54 +00:00
[--timerange TIMERANGE]
[--data-format-ohlcv {json,jsongz,hdf5}]
[--max-open-trades INT]
2019-12-21 21:17:51 +00:00
[--stake-amount STAKE_AMOUNT] [--fee FLOAT]
2020-11-24 05:51:54 +00:00
[--eps] [--dmmp] [--enable-protections]
2019-09-29 17:18:02 +00:00
[--strategy-list STRATEGY_LIST [STRATEGY_LIST ...]]
[--export EXPORT] [--export-filename PATH]
2018-01-02 02:17:10 +00:00
optional arguments:
-h, --help show this help message and exit
2020-06-02 08:03:23 +00:00
-i TIMEFRAME, --timeframe TIMEFRAME, --ticker-interval TIMEFRAME
2019-09-29 17:18:02 +00:00
Specify ticker interval (`1m`, `5m` , `30m` , `1h` ,
`1d` ).
2018-12-30 16:08:21 +00:00
--timerange TIMERANGE
2019-03-04 06:24:41 +00:00
Specify what timerange of data to use.
2020-11-24 05:51:54 +00:00
--data-format-ohlcv {json,jsongz,hdf5}
Storage format for downloaded candle (OHLCV) data.
(default: `None` ).
2019-12-21 21:17:51 +00:00
--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.
2019-10-07 05:02:43 +00:00
--fee FLOAT Specify fee ratio. Will be applied twice (on trade
entry and exit).
2018-07-19 11:20:15 +00:00
--eps, --enable-position-stacking
Allow buying the same pair multiple times (position
2019-03-04 06:24:41 +00:00
stacking).
2018-07-19 11:20:15 +00:00
--dmmp, --disable-max-market-positions
2018-07-17 19:05:31 +00:00
Disable applying `max_open_trades` during backtest
(same as setting `max_open_trades` to a very high
2019-03-04 06:24:41 +00:00
number).
2020-11-24 05:51:54 +00:00
--enable-protections, --enableprotections
Enable protections for backtesting.Will slow
backtesting down by a considerable amount, but will
include configured protections
2018-07-29 07:51:45 +00:00
--strategy-list STRATEGY_LIST [STRATEGY_LIST ...]
2019-08-06 04:27:38 +00:00
Provide a space-separated list of strategies to
2019-09-29 17:18:02 +00:00
backtest. Please note that ticker-interval needs to be
2018-07-29 07:51:45 +00:00
set either in config or via command line. When using
2019-09-29 17:18:02 +00:00
this together with `--export trades` , the strategy-
name is injected into the filename (so `backtest-
data.json` becomes `backtest-data-
DefaultStrategy.json`
--export EXPORT Export backtest results, argument are: trades.
Example: `--export=trades`
2018-07-17 19:05:31 +00:00
--export-filename PATH
2019-10-20 17:35:38 +00:00
Save backtest results to the file with this filename.
Requires `--export` to be set as well. Example:
`--export-filename=user_data/backtest_results/backtest
_today.json`
2019-09-29 17:18:02 +00:00
Common arguments:
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
2020-02-14 19:04:05 +00:00
--logfile FILE Log to the file specified. Special values are:
'syslog', 'journald'. See the documentation for more
details.
2019-09-29 17:18:02 +00:00
-V, --version show program's version number and exit
-c PATH, --config PATH
2020-02-14 19:04:05 +00:00
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.
2019-09-29 17:18:02 +00:00
-d PATH, --datadir PATH
Path to directory with historical backtesting data.
--userdir PATH, --user-data-dir PATH
Path to userdata directory.
Strategy arguments:
-s NAME, --strategy NAME
2019-10-20 17:35:38 +00:00
Specify strategy class name which will be used by the
bot.
2019-09-29 17:18:02 +00:00
--strategy-path PATH Specify additional strategy lookup path.
2018-01-02 02:17:10 +00:00
```
2019-08-18 04:55:19 +00:00
### Getting historic data for backtesting
2018-07-29 07:51:45 +00:00
2019-08-18 04:55:19 +00:00
The first time your run Backtesting, you will need to download some historic data first.
This can be accomplished by using `freqtrade download-data` .
2019-09-29 17:18:02 +00:00
Check the corresponding [Data Downloading ](data-download.md ) section for more details
2018-01-02 02:17:10 +00:00
## Hyperopt commands
2018-06-15 07:45:19 +00:00
To optimize your strategy, you can use hyperopt parameter hyperoptimization
2020-02-19 00:31:25 +00:00
to find optimal parameter values for your strategy.
2018-01-02 02:17:10 +00:00
```
2019-09-29 17:18:02 +00:00
usage: freqtrade hyperopt [-h] [-v] [--logfile FILE] [-V] [-c PATH] [-d PATH]
[--userdir PATH] [-s NAME] [--strategy-path PATH]
2020-06-02 08:03:23 +00:00
[-i TIMEFRAME] [--timerange TIMERANGE]
2020-11-24 05:51:54 +00:00
[--data-format-ohlcv {json,jsongz,hdf5}]
2019-12-21 21:17:51 +00:00
[--max-open-trades INT]
[--stake-amount STAKE_AMOUNT] [--fee FLOAT]
2019-10-20 17:35:38 +00:00
[--hyperopt NAME] [--hyperopt-path PATH] [--eps]
2020-11-24 05:51:54 +00:00
[--dmmp] [--enable-protections] [-e INT]
2020-02-14 19:04:05 +00:00
[--spaces {all,buy,sell,roi,stoploss,trailing,default} [{all,buy,sell,roi,stoploss,trailing,default} ...]]
2020-11-24 05:51:54 +00:00
[--print-all] [--no-color] [--print-json] [-j JOBS]
[--random-state INT] [--min-trades INT]
2020-09-27 14:21:55 +00:00
[--hyperopt-loss NAME]
2018-01-02 02:17:10 +00:00
optional arguments:
-h, --help show this help message and exit
2020-06-02 08:03:23 +00:00
-i TIMEFRAME, --timeframe TIMEFRAME, --ticker-interval TIMEFRAME
2019-07-18 18:02:28 +00:00
Specify ticker interval (`1m`, `5m` , `30m` , `1h` ,
`1d` ).
2019-03-04 06:24:41 +00:00
--timerange TIMERANGE
Specify what timerange of data to use.
2020-11-24 05:51:54 +00:00
--data-format-ohlcv {json,jsongz,hdf5}
Storage format for downloaded candle (OHLCV) data.
(default: `None` ).
2019-12-21 21:17:51 +00:00
--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.
2019-10-20 17:35:38 +00:00
--fee FLOAT Specify fee ratio. Will be applied twice (on trade
entry and exit).
--hyperopt NAME Specify hyperopt class name which will be used by the
2019-10-10 01:37:32 +00:00
bot.
2019-11-13 08:38:06 +00:00
--hyperopt-path PATH Specify additional lookup path for Hyperopt and
2019-07-22 16:37:34 +00:00
Hyperopt Loss functions.
2018-07-19 11:20:15 +00:00
--eps, --enable-position-stacking
Allow buying the same pair multiple times (position
2019-03-04 06:24:41 +00:00
stacking).
2018-07-19 11:20:15 +00:00
--dmmp, --disable-max-market-positions
2018-07-17 19:05:31 +00:00
Disable applying `max_open_trades` during backtest
(same as setting `max_open_trades` to a very high
2019-03-04 06:24:41 +00:00
number).
2020-11-24 05:51:54 +00:00
--enable-protections, --enableprotections
Enable protections for backtesting.Will slow
backtesting down by a considerable amount, but will
include configured protections
-e INT, --epochs INT Specify number of epochs (default: 100).
--spaces {all,buy,sell,roi,stoploss,trailing,default} [{all,buy,sell,roi,stoploss,trailing,default} ...]
Specify which parameters to hyperopt. Space-separated
list.
2019-04-22 21:30:09 +00:00
--print-all Print all results, not only the best ones.
2019-08-12 21:23:41 +00:00
--no-color Disable colorization of hyperopt results. May be
useful if you are redirecting output to a file.
2020-06-02 08:03:23 +00:00
--print-json Print output in JSON format.
2019-04-22 21:30:09 +00:00
-j JOBS, --job-workers JOBS
The number of concurrently running jobs for
hyperoptimization (hyperopt worker processes). If -1
(default), all CPUs are used, for -2, all CPUs but one
are used, etc. If 1 is given, no parallel computing
code is used at all.
2019-07-18 18:02:28 +00:00
--random-state INT Set random state to some positive integer for
reproducible hyperopt results.
--min-trades INT Set minimal desired number of trades for evaluations
in the hyperopt optimization path (default: 1).
2019-08-12 04:45:27 +00:00
--hyperopt-loss NAME Specify the class name of the hyperopt loss function
2019-07-18 18:02:28 +00:00
class (IHyperOptLoss). Different functions can
generate completely different results, since the
2019-08-12 04:45:27 +00:00
target for optimization is different. Built-in
2020-11-24 05:51:54 +00:00
Hyperopt-loss-functions are:
ShortTradeDurHyperOptLoss, OnlyProfitHyperOptLoss,
SharpeHyperOptLoss, SharpeHyperOptLossDaily,
SortinoHyperOptLoss, SortinoHyperOptLossDaily
2019-10-10 01:37:32 +00:00
2019-09-29 17:18:02 +00:00
Common arguments:
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
2020-02-14 19:04:05 +00:00
--logfile FILE Log to the file specified. Special values are:
'syslog', 'journald'. See the documentation for more
details.
2019-09-29 17:18:02 +00:00
-V, --version show program's version number and exit
-c PATH, --config PATH
2020-02-14 19:04:05 +00:00
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.
2019-09-29 17:18:02 +00:00
-d PATH, --datadir PATH
Path to directory with historical backtesting data.
--userdir PATH, --user-data-dir PATH
Path to userdata directory.
Strategy arguments:
-s NAME, --strategy NAME
2019-10-20 17:35:38 +00:00
Specify strategy class name which will be used by the
bot.
2019-09-29 17:18:02 +00:00
--strategy-path PATH Specify additional strategy lookup path.
2020-02-14 19:04:05 +00:00
2018-01-02 02:17:10 +00:00
```
2018-11-15 18:54:17 +00:00
## Edge commands
2019-08-12 21:10:33 +00:00
To know your trade expectancy and winrate against historical data, you can use Edge.
2018-11-15 18:54:17 +00:00
```
2019-09-29 17:18:02 +00:00
usage: freqtrade edge [-h] [-v] [--logfile FILE] [-V] [-c PATH] [-d PATH]
[--userdir PATH] [-s NAME] [--strategy-path PATH]
2020-06-02 08:03:23 +00:00
[-i TIMEFRAME] [--timerange TIMERANGE]
2019-12-21 21:17:51 +00:00
[--max-open-trades INT] [--stake-amount STAKE_AMOUNT]
2019-10-20 17:35:38 +00:00
[--fee FLOAT] [--stoplosses STOPLOSS_RANGE]
2018-11-15 18:54:17 +00:00
optional arguments:
-h, --help show this help message and exit
2020-06-02 08:03:23 +00:00
-i TIMEFRAME, --timeframe TIMEFRAME, --ticker-interval TIMEFRAME
2019-09-29 17:18:02 +00:00
Specify ticker interval (`1m`, `5m` , `30m` , `1h` ,
`1d` ).
2018-11-15 18:54:17 +00:00
--timerange TIMERANGE
2019-03-04 06:24:41 +00:00
Specify what timerange of data to use.
2019-12-21 21:17:51 +00:00
--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.
2019-10-07 05:02:43 +00:00
--fee FLOAT Specify fee ratio. Will be applied twice (on trade
entry and exit).
2018-11-15 18:54:17 +00:00
--stoplosses STOPLOSS_RANGE
2019-09-29 17:18:02 +00:00
Defines a range of stoploss values against which edge
will assess the strategy. The format is "min,max,step"
(without any space). Example:
`--stoplosses=-0.01,-0.1,-0.001`
Common arguments:
-v, --verbose Verbose mode (-vv for more, -vvv to get all messages).
2020-02-14 19:04:05 +00:00
--logfile FILE Log to the file specified. Special values are:
'syslog', 'journald'. See the documentation for more
details.
2019-09-29 17:18:02 +00:00
-V, --version show program's version number and exit
-c PATH, --config PATH
2020-02-14 19:04:05 +00:00
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.
2019-09-29 17:18:02 +00:00
-d PATH, --datadir PATH
Path to directory with historical backtesting data.
--userdir PATH, --user-data-dir PATH
Path to userdata directory.
Strategy arguments:
-s NAME, --strategy NAME
2019-10-20 17:35:38 +00:00
Specify strategy class name which will be used by the
bot.
2019-09-29 17:18:02 +00:00
--strategy-path PATH Specify additional strategy lookup path.
2020-02-14 19:04:05 +00:00
2018-11-15 18:54:17 +00:00
```
2018-12-12 19:20:07 +00:00
To understand edge and how to read the results, please read the [edge documentation ](edge.md ).
2018-01-02 02:17:10 +00:00
## Next step
2018-07-29 07:51:45 +00:00
2018-11-15 18:54:17 +00:00
The optimal strategy of the bot will change with time depending of the market trends. The next step is to
2019-05-19 07:07:43 +00:00
[Strategy Customization ](strategy-customization.md ).