From e2bcaa4d7586228cb95a6358f73ebd0b8c254e78 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 12 Mar 2019 21:46:35 +0100 Subject: [PATCH] Set Requested_close_rate to stoploss when stoploss_on_exchange was hit --- freqtrade/persistence.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/persistence.py b/freqtrade/persistence.py index f603b139f..10aff72ec 100644 --- a/freqtrade/persistence.py +++ b/freqtrade/persistence.py @@ -266,6 +266,7 @@ class Trade(_DECL_BASE): logger.info('%s_SELL has been fulfilled for %s.', order_type.upper(), self) elif order_type == 'stop_loss_limit': self.stoploss_order_id = None + self.close_rate_requested = self.stop_loss logger.info('STOP_LOSS_LIMIT is hit for %s.', self) self.close(order['average']) else: