Skip to content

Survivorship free data handling #157

Answered by edtechre
markxbaker asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @markxbaker,

Your positions are only updated on OHLC bars in the data source. If a stock is delisted, and there are no longer OHLC bars, then your position will stay open by default. You can use StrategyConfig#exit_on_last_bar to automatically close out the position on the last bar of data, which will cause the position to be closed if its stock is delisted.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by markxbaker
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