|
|
@ -376,7 +376,9 @@ def execute_strategy(callback, strategy, func):
|
|
|
|
# Check if we are trading against the trend
|
|
|
|
# Check if we are trading against the trend
|
|
|
|
within_trends = checks.within_trends(strategy, symbol, direction)
|
|
|
|
within_trends = checks.within_trends(strategy, symbol, direction)
|
|
|
|
if not within_trends:
|
|
|
|
if not within_trends:
|
|
|
|
|
|
|
|
print("NOT WITHIN TRENDS")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
print("IS WITHIN TRENDS")
|
|
|
|
|
|
|
|
|
|
|
|
type = strategy.order_settings.order_type
|
|
|
|
type = strategy.order_settings.order_type
|
|
|
|
|
|
|
|
|
|
|
|