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