stock rsi push to elasticsearch

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-21 22:22:53 +08:00
parent 57e37b5ae4
commit ce78682a76
2 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ func MakeRsi(cr *core.Core, cl *core.Candle, count int) (error, int) {
}
// amountLast := float64(0)
// ct := float64(0)
if len(cdl.List)+3 < count {
if len(cdl.List) < count+3 {
err = errors.New("sortedSet长度不足,无法进行rsi计算")
return err, 0
}

BIN
siaga

Binary file not shown.