Here is some code I use: https://bitbucket.org/blais/beancount/src/tip/src/python/beancount/projects/returns.py?at=default
Incomplete documentation (but you get the idea): https://docs.google.com/document/d/1vEFB44-HFqydYVJXA-QxT4AN0K5xHHfSkhTmRSCPkac/edit#heading=h.74ct9toigxjp Run it in verbose mode and it will spit out all the detail, for all the periods between external flows. There are a few kinks, but it mostly works. Takes into account capital gains, dividends and fees if you organize your account names right. (I just realized I forgot to complete the explanatory document, will do that soon.) On Fri, Jan 16, 2015 at 8:28 PM, Red Street <[email protected]> wrote: > Hi all, > I'm trying to figure out how I can compute investment returns for a given > period using ledger. > > By "investment returns," I mean the usual. I think this page calls it > "Investor return": > http://www.bogleheads.org/wiki/Calculating_personal_returns > > I was thinking there would be a bunch of other folks here in the same > boat, and so, I was hoping to not reinvent the wheel. Any homebrewed > solutions or pointers welcome. > > Thanks in advance! > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
