Write protection check tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user