move experimental eval below stop_loss_reached to improve performance
This commit is contained in:
parent
2be7b3d9eb
commit
fc219b4e94
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user