Write protection check tests

This commit is contained in:
2023-02-17 17:05:52 +00:00
parent 1dbb3fcf79
commit 67117f0978
7 changed files with 172 additions and 41 deletions

View File

@@ -53,9 +53,7 @@ def within_max_loss(strategy):
def within_trends(strategy, symbol, direction):
print("WITHIN TRENDS", symbol, direction)
if strategy.trend_signals.exists():
print("TREND SIGNALS EXIST")
if strategy.trends is None:
log.debug("Refusing to trade with no trend signals received")
sendmsg(