Hi, It appears that there is a significant issue with the stock filtering backtests in QC. I have noticed that the algorithm used to filter stocks produced different results when run last month compared to when it was run today. (I copied it from the Log which was ran last month.)

2024-07-02 00:00:00 :['CONN', 'NCSM', 'MESA', 'IRBT', 'SDIG', 'GOCO', 'HOOK', 'NUTX', 'DTIL', 'BMTX']

 

But when I ran the same Algorithm today, it gave me a different result.

2024-07-02 00:00:00 :['CELU', 'ALGS', 'LPSN', 'PRPL', 'MESA', 'OPI', 'SDIG', 'IRBT', 'GOCO', 'HOOK']


Especially considering that certain stocks, such as ‘CONN’ has gone bankrupt and is to be delisted, price going to 0. But the same Algorithm ran today didn't reflect this, and just ignores ‘CONN’.  It's not just for this month. 

 

▽Log from backtest ran last month.

2024-02-02 00:00:00 :['VBIV', 'PLBY', 'CONN', 'VERI', 'SDIG', 'GOCO', 'EHTH', 'TSHA', 'STRO', 'SGMA']2024-03-02 00:00:00 :['PLBY', 'BBGI', 'CONN', 'SDIG', 'VERI', 'GOCO', 'STHO', 'GIFI', 'STRO', 'SGMA']

 

▽Log from backtest ran today.

2024-02-02 00:00:00 :['CELU', 'PLBY', 'VERI', 'SDIG', 'GOCO', 'TSHA', 'EHTH', 'STRO', 'SGMA', 'GIFI']2024-03-02 00:00:00 :['PLBY', 'BBGI', 'CONN', 'SDIG', 'VERI', 'GOCO', 'STHO', 'GIFI', 'STRO', 'SGMA']

  Unless the engine/data has lookahead bias the same code should be returning the same result. 

 

I am using filters such as

                                                            if (x.HasFundamentalData)
                                                            and x.Market == 'usa' 
                                                            and x.Price > 0.1
                                                            and x.DollarVolume>1000

 

if  x.MarketCap > 0
                                    and (x.CompanyReference.IndustryTemplateCode!="B")
                                    and (x.CompanyReference.IndustryTemplateCode!="I")

and some other financial filters too. Looking at a similar feed from 2022, I guess datas related to company's basic info is the problem. It is clear that they are somehow bypassing the lookahead bias prevention methods, probably because these datas are using data of today. 

 

This problem makes all the research in equity factor analysis untrustable, which is very disappointing. 
 

Survivorship Bias issues in universe selection (equities) by Tom M - QuantConnect.com