Correctly check if no trend signals are defined
This commit is contained in:
parent
8840b04059
commit
0aef440229
|
@ -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…
Reference in New Issue