Bug: 修正exclued_list的筛选逻辑,先判断是否可以交易 (2)

This commit is contained in:
binz 2024-06-03 19:46:21 +08:00
parent 1f6794ea41
commit 4628cfc56c
1 changed files with 2 additions and 0 deletions

View File

@ -443,6 +443,8 @@ class Trader(Account):
# 异常强制卖出
for stock in last_normal_list:
if stock in force_exclude:
if stock_status.loc[stock] in [0,2,5,7]:
continue
sell_list.append(stock)
force_sell_num += 1
for stock in factor.loc[last_normal_list].sort_values(ascending=self.ascending).index.values[::-1]: