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
"""
current_profit = trade.calc_profit_percent(rate)
experimental = self.config.get('experimental', {})
if self.stop_loss_reached(current_profit=current_profit):
return True
experimental = self.config.get('experimental', {})
if buy and experimental.get('ignore_roi_if_buy_signal', False):
logger.debug('Buy signal still active - not selling.')
return False