Correctly check if no trend signals are defined

This commit is contained in:
2022-12-08 07:20:46 +00:00
parent 8840b04059
commit 0aef440229

View File

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