1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-09 22:10:56 +08:00

update the internal bar strategy

This commit is contained in:
bxdd
2021-05-07 00:10:44 +08:00
parent bc3eada02d
commit f7d30960c1
4 changed files with 150 additions and 66 deletions

View File

@@ -83,7 +83,7 @@ if __name__ == "__main__":
"class": "TopkDropoutStrategy",
"module_path": "qlib.contrib.strategy.model_strategy",
"kwargs": {
"step_bar": "day",
"step_bar": "week",
"model": model,
"dataset": dataset,
"topk": 50,
@@ -91,12 +91,28 @@ if __name__ == "__main__":
},
},
"env": {
"class": "SimulatorEnv",
"class": "SplitEnv",
"module_path": "qlib.contrib.backtest.env",
"kwargs": {
"step_bar": "day",
"verbose": True,
"generate_report": True,
"step_bar": "week",
"sub_env": {
"class": "SimulatorEnv",
"module_path": "qlib.contrib.backtest.env",
"kwargs": {
"step_bar": "day",
"verbose": True,
"generate_report": True,
},
},
"sub_strategy": {
"class": "SBBStrategyEMA",
"module_path": "qlib.contrib.strategy.rule_strategy",
"kwargs": {
"step_bar": "day",
"freq": "day",
"instruments": market,
},
},
},
},
"backtest": {