排查 max 制作数量不够,声称不及时的问题

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-24 11:52:39 +08:00
parent 2876195875
commit f0e5b4d663

View File

@ -412,7 +412,7 @@ func MakeMaX(cr *core.Core, cl *core.Candle, count int) (error, int) {
} }
avgLast := amountLast / ct avgLast := amountLast / ct
if float64(ct) < float64(count) { if float64(ct) < float64(count) {
err := errors.New("no enough source to calculate maX ") err := errors.New("no enough source to calculate maX, setName: " + setName)
return err, int(float64(count) - ct) return err, int(float64(count) - ct)
// fmt.Println("makeMax err: 没有足够的数据进行计算ma", "candle:", cl, "counts:", count, "ct:", ct, "avgLast: ") // fmt.Println("makeMax err: 没有足够的数据进行计算ma", "candle:", cl, "counts:", count, "ct:", ct, "avgLast: ")
} else { } else {