Files
gostock/internal/logic/strategy/rule/st.go

18 lines
264 B
Go
Raw Normal View History

2026-01-27 02:09:44 +08:00
package rule
import (
2026-01-31 18:22:58 +08:00
"log"
2026-01-27 02:09:44 +08:00
"strings"
)
2026-01-31 18:22:58 +08:00
func (r *RuleFactory) RunST(in string) {
log.Println("RunST:", r.Model.Code, "Args:", in)
2026-01-27 02:09:44 +08:00
if strings.Contains(in, "ST") {
2026-01-31 18:22:58 +08:00
r.Model.StScore = -1
r.Model.AddDesc("有退市风险")
return
2026-01-27 02:09:44 +08:00
}
2026-01-31 18:22:58 +08:00
r.Model.StScore = 1
2026-01-27 02:09:44 +08:00
}