1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-05 12:00:58 +08:00

Merge branch 'nested_decision_exe' of https://github.com/microsoft/qlib into rl-dummy

This commit is contained in:
v-mingzhehan
2021-06-22 07:07:07 +00:00
4 changed files with 28 additions and 13 deletions

View File

@@ -20,7 +20,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,
@@ -54,7 +54,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"),
},
},
},
@@ -79,12 +79,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,
@@ -94,8 +90,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": {