stock rsi push to elasticsearch
This commit is contained in:
		
							parent
							
								
									95d53cce47
								
							
						
					
					
						commit
						2f0a01b40e
					
				@ -315,11 +315,6 @@ 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() {
 | 
					 | 
				
			||||||
		fmt.Println("make a rsi")
 | 
					 | 
				
			||||||
		cr.RsiProcessChan <- &rsi
 | 
					 | 
				
			||||||
	}()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	percentK, percentD, err := CalculateStochRSI(rsiList, count, 3, 3)
 | 
						percentK, percentD, err := CalculateStochRSI(rsiList, count, 3, 3)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
@ -338,6 +333,12 @@ 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 rsi")
 | 
				
			||||||
 | 
						go func() {
 | 
				
			||||||
 | 
							fmt.Println("make a rsi")
 | 
				
			||||||
 | 
							cr.RsiProcessChan <- &rsi
 | 
				
			||||||
 | 
						}()
 | 
				
			||||||
	fmt.Println("will send stockrsi")
 | 
						fmt.Println("will send stockrsi")
 | 
				
			||||||
	go func() {
 | 
						go func() {
 | 
				
			||||||
		fmt.Println("make a stockrsi")
 | 
							fmt.Println("make a stockrsi")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user