Bug: 修正exclued_list的筛选逻辑,先判断是否可以交易 (2)
This commit is contained in:
parent
1f6794ea41
commit
4628cfc56c
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue