There was an error while loading. Please reload this page.
1 parent 73e5878 commit 62e2e4dCopy full SHA for 62e2e4d
1 file changed
rqalpha/mod/rqalpha_mod_sys_accounts/position_model.py
@@ -190,6 +190,7 @@ def settlement(self, trading_date):
190
delta_cash = self.market_value_local
191
if self.cash_return_by_stock_delisted:
192
193
+ self._trade_cost = -self.market_value # 相当于卖掉了,所以给一个负成本
194
self._quantity = self._old_quantity = 0
195
self._queue.clear()
196
return delta_cash
0 commit comments