Fixing the doc and and the default value of sell_profit_only to False
This commit is contained in:
parent
5723039637
commit
0d709847ee
@ -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_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.
|
| `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.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.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.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`.
|
| `telegram.chat_id` | chat_id | No | Your personal Telegram account id. Only required is `enable` is `true`.
|
||||||
|
@ -259,7 +259,7 @@ def handle_trade(trade: Trade) -> bool:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# Experimental: Check if the trade is profitable before selling it (avoid selling at loss)
|
# 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 ...')
|
logger.debug('Checking if trade is profitable ...')
|
||||||
if not buy and trade.calc_profit(rate=current_rate) <= 0:
|
if not buy and trade.calc_profit(rate=current_rate) <= 0:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user