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) config.New(ServiceKey)
impl.NewImpl() impl.NewImpl()
code := "601899.SH" for _, code := range strategy.GetStocks() {
strategy.InitCacheByCode(code) strategy.InitCacheByCode(code)
model := models.NewStratModel("selector", code) model := models.NewStratModel("selector", code)
stratRule := rule.NewRule(model) stratRule := rule.NewRule(model)
stratRule.RunUpDate(strategy.Cache[code].Basic.ListDate) stratRule.RunUpDate(strategy.Cache[code].Basic.ListDate)
stratRule.RunST(strategy.Cache[code].Basic.Name) stratRule.RunST(strategy.Cache[code].Basic.Name)
stratRule.RunIndustry(strategy.Cache[code].Basic.Industry) stratRule.RunIndustry(strategy.Cache[code].Basic.Industry)
stratRule.RunPrice(code) stratRule.RunPrice(code)
stratRule.RunAmount(code) stratRule.RunAmount(code)
stratRule.RunRoe(code) stratRule.RunRoe(code)
model.Save() model.Save()
}
} }
func main2() { func main2() {