mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-07 13:00:58 +08:00
fix bug in Exchange
This commit is contained in:
@@ -19,7 +19,7 @@ class NestedDecisonExecutionWorkflow:
|
||||
benchmark = "SH000300"
|
||||
data_handler_config = {
|
||||
"start_time": "2008-01-01",
|
||||
"end_time": "2021-05-28",
|
||||
"end_time": "2020-12-31",
|
||||
"fit_start_time": "2008-01-01",
|
||||
"fit_end_time": "2014-12-31",
|
||||
"instruments": market,
|
||||
@@ -53,7 +53,7 @@ class NestedDecisonExecutionWorkflow:
|
||||
"segments": {
|
||||
"train": ("2007-01-01", "2014-12-31"),
|
||||
"valid": ("2015-01-01", "2016-12-31"),
|
||||
"test": ("2020-09-01", "2021-05-28"),
|
||||
"test": ("2020-01-01", "2020-12-31"),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -78,12 +78,8 @@ class NestedDecisonExecutionWorkflow:
|
||||
},
|
||||
},
|
||||
"inner_strategy": {
|
||||
"class": "SBBStrategyEMA",
|
||||
"class": "TWAPStrategy",
|
||||
"module_path": "qlib.contrib.strategy.rule_strategy",
|
||||
"kwargs": {
|
||||
"freq": "day",
|
||||
"instruments": market,
|
||||
},
|
||||
},
|
||||
"track_data": True,
|
||||
"generate_report": True,
|
||||
@@ -93,8 +89,8 @@ class NestedDecisonExecutionWorkflow:
|
||||
},
|
||||
},
|
||||
"backtest": {
|
||||
"start_time": "2020-09-20",
|
||||
"end_time": "2021-05-28",
|
||||
"start_time": "2020-01-01",
|
||||
"end_time": "2020-12-31",
|
||||
"account": 100000000,
|
||||
"benchmark": benchmark,
|
||||
"exchange_kwargs": {
|
||||
|
||||
Reference in New Issue
Block a user