This commit is contained in:
yanweidong
2026-02-01 03:44:51 +08:00
parent 32cbe88964
commit ec0fb57d1f

View File

@@ -22,18 +22,19 @@ func main() {
config.New(ServiceKey)
impl.NewImpl()
code := "601899.SH"
strategy.InitCacheByCode(code)
model := models.NewStratModel("selector", code)
stratRule := rule.NewRule(model)
stratRule.RunUpDate(strategy.Cache[code].Basic.ListDate)
stratRule.RunST(strategy.Cache[code].Basic.Name)
stratRule.RunIndustry(strategy.Cache[code].Basic.Industry)
stratRule.RunPrice(code)
stratRule.RunAmount(code)
stratRule.RunRoe(code)
for _, code := range strategy.GetStocks() {
strategy.InitCacheByCode(code)
model := models.NewStratModel("selector", code)
stratRule := rule.NewRule(model)
stratRule.RunUpDate(strategy.Cache[code].Basic.ListDate)
stratRule.RunST(strategy.Cache[code].Basic.Name)
stratRule.RunIndustry(strategy.Cache[code].Basic.Industry)
stratRule.RunPrice(code)
stratRule.RunAmount(code)
stratRule.RunRoe(code)
model.Save()
model.Save()
}
}
func main2() {