consolidation process added

This commit is contained in:
David Brazda
2023-04-16 10:37:16 +02:00
parent 2a9ed56fca
commit f869164ed0
11 changed files with 170 additions and 8 deletions

View File

@ -516,8 +516,10 @@ class Backtester:
res = []
#with lock:
for o in self.open_orders:
if str(o.side) == side and o.symbol == symbol:
res.append(o)
#print(o)
if o.symbol == symbol:
if side is None or o.side == side:
res.append(o)
return res
def display_backtest_result(self, state):