Backtest problem with historical index constituents

I notice that when I run a backtest on an index with past and current stocks, stocks that were delisted while in a trade are not sold and accumulate until the end date of the backtest. This means that the number of open positions is reduced by the number of unsold delisted stocks affecting the test results. Any thoughts?

Try this


Thanks Chris, it fixed it.

1 Like