stock rsi push to elasticsearch

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-21 23:41:35 +08:00
parent 43b8884ea5
commit f76cd74808

View File

@ -289,6 +289,7 @@ func MakeRsi(cr *core.Core, cl *core.Candle, count int) (error, int) {
cdl.RecursiveBubbleS(len(cdl.List), "asc")
closeList := []float64{}
ll := len(cdl.List)
fmt.Println("candleList for rsi cal len:", ll)
for k, v := range cdl.List {
fmt.Println("candle in list", ll, k, v)
closeList = append(closeList, ToFloat64(v.Data[4]))