The last version 1.31 of hledger came with an improvement to the output of hledger roi that makes easier the tracking of investments to even take decisions. They added the “TWR/period” column to the report.

Until now, “hledger roi” provided the annualized IRR and the annualized TWR but not the real return of the desired period. The difference between return and annualized return is key, because if I earned 5% for 6 months, I earned an 10.25% annualized return but what I really have in my pocket is an additional 5% of my initial investment.

The next screenshot is the output of the first 9 months of 2023.

Now for every month I have the anualized IRR and TWR, but the most interesting column is the “TWR/period” column which display the return of the period. Finally, the last line provides the return of the first nine months of the year (TWR/period) and also the annualized TWR and IRR.