stock rsi push to elasticsearch
This commit is contained in:
parent
cf2cc18a78
commit
d3658f6940
@ -315,6 +315,7 @@ func MakeRsi(cr *core.Core, cl *core.Candle, count int) (error, int) {
|
|||||||
if duration > time.Duration(periodMins-1)*time.Minute {
|
if duration > time.Duration(periodMins-1)*time.Minute {
|
||||||
rsi.Confirm = true
|
rsi.Confirm = true
|
||||||
}
|
}
|
||||||
|
fmt.Println("will send rsi")
|
||||||
go func() {
|
go func() {
|
||||||
fmt.Println("make a rsi")
|
fmt.Println("make a rsi")
|
||||||
cr.RsiProcessChan <- &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],
|
DVol: percentD[len(percentD)-1],
|
||||||
Confirm: true,
|
Confirm: true,
|
||||||
}
|
}
|
||||||
|
fmt.Println("will send stockrsi")
|
||||||
go func() {
|
go func() {
|
||||||
fmt.Println("make a stockrsi")
|
fmt.Println("make a stockrsi")
|
||||||
cr.StockRsiProcessChan <- &srsi
|
cr.StockRsiProcessChan <- &srsi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user