From 0d709847ee5babd35439e812a46c8aa093714288 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste LE STANG Date: Wed, 17 Jan 2018 11:31:26 +0100 Subject: [PATCH] Fixing the doc and and the default value of sell_profit_only to False --- docs/configuration.md | 1 + freqtrade/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 384775765..7aade1e59 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -29,6 +29,7 @@ The table below will list all configuration parameters. | `exchange.pair_whitelist` | [] | No | List of currency to use by the bot. Can be overrided with `--dynamic-whitelist` param. | `exchange.pair_blacklist` | [] | No | List of currency the bot must avoid. Useful when using `--dynamic-whitelist` param. | `experimental.use_sell_signal` | false | No | Use your sell strategy in addition of the `minimal_roi`. +| `experimental.sell_profit_only` | false | No | waits until you have made a positive profit before taking a sell decision. | `telegram.enabled` | true | Yes | Enable or not the usage of Telegram. | `telegram.token` | token | No | Your Telegram bot token. Only required is `enable` is `true`. | `telegram.chat_id` | chat_id | No | Your personal Telegram account id. Only required is `enable` is `true`. diff --git a/freqtrade/main.py b/freqtrade/main.py index 1640c7836..e692b7c6a 100755 --- a/freqtrade/main.py +++ b/freqtrade/main.py @@ -259,7 +259,7 @@ def handle_trade(trade: Trade) -> bool: return True # Experimental: Check if the trade is profitable before selling it (avoid selling at loss) - if _CONF.get('experimental', {}).get('sell_profit_only'): + if _CONF.get('experimental', {}).get('sell_profit_only', False): logger.debug('Checking if trade is profitable ...') if not buy and trade.calc_profit(rate=current_rate) <= 0: return False