diff --git a/qlib/contrib/strategy/rule_strategy.py b/qlib/contrib/strategy/rule_strategy.py index f2b9197393..72a276c6c2 100644 --- a/qlib/contrib/strategy/rule_strategy.py +++ b/qlib/contrib/strategy/rule_strategy.py @@ -328,6 +328,8 @@ def __init__( self.instruments = "all" if isinstance(instruments, str): self.instruments = D.instruments(instruments) + if isinstance(instruments, List): + self.instruments = instruments self.freq = freq super(SBBStrategyEMA, self).__init__( outer_trade_decision, level_infra, common_infra, trade_exchange=trade_exchange, **kwargs