We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b4fd5 commit a6ab00fCopy full SHA for a6ab00f
qlib/contrib/strategy/signal_strategy.py
@@ -619,12 +619,10 @@ def get_last_n(li, n):
619
def filter_stock(li):
620
return li
621
622
- import copy as _copy # local alias for deepcopy
623
-
624
# Use instance configuration; keep behavior unchanged (no external kwargs expected here)
625
- risk_aversion = _copy.deepcopy(getattr(self, "risk_aversion", None))
+ risk_aversion = copy.deepcopy(getattr(self, "risk_aversion", None))
626
627
- current_temp: Position = _copy.deepcopy(self.trade_position)
+ current_temp: Position = copy.deepcopy(self.trade_position)
628
629
# Build current long/short lists by sign of amount
630
current_stock_list = current_temp.get_stock_list()
0 commit comments