Skip to content

Commit

Permalink
Assign the self.instruments in SBBStrategyEMA.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiahungTai committed Oct 21, 2023
1 parent fb80e31 commit d453d90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qlib/contrib/strategy/rule_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d453d90

Please sign in to comment.