Implement global stop (First try)
This commit is contained in:
@@ -26,7 +26,7 @@ class IProtection(ABC):
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def stop_trade_enters_global(self, date_now: datetime) -> bool:
|
||||
def global_stop(self, date_now: datetime) -> bool:
|
||||
"""
|
||||
Stops trading (position entering) for all pairs
|
||||
This must evaluate to true for the whole period of the "cooldown period".
|
||||
|
@@ -47,7 +47,7 @@ class StoplossGuard(IProtection):
|
||||
|
||||
return False
|
||||
|
||||
def stop_trade_enters_global(self, date_now: datetime) -> bool:
|
||||
def global_stop(self, date_now: datetime) -> bool:
|
||||
"""
|
||||
Stops trading (position entering) for all pairs
|
||||
This must evaluate to true for the whole period of the "cooldown period".
|
||||
|
Reference in New Issue
Block a user