16 lines
		
	
	
		
			238 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			238 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from enum import Enum
 | |
| 
 | |
| 
 | |
| class BacktestState(Enum):
 | |
|     """
 | |
|     Bot application states
 | |
|     """
 | |
|     STARTUP = 1
 | |
|     DATALOAD = 2
 | |
|     ANALYZE = 3
 | |
|     CONVERT = 4
 | |
|     BACKTEST = 5
 | |
| 
 | |
|     def __str__(self):
 | |
|         return f"{self.name.lower()}"
 |