Skip to content

Commit

Permalink
deploy: 26fa826
Browse files Browse the repository at this point in the history
  • Loading branch information
hug-sch committed Oct 8, 2024
1 parent 307bdda commit 905c35f
Show file tree
Hide file tree
Showing 12 changed files with 4,512 additions and 3,806 deletions.
184 changes: 92 additions & 92 deletions de/sitemap.xml

Large diffs are not rendered by default.

Binary file modified de/sitemap.xml.gz
Binary file not shown.
3,247 changes: 3,247 additions & 0 deletions en/assets/test-07-split.xml

Large diffs are not rendered by default.

525 changes: 525 additions & 0 deletions en/assets/test.backup-after-open.xml

Large diffs are not rendered by default.

3,502 changes: 81 additions & 3,421 deletions en/assets/test.xml

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
159 changes: 0 additions & 159 deletions en/how-to/images/stock-split-comparison-2-methods.svg

This file was deleted.

450 changes: 450 additions & 0 deletions en/how-to/images/stock-split-sell-buy-back-method.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 21 additions & 38 deletions en/how-to/recording-stock-split/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3500,13 +3500,13 @@ <h1>Recording a stock split operation</h1>
<h2 id="use-of-the-built-in-stock-split-function">Use of the built-in Stock split-function</h2>
<p>PP currently supports stock splits via work-around; see the <a href="https://forum.portfolio-performance.info/t/aktiensplit-buchen/11758">discussion on the forum</a>. Essentially, it retroactively assumes that the shares have <em>always</em> been split. This ensures the correct number of securities in the portfolio <em>after</em> the split and maintains historically consistent cash flows and valuations, thereby preserving the security's performance. However, the number of shares <em>before</em> the split may not align with the real historical situation, potentially complicating the understanding of the security's history.</p>
<p>This change is destructive. It is not easily undone. If necessary, an improperly executed split can be corrected by executing a split with an inverse ratio. But perhaps a better approach is to create a backup copy of the portfolio file.</p>
<p>In the description of the Stock Split process in the <a href="../../reference/view/securities/context-menu/#stock-split">Reference Manual</a>, the example of the Amazon 20-for-1 stock split on June 6, 2022 is used. Please review this section first.</p>
<p>In Figure 1, the share price evolution over the last five years is depicted. Very noticeable, there is a massive drop on between June 3 and 6, 2022. On those dates, the closing prices were <code>$ 2447</code> and <code>$ 124.79</code>, respectively (but remember, you own 20 times more shares). Assume that you have purchased one (pricy) share on January 3, 2022 for the amount of <code>$ 3408</code>.</p>
<p><figure class="pp-figure" id="_figure-1"><figcaption>Figure 1. Historical Quotes chart of Amazon (unadjusted prices). </figcaption><img alt="" src="../../reference/view/securities/images/split-stock-amazon-unadjusted-PP.png"></figure></p>
<p>In the description of the Stock Split process in the Reference Manual, the example of the Amazon 20-for-1 stock split on June 6, 2022 is used. Please review this section first for details about <a href="../../reference/view/securities/context-menu/#stock-split">how to use the built-in stock split function</a> of PP.</p>
<p>In Figure 1, the share price evolution over the last five years is depicted. Very noticeable, there is a massive drop between June 3 and 6, 2022. On those dates, the closing prices were <code>$ 2447</code> and <code>$ 124.79</code>, respectively (but remember, you own 20 times more shares).</p>
<p><figure class="pp-figure" id="_figure-1"><figcaption>Figure 1. Historical Quotes chart of Amazon (unadjusted prices - chart from PP). </figcaption><img alt="" src="../../reference/view/securities/images/split-stock-amazon-unadjusted-PP.png"></figure></p>
<p>Quite some confusion arises when you compare this chart with those from most other financial websites; for example, the 5-year chart from <a href="https://www.investing.com/equities/amazon-com-inc">investing.com</a> looks very different.</p>
<p><figure class="pp-figure" id="_figure-2"><figcaption>Figure 2. Historical Quotes chart of Amazon (adjusted prices). </figcaption><img alt="" src="../reference/view/securities/images/split-stock-amazon-adjusted-investing-com.png"></figure></p>
<p>Both charts span an identical five-year period. But, while your purchase price was <code>$ 3408</code>, it appears to be priced around <code>$ 150</code> around January 2022. This discrepancy arises because financial websites typically "adjust" all historical prices after a stock split. This adjustment involves recalculating the historical prices before the split, just as the PP's Stock Split function does.</p>
<p><figure class="pp-figure" id="_figure-3"><figcaption>Figure 3. Historical Quotes chart of Amazon (adjusted prices). </figcaption><img alt="" src="../../reference/view/securities/images/split-stock-amazon-adjusted-PP.png"></figure></p>
<p><figure class="pp-figure" id="_figure-2"><figcaption>Figure 2. Historical Quotes chart of Amazon (adjusted prices - chart from investing.com). </figcaption><img alt="" src="../images/split-stock-amazon-adjusted-investing.png"></figure></p>
<p>Both charts span a five-year period. But, while your purchase price around January 2022 was <code>$ 3408</code> (Figure 1), it appears to be priced around <code>$ 150</code> (Figure 2), according to <a href="https://www.investing.com/equities/amazon-com-inc">investing.com</a>. This discrepancy arises because financial websites typically "adjust" all historical prices after a stock split. This adjustment involves recalculating the historical prices before the split, just as the PP's Stock Split function does.</p>
<p><figure class="pp-figure" id="_figure-3"><figcaption>Figure 3. Historical Quotes chart of Amazon (adjusted prices - chart from PP). </figcaption><img alt="" src="../../reference/view/securities/images/split-stock-amazon-adjusted-PP.png"></figure></p>
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>The "regular" Yahoo Finance Close Price is already adjusted for splits. The <em>Adjusted close</em> price is en surplus adjusted for splits and dividend and/or capital gain distributions.</p>
Expand All @@ -3520,7 +3520,7 @@ <h2 id="use-of-the-built-in-stock-split-function">Use of the built-in Stock spli
<p>It's crucial to recognize that the historical transactions <em>and</em> prices are permanently altered. This means that PP's records of past transactions will no longer accurately reflect the actual transactions as documented in your paper files. Over time, this may complicate the reconstruction of a security's history.</p>
</li>
<li>
<p>A notable challenge arises when a split results in fractional shares, as seen in the case of Prosus' split announcement on September 14, 2023, with a ratio of 2.1796-for-1. In this scenario, 10 existing shares would be split into 21.796 shares. While PP can handle fractional shares, most brokers or banks cannot. Typically, they would adapt to this particular situation by issuing 21 new shares and providing compensation for the fractional share (0.796 shares in this case). Consequently, after the split, you'll need to record this compensation, which essentially involves executing a sell transaction of the fraction. Managing this process becomes notably more complex if you've made multiple purchases at different prices throughout the security's history.</p>
<p>A notable challenge arises when a split results in fractional shares, as seen in the case of Prosus' split announcement on September 14, 2023, with a ratio of 2.1796-for-1. In this scenario, 10 existing shares would be split into 21.796 shares. While PP can handle fractional shares, most brokers or banks cannot. Typically, they would adapt to this particular situation by issuing 21 new shares and providing compensation for the fractional share (0.796 shares in this case). Consequently, after the split, you'll need to record this compensation, which essentially involves executing a sell transaction of the fraction.</p>
</li>
</ul>
<h2 id="use-of-sell-buy-back-operation">Use of sell-buy-back operation</h2>
Expand All @@ -3530,40 +3530,23 @@ <h2 id="use-of-sell-buy-back-operation">Use of sell-buy-back operation</h2>
<li>Simultaneously, on the same date, acquire a new quantity of shares equivalent to the theoretical outcome of the split (old quantity x split ratio). Ensure that the total purchase amount matches the selling value determined earlier.</li>
<li>Round down the new share quantity to the nearest whole number. If there is a remainder, sell it at the same price as described in step 2.</li>
</ul>
<p>Let's apply this workflow to the PROSUS split (2.1796-for-1) from above. Assume that you have bought 5 shares on 2022-01-03 on XETRA for 68.60 EUR per share and another 5 on 2023-01-03 for 73.90 EUR. The closing price on XETRA on 2023-09-13 was 64.11 EUR.</p>
<ol>
<li>
<p>Selling old shares:</p>
<p>Let's apply this workflow to a simplified example (see Figure 4). On 1 January 2021, you owned one share priced at 100 EUR. This price remained essentially unchanged until 31 December 2021. On 1 January 2022, a 10-for-1 stock split occured, resulting in 10 shares. The price at the end of the day was 11 EUR. By the end of the year, the price had increased to 13 EUR per share, giving your portfolio a market value of 130 EUR.</p>
<p><figure class="pp-figure" id="_figure-4"><figcaption>Figure 4. Simplified example of sell-back-back stock split. </figcaption><img alt="" src="../images/stock-split-sell-buy-back-method.svg"></figure></p>
<p>The performance calculation for the built-in stock split function is quite straightforward. Due to the retroactive nature of the split function, the original purchase of 1 share at 100 EUR/share (MVB) is adjusted to reflect the purchase of 10 shares at 10 EUR/share. At the end of the two-year reporting period, you still own 10 shares, but their total value has increased to 130 EUR (MVE). Using the formulas from the <a href="../../concepts/performance/money-weighted/">money-weighted (IRR)</a> and <a href="../../concepts/performance/time-weighted/">time-weighted (TTWROR)</a> section:</p>
<ul>
<li>You have a total of 10 shares (5 bought on 2022-01-03 and 5 bought on 2023-01-03).</li>
<li>The closing price on XETRA on 2023-09-13 was 64.11 EUR.</li>
<li>Total selling value = 10 shares * 64.11 EUR/share = 641.10 EUR.</li>
<li>IRR: <code>130 = 100 * (1 + IRR)^2</code> or <code>IRR = SQRT(130/100) - 1</code> = 14.0157%.</li>
<li>TTWROR: <code>= (130/100) - 1</code> or TTWROR = 30%</li>
</ul>
</li>
<li>
<p>Purchasing new shares:</p>
<p>When using the sell-buy-back method, you need to include supplementary transactions after the initial purchase. At the split date (2022-01-01), you sell 1 share at the price of 110 EUR/share and buy 10 shares at the price of 11 EUR/share. </p>
<ul>
<li>The split ratio is 2.1796-for-1.</li>
<li>The theoretical new amount of shares = 10 shares * 2.1796 = 21.796 shares.</li>
<li>The total purchase value must be the same as the selling value: 641.10 EUR.</li>
<li>Buy 21.796 shares for 641.10/21.796 or 29.41 EUR/share</li>
<li>IRR: <code>130 = 100 * (1 + IRR)^(730/365) - 100 * (1 + IRR)^(365/365) + 100 * (1 + IRR)^(365/365)</code>. Because the last two terms cancel each other out, the formula simplifies to that of the built-in split, and <code>IRR = SQRT(130/100) - 1</code> or 14.0157%. It is crucial that the buy and sell transactions occur on the same day; otherwise the second and third term are not equal. Suppose that you sell the 1 share on December 31 instead of January 1. The formula from above becomes <code>130 = 100 x (1+IRR)^(730/365) - 100 x (1+IRR)^(366/365) + 100 x (1+IRR)^(365/365)</code> or <code>IRR = 14.0355%</code> slightly higher than the result of the built-in function. Note that the negative second term has a slightly larger exponent, which means the IRR must be marginally higher to yield the MVE of 130 EUR.</li>
<li>TTWROR <code>= ((110/100) x (130/110)) - 1</code> or <code>(1.1 x 1.1818) - 1 = 30%</code>. The exact selling date is unimportant for the TTWROR calculation.</li>
</ul>
</li>
<li>
<p>Selling the remaining fraction:</p>
<ul>
<li>Round down to the nearest integer: 21 shares.</li>
<li>Fractional share remaining after rounding down = 21.796 - 21 = 0.796 shares.</li>
<li>Sell the remaining fraction at the acquiring price, which is 29.41 EUR/share.</li>
<li>Value of the remaining fraction = 0.796 shares * 29.41 EUR/share = 23.41 EUR.</li>
</ul>
</li>
</ol>
<p>In Figure 4 a comparison of the two methods (built-in function vs sell-buy-back) is made. As can be seen, the price range is 15 - 50 for the built-in split and 20 - 100 for the sell-buy-back method. The original buying prices are preserved in the latter case. Of course, the graph wouldn't look as nice for the Amazon 20-for-1 split.</p>
<p><figure class="pp-figure" id="_figure-4"><figcaption>Figure 4. Comparison of the two methods (Prosus example).</figcaption><img alt="" src="../images/stock-split-comparison-2-methods.svg"></figure></p>
<p>Please note that the security performance (top-right) is practically the same for built-in split vs sell-buy-back: IRR is respectively -6.05% vs -6.11%. The small difference is caused by the selling of the fraction (0.796 share) at a bad time (29.41 vs 29.54 EUR) in case of the sell-buy-back method.</p>
<p>The Trades Performance view gives additional info. Because we haven't solved the fractional share problem in the built-in split method, there is only one open trade: purchased 21.796 shares (2 x 10,898) and not sold yet. Remember that in your real bank account, you only have 21 shares. We haven't compensated for the fractional shares, which would be much more difficult in the built-in split method.</p>
<p>Let's compare with the sell-buy-back method. The open trade represents the 21 shares purchased on 2023-09-14. This trade has a positive performance (IRR = 1.03%). Prices have been increased since then. The previous period (the closed trade) however was negative (IRR= -8.40%). This puts the overall negative security performance of -6.11 in perspective. The IRR of the small closed trade of selling the 0.796 fraction is NaN (Not a Number). Because this trade is purchased and sold at the same price on the same day, the performance could not be calculated.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>For the buy and sell transactions, we used the share price immediately before the split. However, according to the IRR and TWROR formulas mentioned earlier, the specific price used is not crucial, as long as the same price is applied for both the sell and buy transactions. The advantage of using the price from just before the split is that the closed trade (from the sell transaction) accurately reflects the share’s real performance up to the split.</p>
<p>Please note that in the <a href="../../reference/view/reports/performance/trades/">View &gt; Reports &gt; Performance &gt; Trades</a> view, all reported performances are independent of the reporting period, but reflect the real holding periods of the trades. For example, the end date of the holding period is today; not the ending date of the reporting period.</p>
</div>



Expand All @@ -3584,7 +3567,7 @@ <h2 id="use-of-sell-buy-back-operation">Use of sell-buy-back operation</h2>
<span class="md-icon" title="Last update">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg>
</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">February 13, 2024</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 8, 2024</span>
</span>


Expand Down
2 changes: 1 addition & 1 deletion en/search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit 905c35f

Please sign in to comment.