Correctly check if no trend signals are defined

This commit is contained in:
Mark Veidemanis 2022-12-08 07:20:46 +00:00
parent 8840b04059
commit 0aef440229
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

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