Skip to content

Potential Issue: Survivorship Bias in Long-Term Backtesting #164

Answered by enzbus
hjia8901 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Yes, you are right. The problem is that I'm not aware of public historical data for stocks that don't exist any more, and the examples are designed to run on anyone's computer, in the simplest way possible. (And avoid shipping a frozen dataset, real or synthetic, with the examples suite.) The universes are actually updated periodically, downloading index components from Wikipedia, so they should be the current components, with maybe some delay. If you bought historical data that includes stocks that don't trade any more, or in any case want to update your trading universe over time, you can use the universe_selection_in_time optional argument to UserProvidedMarketData. That is more…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hjia8901
Comment options

Answer selected by hjia8901
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants