[Fix] close #2187
This commit is contained in:
parent
1351496280
commit
6015edcb73
File diff suppressed because one or more lines are too long
@ -94,6 +94,8 @@ class StatisticalArbitrageStrategy(SpreadStrategyTemplate):
|
||||
"""
|
||||
Callback when spread bar data is generated.
|
||||
"""
|
||||
self.stop_all_algos()
|
||||
|
||||
self.am.update_bar(bar)
|
||||
if not self.am.inited:
|
||||
return
|
||||
|
@ -547,7 +547,7 @@ class SpreadStrategyTemplate:
|
||||
|
||||
def stop_all_algos(self):
|
||||
""""""
|
||||
for algoid in self.algoids:
|
||||
for algoid in list(self.algoids):
|
||||
self.stop_algo(algoid)
|
||||
|
||||
def buy(self, vt_symbol: str, price: float, volume: float, lock: bool = False) -> List[str]:
|
||||
|
Loading…
Reference in New Issue
Block a user