fix roi-reached when list is unsorted

This commit is contained in:
Matthias 2019-01-01 16:45:52 +01:00
parent b55994cb71
commit 1d518885a9

View File

@ -321,7 +321,7 @@ class IStrategy(ABC):
time_diff = (current_time.timestamp() - trade.open_date.timestamp()) / 60
for duration, threshold in self.minimal_roi.items():
if time_diff <= duration:
return False
continue
if current_profit > threshold:
return True