fix roi-reached when list is unsorted
This commit is contained in:
parent
b55994cb71
commit
1d518885a9
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user