mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 23:36:54 +08:00
RL backtest with simulator (#1299)
* RL backtest with simulator * Minor modification in init_qlib * Cherry pick PR 1302 * Resolve PR comments * Fix missing data processing * Minor bugfix * Add TODOs and docs * Add a comment
This commit is contained in:
@@ -576,3 +576,18 @@ class TradeDecisionWO(BaseTradeDecision[Order]):
|
||||
f"trade_range: {self.trade_range}; "
|
||||
f"order_list[{len(self.order_list)}]"
|
||||
)
|
||||
|
||||
|
||||
class TradeDecisionWithDetails(TradeDecisionWO):
|
||||
"""Decision with detail information. Detail information is used to generate execution reports.
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
order_list: List[Order],
|
||||
strategy: BaseStrategy,
|
||||
trade_range: Optional[Tuple[int, int]] = None,
|
||||
details: Optional[Any] = None,
|
||||
) -> None:
|
||||
super().__init__(order_list, strategy, trade_range)
|
||||
|
||||
self.details = details
|
||||
|
||||
Reference in New Issue
Block a user