stock rsi push to elasticsearch

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-22 00:04:03 +08:00
parent cf2cc18a78
commit d3658f6940

View File

@ -315,6 +315,7 @@ func MakeRsi(cr *core.Core, cl *core.Candle, count int) (error, int) {
if duration > time.Duration(periodMins-1)*time.Minute {
rsi.Confirm = true
}
fmt.Println("will send rsi")
go func() {
fmt.Println("make a rsi")
cr.RsiProcessChan <- &rsi
@ -337,6 +338,7 @@ func MakeRsi(cr *core.Core, cl *core.Candle, count int) (error, int) {
DVol: percentD[len(percentD)-1],
Confirm: true,
}
fmt.Println("will send stockrsi")
go func() {
fmt.Println("make a stockrsi")
cr.StockRsiProcessChan <- &srsi