mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
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
|
: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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user