Correctly check if no trend signals are defined

master
Mark Veidemanis 1 year ago
parent 8840b04059
commit 0aef440229
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -407,7 +407,7 @@ def execute_strategy(callback, strategy, func):
return
# Check if we are trading against the trend
if strategy.trend_signals is not None:
if strategy.trend_signals.exists():
if strategy.trends is None:
log.debug("Refusing to trade with no trend signals received")
return

Loading…
Cancel
Save