Introduce max_drawdown protection

This commit is contained in:
Matthias
2020-11-30 08:05:48 +01:00
parent 9d6f3a89ef
commit 089c463cfb
5 changed files with 92 additions and 7 deletions

View File

@@ -15,9 +15,7 @@ logger = logging.getLogger(__name__)
class StoplossGuard(IProtection):
# Can globally stop the bot
has_global_stop: bool = True
# Can stop trading for one pair
has_local_stop: bool = True
def __init__(self, config: Dict[str, Any], protection_config: Dict[str, Any]) -> None: