This commit is contained in:
yanweidong
2026-02-03 14:40:20 +08:00
parent 827ec7bf5a
commit 57e303a012
5 changed files with 76 additions and 293 deletions

View File

@@ -22,18 +22,6 @@ func main() {
config.New(ServiceKey)
impl.NewImpl()
code := "601899.SH"
model := models.NewStratModel("selector", code)
stratRule := rule.NewRule(model)
stratRule.RunAi(code)
}
func main2() {
log.Println("Hello Cli!")
config.New(ServiceKey)
impl.NewImpl()
for _, code := range strategy.GetStocks() {
strategy.InitCacheByCode(code)
model := models.NewStratModel("selector", code)
@@ -46,12 +34,25 @@ func main2() {
stratRule.RunAmount(code)
stratRule.RunRoe(code)
stratRule.RunRsi(code)
stratRule.RunAi(code)
}
model.Save()
}
}
func ai() {
log.Println("Hello Cli!")
config.New(ServiceKey)
impl.NewImpl()
code := "601899.SH"
model := models.NewStratModel("selector", code)
stratRule := rule.NewRule(model)
stratRule.RunAi(code)
}
func main3() {
log.Println("Hello Cli!")
config.New(ServiceKey)