|
|
@ -377,8 +377,10 @@ def execute_strategy(callback, strategy, func):
|
|
|
|
within_trends = checks.within_trends(strategy, symbol, direction)
|
|
|
|
within_trends = checks.within_trends(strategy, symbol, direction)
|
|
|
|
if not within_trends:
|
|
|
|
if not within_trends:
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
print("Checked trends")
|
|
|
|
|
|
|
|
|
|
|
|
type = strategy.order_settings.order_type
|
|
|
|
type = strategy.order_settings.order_type
|
|
|
|
|
|
|
|
print("Set order type")
|
|
|
|
|
|
|
|
|
|
|
|
# Get the account's balance in the native account currency
|
|
|
|
# Get the account's balance in the native account currency
|
|
|
|
cash_balance = strategy.account.client.get_balance()
|
|
|
|
cash_balance = strategy.account.client.get_balance()
|
|
|
|