Changesets · Branches · Tags · Compare
| Changeset | ef9df3a5d72cb96a1fb7577b4e9a6fa10c49b707379a7fad2d80c530437803ed |
|---|---|
| Author | Matthias <xmatthias@outlook.com> · 2021-04-17 19:14 +02:00 |
| Committer | GitHub <noreply@github.com> · 2021-04-17 19:14 +02:00 |
| Parents | 9f4457533170, 6f3905d1b2a4 |
9 files changed
modified docs/backtesting.md +5 −1
| @@ -15,7 +15,8 @@ | ||
| 15 | 15 | [--data-format-ohlcv {json,jsongz,hdf5}] |
| 16 | 16 | [--max-open-trades INT] |
| 17 | 17 | [--stake-amount STAKE_AMOUNT] [--fee FLOAT] |
| 18 | - [--eps] [--dmmp] [--enable-protections] | |
| 18 | + [-p PAIRS [PAIRS ...]] [--eps] [--dmmp] | |
| 19 | + [--enable-protections] | |
| 19 | 20 | [--dry-run-wallet DRY_RUN_WALLET] |
| 20 | 21 | [--strategy-list STRATEGY_LIST [STRATEGY_LIST ...]] |
| 21 | 22 | [--export EXPORT] [--export-filename PATH] |
| @@ -37,6 +38,9 @@ | ||
| 37 | 38 | setting. |
| 38 | 39 | --fee FLOAT Specify fee ratio. Will be applied twice (on trade |
| 39 | 40 | entry and exit). |
| 41 | + -p PAIRS [PAIRS ...], --pairs PAIRS [PAIRS ...] | |
| 42 | + Limit command to these pairs. Pairs are space- | |
| 43 | + separated. | |
| 40 | 44 | --eps, --enable-position-stacking |
| 41 | 45 | Allow buying the same pair multiple times (position |
| 42 | 46 | stacking). |
modified docs/data-download.md +3 −3
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | optional arguments: |
| 31 | 31 | -h, --help show this help message and exit |
| 32 | 32 | -p PAIRS [PAIRS ...], --pairs PAIRS [PAIRS ...] |
| 33 | - Show profits for only these pairs. Pairs are space- | |
| 33 | + Limit command to these pairs. Pairs are space- | |
| 34 | 34 | separated. |
| 35 | 35 | --pairs-file FILE File containing a list of pairs to download. |
| 36 | 36 | --days INT Download data for given number of days. |
| @@ -48,10 +48,10 @@ | ||
| 48 | 48 | exchange/pairs/timeframes. |
| 49 | 49 | --data-format-ohlcv {json,jsongz,hdf5} |
| 50 | 50 | Storage format for downloaded candle (OHLCV) data. |
| 51 | - (default: `json`). | |
| 51 | + (default: `None`). | |
| 52 | 52 | --data-format-trades {json,jsongz,hdf5} |
| 53 | 53 | Storage format for downloaded trades data. (default: |
| 54 | - `jsongz`). | |
| 54 | + `None`). | |
| 55 | 55 | |
| 56 | 56 | Common arguments: |
| 57 | 57 | -v, --verbose Verbose mode (-vv for more, -vvv to get all messages). |
modified docs/edge.md +9 −1
| @@ -215,8 +215,10 @@ | ||
| 215 | 215 | usage: freqtrade edge [-h] [-v] [--logfile FILE] [-V] [-c PATH] [-d PATH] |
| 216 | 216 | [--userdir PATH] [-s NAME] [--strategy-path PATH] |
| 217 | 217 | [-i TIMEFRAME] [--timerange TIMERANGE] |
| 218 | + [--data-format-ohlcv {json,jsongz,hdf5}] | |
| 218 | 219 | [--max-open-trades INT] [--stake-amount STAKE_AMOUNT] |
| 219 | - [--fee FLOAT] [--stoplosses STOPLOSS_RANGE] | |
| 220 | + [--fee FLOAT] [-p PAIRS [PAIRS ...]] | |
| 221 | + [--stoplosses STOPLOSS_RANGE] | |
| 220 | 222 | |
| 221 | 223 | optional arguments: |
| 222 | 224 | -h, --help show this help message and exit |
| @@ -224,6 +226,9 @@ | ||
| 224 | 226 | Specify timeframe (`1m`, `5m`, `30m`, `1h`, `1d`). |
| 225 | 227 | --timerange TIMERANGE |
| 226 | 228 | Specify what timerange of data to use. |
| 229 | + --data-format-ohlcv {json,jsongz,hdf5} | |
| 230 | + Storage format for downloaded candle (OHLCV) data. | |
| 231 | + (default: `None`). | |
| 227 | 232 | --max-open-trades INT |
| 228 | 233 | Override the value of the `max_open_trades` |
| 229 | 234 | configuration setting. |
| @@ -232,6 +237,9 @@ | ||
| 232 | 237 | setting. |
| 233 | 238 | --fee FLOAT Specify fee ratio. Will be applied twice (on trade |
| 234 | 239 | entry and exit). |
| 240 | + -p PAIRS [PAIRS ...], --pairs PAIRS [PAIRS ...] | |
| 241 | + Limit command to these pairs. Pairs are space- | |
| 242 | + separated. | |
| 235 | 243 | --stoplosses STOPLOSS_RANGE |
| 236 | 244 | Defines a range of stoploss values against which edge |
| 237 | 245 | will assess the strategy. The format is "min,max,step" |
modified docs/hyperopt.md +8 −3
| @@ -44,8 +44,9 @@ | ||
| 44 | 44 | [--data-format-ohlcv {json,jsongz,hdf5}] |
| 45 | 45 | [--max-open-trades INT] |
| 46 | 46 | [--stake-amount STAKE_AMOUNT] [--fee FLOAT] |
| 47 | - [--hyperopt NAME] [--hyperopt-path PATH] [--eps] | |
| 48 | - [--dmmp] [--enable-protections] | |
| 47 | + [-p PAIRS [PAIRS ...]] [--hyperopt NAME] | |
| 48 | + [--hyperopt-path PATH] [--eps] [--dmmp] | |
| 49 | + [--enable-protections] | |
| 49 | 50 | [--dry-run-wallet DRY_RUN_WALLET] [-e INT] |
| 50 | 51 | [--spaces {all,buy,sell,roi,stoploss,trailing,default} [{all,buy,sell,roi,stoploss,trailing,default} ...]] |
| 51 | 52 | [--print-all] [--no-color] [--print-json] [-j JOBS] |
| @@ -69,6 +70,9 @@ | ||
| 69 | 70 | setting. |
| 70 | 71 | --fee FLOAT Specify fee ratio. Will be applied twice (on trade |
| 71 | 72 | entry and exit). |
| 73 | + -p PAIRS [PAIRS ...], --pairs PAIRS [PAIRS ...] | |
| 74 | + Limit command to these pairs. Pairs are space- | |
| 75 | + separated. | |
| 72 | 76 | --hyperopt NAME Specify hyperopt class name which will be used by the |
| 73 | 77 | bot. |
| 74 | 78 | --hyperopt-path PATH Specify additional lookup path for Hyperopt and |
| @@ -105,7 +109,8 @@ | ||
| 105 | 109 | reproducible hyperopt results. |
| 106 | 110 | --min-trades INT Set minimal desired number of trades for evaluations |
| 107 | 111 | in the hyperopt optimization path (default: 1). |
| 108 | - --hyperopt-loss NAME Specify the class name of the hyperopt loss function | |
| 112 | + --hyperopt-loss NAME, --hyperoptloss NAME | |
| 113 | + Specify the class name of the hyperopt loss function | |
| 109 | 114 | class (IHyperOptLoss). Different functions can |
| 110 | 115 | generate completely different results, since the |
| 111 | 116 | target for optimization is different. Built-in |
modified docs/plotting.md +4 −2
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | optional arguments: |
| 38 | 38 | -h, --help show this help message and exit |
| 39 | 39 | -p PAIRS [PAIRS ...], --pairs PAIRS [PAIRS ...] |
| 40 | - Show profits for only these pairs. Pairs are space- | |
| 40 | + Limit command to these pairs. Pairs are space- | |
| 41 | 41 | separated. |
| 42 | 42 | --indicators1 INDICATORS1 [INDICATORS1 ...] |
| 43 | 43 | Set indicators from your strategy you want in the |
| @@ -90,6 +90,7 @@ | ||
| 90 | 90 | Specify strategy class name which will be used by the |
| 91 | 91 | bot. |
| 92 | 92 | --strategy-path PATH Specify additional strategy lookup path. |
| 93 | + | |
| 93 | 94 | ``` |
| 94 | 95 | |
| 95 | 96 | Example: |
| @@ -244,7 +245,7 @@ | ||
| 244 | 245 | optional arguments: |
| 245 | 246 | -h, --help show this help message and exit |
| 246 | 247 | -p PAIRS [PAIRS ...], --pairs PAIRS [PAIRS ...] |
| 247 | - Show profits for only these pairs. Pairs are space- | |
| 248 | + Limit command to these pairs. Pairs are space- | |
| 248 | 249 | separated. |
| 249 | 250 | --timerange TIMERANGE |
| 250 | 251 | Specify what timerange of data to use. |
| @@ -286,6 +287,7 @@ | ||
| 286 | 287 | Specify strategy class name which will be used by the |
| 287 | 288 | bot. |
| 288 | 289 | --strategy-path PATH Specify additional strategy lookup path. |
| 290 | + | |
| 289 | 291 | ``` |
| 290 | 292 | |
| 291 | 293 | The `-p/--pairs` argument, can be used to limit the pairs that are considered for this calculation. |
modified freqtrade/commands/arguments.py +1 −1
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | ARGS_TRADE = ["db_url", "sd_notify", "dry_run", "dry_run_wallet", "fee"] |
| 18 | 18 | |
| 19 | 19 | ARGS_COMMON_OPTIMIZE = ["timeframe", "timerange", "dataformat_ohlcv", |
| 20 | - "max_open_trades", "stake_amount", "fee"] | |
| 20 | + "max_open_trades", "stake_amount", "fee", "pairs"] | |
| 21 | 21 | |
| 22 | 22 | ARGS_BACKTEST = ARGS_COMMON_OPTIMIZE + ["position_stacking", "use_max_market_positions", |
| 23 | 23 | "enable_protections", "dry_run_wallet", |
modified freqtrade/commands/cli_options.py +1 −1
| @@ -330,7 +330,7 @@ | ||
| 330 | 330 | # Script options |
| 331 | 331 | "pairs": Arg( |
| 332 | 332 | '-p', '--pairs', |
| 333 | - help='Show profits for only these pairs. Pairs are space-separated.', | |
| 333 | + help='Limit command to these pairs. Pairs are space-separated.', | |
| 334 | 334 | nargs='+', |
| 335 | 335 | ), |
| 336 | 336 | # Download data |
modified freqtrade/configuration/configuration.py +1 −0
| @@ -445,6 +445,7 @@ | ||
| 445 | 445 | """ |
| 446 | 446 | |
| 447 | 447 | if "pairs" in config: |
| 448 | + config['exchange']['pair_whitelist'] = config['pairs'] | |
| 448 | 449 | return |
| 449 | 450 | |
| 450 | 451 | if "pairs_file" in self.args and self.args["pairs_file"]: |
modified tests/test_configuration.py +1 −0
| @@ -1002,6 +1002,7 @@ | ||
| 1002 | 1002 | config = configuration.get_config() |
| 1003 | 1003 | |
| 1004 | 1004 | assert config['pairs'] == ['ETH/BTC', 'XRP/BTC'] |
| 1005 | + assert config['exchange']['pair_whitelist'] == ['ETH/BTC', 'XRP/BTC'] | |
| 1005 | 1006 | assert config['exchange']['name'] == 'binance' |
| 1006 | 1007 | |
| 1007 | 1008 |