I am in the process of writing some software that will allow me to input the current market values of my investments every month according to my monthly statement and see the annualized performance over any period I want for any of all of my investments at a time, but it is slow-going. What is the difference between this and Quicken or Microsoft Money? Well first of all, it is free. What is the difference between free programs like Gnucash, etc…? Those programs cannot do this kind of thing in the way I want to just yet. The main difference in usage is that all you need to do is enter information from your monthly statements, such as current market values of your investments and your investment transactions as well. Then various annualized returns can be calculated from that for all your investments, or the aggregation of all your investments over time (for example). It explictly does not rely on daily prices of anything. That is to promote sound conservative investment practice: that daily fluctuations in the market do not matter. If I can get all that to work in a framework that is flexible then I should be able to do a lot more with it too. If anyone things this is interesting or thinks that I am re-inventing the wheel, please tell me.
I think this is really interesting. I used to be a software developer before the big tech crash and love to use my knowledge to help me in my investments and tracking of them. What are you using to develop this?
I’m using Python because it is one of the fastest languages to code in. I might put this project up on sourceforge or on the new google code site once I get something working.
Python eh? I used to do a lot in Perl, mostly in Unix. Look foward to seeing what you can come up with!
Yeah, Perl was pretty common to do things quickly back in the day (well it’s still the quickest for anything to do with string processing AFAIK) but nowadays Python is gaining in popularity over Perl.
I hope you are doing this for the fun of it! It’s certainly not free (what’s your hourly rate worth?)
I picked up a copy of Quicken 2006 for free (stuck on the front of a $6 investment magazine).
ps. Even Quicken doesn’t calculate annualised returns perfectly. It gets very messy when you are adding to or selling part of an existing position – you have to track individual lots. You also can’t just use arithmetic averaging of returns.
I think the easiest method to follow is to just pretend your portfolio is a big ‘black box’, and record all dollar amounts in and out and then iteratively calculate what annual rate of return applied to the model results in the same ending value as your real portfolio. However, unless you have kept a fairly constant amount invested over the total period, this figure is pretty meaningless. eg. If you’ve been investing for ten years but have built up the investment by adding to it each year, you could have the same average annualised return if the early years were excellent and the latter years poor, or vice versa. But althought the average annualised returns are the same the end result is different! To adjust for this you’d have to WEIGHT the return calculation based on the amount you had invested at any time… It all gets way too hard to be of use. You’re better off concentrating on saving more in the early years, and minimising transaction and management costs once you have a reasonable amount invested (say > 5x your annual salary).
ralph: I am also using this type of “black box” method as you call it with the return being the only unknown. I basically use the XIRR function in Excel. I have now written this function in Python and it works and I will use that to calculate returns on an investment-by-investment basis as well as for the whole account.
I don’t understand the problem you described whereby “you’ve been investing for ten years but have built up the investment by adding to it each year, you could have the same average annualised return if the early years were excellent and the latter years poor, or vice versa.”
Maybe the XIRR function solves the problem you describe (I think it does).
XIRR
More on XIRR
Anyways, yes I’m doing this for fun. 🙂
Dave: did you ever publish your XIRR function in Python? Would love to have a look at it. I’m looking for an XIRR function in Python and all I have found is NumPy, but it looks like a PIA to install on my machine.
-Carlos
Carlos, here it is. It uses NumPy.