Implement global stop (First try)

This commit is contained in:
Matthias
2020-10-14 20:03:56 +02:00
parent 246b4a57a4
commit f39a534fc0
6 changed files with 23 additions and 9 deletions

View File

@@ -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".

View File

@@ -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".