The Capital River page now shows its correct version number. The previous release updated the page's behaviour but still labelled itself with the version before it.
What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.
Showing entries for file capital_river.php. Show everything
The Capital River page now shows its correct version number. The previous release updated the page's behaviour but still labelled itself with the version before it.
The held cost basis behind the Unrealized Gain card no longer averages in shares that were sold before the current position was bought. It is exact unless a partial sale has happened since the position was last fully closed.
The basis was an average across every purchase in a security's history, so a sold-out earlier position inflated the basis of the one held today and understated the unrealized gain. The basis now resets whenever a position is fully sold, and is marked as an average-cost estimate only after a partial sale.
The Capital River's capital line and Capital Invested card now show the capital still at work on each date. Selling a whole position takes it back to zero; selling part of one reduces it in proportion to the shares sold.
Previously the line was a running total of every purchase and never fell, so a position that was closed and later reopened counted both purchases for the years in between. Only a sale moves the figure now. Transfers, splits and conversions into another security change the share count but not the capital, so they leave it alone. When sales have returned capital, the card also states how much was put in and how much came back. Combined return still measures against all capital ever put in, and the card now names that base.