mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 16:56:54 +08:00
*tuple
This commit is contained in:
@@ -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]:
|
||||||
|
|||||||
Reference in New Issue
Block a user