|  | @@ -205,7 +205,7 @@ def sell_trader(data):
 | 
											
												
													
														|  |                  'select close_front, high_front from `%s_1d`' % stock), engine_stock.connect())
 |  |                  'select close_front, high_front from `%s_1d`' % stock), engine_stock.connect())
 | 
											
												
													
														|  |              print(f'{stock},持仓量为{can_use_volume}当前价:{current_price},MA5:{MA5},昨日MA5:{MA5_1},开始判断:')
 |  |              print(f'{stock},持仓量为{can_use_volume}当前价:{current_price},MA5:{MA5},昨日MA5:{MA5_1},开始判断:')
 | 
											
												
													
														|  |              if current_price == xtdata.get_instrument_detail(stock).get('UpStopPrice') \
 |  |              if current_price == xtdata.get_instrument_detail(stock).get('UpStopPrice') \
 | 
											
												
													
														|  | -                or (df['close_front'][-1] == df['high_front'][-1] and df['close_front'][-1]/df['close_front'] > 0.8):
 |  | 
 | 
											
												
													
														|  | 
 |  | +                or (df['close_front'][-1] == df['high_front'][-1] and df['close_front'][-1]/df['close_front'][-2] > 0.8):
 | 
											
												
													
														|  |                  continue
 |  |                  continue
 | 
											
												
													
														|  |              elif current_price < MA5 or MA5 < MA5_1:
 |  |              elif current_price < MA5 or MA5 < MA5_1:
 | 
											
												
													
														|  |                  print('卖出信号!!!!!!', stock, current_price)
 |  |                  print('卖出信号!!!!!!', stock, current_price)
 |