This commit is contained in:
2026-02-27 00:53:07 +08:00
parent db9ef059dc
commit 4dde784047
3 changed files with 5 additions and 8 deletions

View File

@@ -58,10 +58,6 @@ const (
defaultMacdSignal = 9
)
var (
desc []string
)
type MacdResult struct {
Score int
Val float64
@@ -70,6 +66,7 @@ type MacdResult struct {
// RunMacd 根据MACD红绿柱及价量关系对当前标的进行打分与描述
func RunMacd(code string) *MacdResult {
var desc []string
args, _, err := GetArgConfig(code)
if err != nil {
return &MacdResult{Score: -1, Desc: "MACD参数错误"}