Survivorship free data handling #157
Answered
by
edtechre
markxbaker
asked this question in
Q&A
-
Hi, how does the package handle delisted stocks, say I have a position open and the stock gets delisted before my strategy closes out, what happens? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
edtechre
Nov 14, 2024
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
markxbaker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.