Exclude Edge from startup-stoploss calc

Edge would recalculate / reevaluate stoploss values on startup, so these
values are not reliable
This commit is contained in:
Matthias
2019-05-20 19:35:48 +02:00
parent 53af8f331d
commit a39cdd3b2b
2 changed files with 21 additions and 3 deletions

View File

@@ -96,8 +96,9 @@ class FreqtradeBot(object):
: return: None
"""
self.rpc.startup_messages(self.config, self.pairlists)
# Adjust stoploss if it was changed
Trade.stoploss_reinitialization(self.strategy.stoploss)
if not self.edge:
# Adjust stoploss if it was changed
Trade.stoploss_reinitialization(self.strategy.stoploss)
def process(self) -> bool:
"""