dev
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user