-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to survive a stock split? #4223
Comments
Well, what did you recommend to analyse? It's common practice that historical quotes are recalculated after a stock split. My workflow in this case, use the PP stock split function to get the correct postings, delete existing quotes from the database and renew via Yahoo. |
Where I saw with splits/reverse splits, PP's handling works well, and I personally don't see much what can be improved. Except maybe the initial dialog page where ratio is imported - the way it's presented it's a bit confusing, and it's easy to get reverse split instead of normal and vice-versa. I didn't see a need to remove any existing historical prices - PP recalculates them well. And somehow handling of historical price feed by PP seems to be pretty smart - it doesn't overwrite older prices in its DB from feed (but does that for today's price), so you can make correction to 3rd-party provider's prices (e.g. Yahoo has regular errors), and they "stick". |
Also, there's (now) fairly extensive section in the docs on splits: https://help.portfolio-performance.info/en/how-to/recording-stock-split/ |
The experts should decide if this is a feature or a bug; at least it is strange behavior.
I am using Yahoo Finance as my data source. You can select between two options
Note, Yahoo Finance is always correcting for splits and reversed splits. So you don't have to bother with that issue.
Select under "All Securities" the stock of your interest, for example Tetra Tech (TTEK). There is an option "Stock Split" under the pull down menu. This "Stock Split" is incompatible with the source data of Yahoo Finance, so don't use it !!! But if you are not using it, then you are having problems with historical transactions. In case of the 1:5 split of Tetra Tech (TTEK) all historical transactions before the split should be edited. That means the number of stocks should be multiplied by 5 and the price should be divided by 5 so that the transaction sum doesn't change. Now we are going to use the inconsistent behavior of the option "Stock Split".
What is stock split doing. Besides creating troubles it has a nice feature. All transactions before the split date are corrected. In case of a 1:5 split the number of stocks is multiplied by 5 and the price is divided by 5. If you are looking at graphs it is creating a discontinuity. The stock price is jumping by a factor 5.
Deleting the same stock split is doing nothing. The previous situation before the stock split is not reconstructed.
So to correct all your transactions before a stock split you have to perform two actions:
After this action you have survived a stock split.
If you want to study this subject, use Tetra Tech (TTEK) or Cintas (CTAS) which have had recent splits.
The text was updated successfully, but these errors were encountered: