move experimental eval below stop_loss_reached to improve performance

This commit is contained in:
xmatthias 2018-06-23 13:10:08 +02:00
parent 2be7b3d9eb
commit fc219b4e94

View File

@ -173,10 +173,11 @@ class Analyze(object):
:return: True if trade should be sold, False otherwise :return: True if trade should be sold, False otherwise
""" """
current_profit = trade.calc_profit_percent(rate) current_profit = trade.calc_profit_percent(rate)
experimental = self.config.get('experimental', {})
if self.stop_loss_reached(current_profit=current_profit): if self.stop_loss_reached(current_profit=current_profit):
return True return True
experimental = self.config.get('experimental', {})
if buy and experimental.get('ignore_roi_if_buy_signal', False): if buy and experimental.get('ignore_roi_if_buy_signal', False):
logger.debug('Buy signal still active - not selling.') logger.debug('Buy signal still active - not selling.')
return False return False