|
|
|
@ -245,8 +245,9 @@ class ActiveManagement(object):
|
|
|
|
|
def check_max_open_trades_per_symbol(self, trades):
|
|
|
|
|
if self.strategy.risk_model is not None:
|
|
|
|
|
max_open_pass = risk.check_max_open_trades_per_symbol(
|
|
|
|
|
self.strategy.risk_model, trades
|
|
|
|
|
self.strategy.risk_model, trades, return_symbols=True
|
|
|
|
|
)
|
|
|
|
|
print("max_open_pass", max_open_pass)
|
|
|
|
|
max_open_pass = list(max_open_pass)
|
|
|
|
|
print("MAX OPEN PASS", max_open_pass)
|
|
|
|
|
if max_open_pass:
|
|
|
|
@ -271,7 +272,7 @@ class ActiveManagement(object):
|
|
|
|
|
print("TRADES OVER LIMNIT", trades_over_limit)
|
|
|
|
|
|
|
|
|
|
def check_max_loss(self):
|
|
|
|
|
pass
|
|
|
|
|
check_passed = risk.check_max_loss(self.strategy.risk_model, self.strategy.account.initial_balance, self.get_balance())
|
|
|
|
|
|
|
|
|
|
def check_max_risk(self, trades):
|
|
|
|
|
pass
|
|
|
|
|