stock rsi push to elasticsearch
This commit is contained in:
		
							parent
							
								
									fb0d242307
								
							
						
					
					
						commit
						43b8884ea5
					
				@ -314,7 +314,9 @@ func MakeRsi(cr *core.Core, cl *core.Candle, count int) (error, int) {
 | 
			
		||||
	if duration > time.Duration(periodMins-1)*time.Minute {
 | 
			
		||||
		rsi.Confirm = true
 | 
			
		||||
	}
 | 
			
		||||
	cr.RsiProcessChan <- &rsi
 | 
			
		||||
	go func() {
 | 
			
		||||
		cr.RsiProcessChan <- &rsi
 | 
			
		||||
	}()
 | 
			
		||||
 | 
			
		||||
	percentK, percentD, err := CalculateStochRSI(rsiList, count, 3, 3)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@ -333,8 +335,10 @@ func MakeRsi(cr *core.Core, cl *core.Candle, count int) (error, int) {
 | 
			
		||||
		DVol:       percentD[len(percentD)-1],
 | 
			
		||||
		Confirm:    true,
 | 
			
		||||
	}
 | 
			
		||||
	go func() {
 | 
			
		||||
		cr.StockRsiProcessChan <- &srsi
 | 
			
		||||
	}()
 | 
			
		||||
 | 
			
		||||
	cr.StockRsiProcessChan <- &srsi
 | 
			
		||||
	return nil, 0
 | 
			
		||||
}
 | 
			
		||||
func MakeMaX(cr *core.Core, cl *core.Candle, count int) (error, int) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user