1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-15 16:56:54 +08:00
This commit is contained in:
wangwenxi.handsome
2021-07-15 13:34:39 +00:00
parent 94b456714d
commit aae4b02ab8

View File

@@ -294,7 +294,7 @@ class BaseTradeDecision:
self.total_step = None # upper strategy has no knowledge about the sub executor before `_init_sub_trading` self.total_step = None # upper strategy has no knowledge about the sub executor before `_init_sub_trading`
if isinstance(trade_range, Tuple): if isinstance(trade_range, Tuple):
# for Tuple[int, int] # for Tuple[int, int]
trade_range = IdxTradeRange(**trade_range) trade_range = IdxTradeRange(*trade_range)
self.trade_range: TradeRange = trade_range self.trade_range: TradeRange = trade_range
def get_decision(self) -> List[object]: def get_decision(self) -> List[object]: