stock rsi push to elasticsearch
This commit is contained in:
parent
57e37b5ae4
commit
ce78682a76
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user