From aa03a864f70b92320080abd444225d0a4fc734ba Mon Sep 17 00:00:00 2001 From: misagh Date: Wed, 16 Jan 2019 15:00:35 +0100 Subject: [PATCH] comments added for TSL on exchange function --- freqtrade/freqtradebot.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 544e4a997..682a850b8 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -657,6 +657,14 @@ class FreqtradeBot(object): return result def handle_trailing_stoploss_on_exchange(self, trade: Trade, order): + """ + Check to see if stoploss on exchange should be updated + in case of trailing stoploss on exchange + :param Trade: Corresponding Trade + :param order: Current on exchange stoploss order + :return: None + """ + if trade.stop_loss > order['info']['stopPrice']: # we check if the update is neccesary update_beat = self.strategy.order_types['stoploss_on_exchange_interval']