On Wed, Feb 27, 2019 at 4:37 AM Chary Chary <[email protected]> wrote:
> Martin, > > ok, thanks. I will look at Fava (looks cool) and possibly will see whether > I can do some extra development myself there. > > > But I must say, I still have a sneaky feeling, that I may be missing > something, because I just don't understand how people who deal with several > currencies and who have stock can possibly live without such report, which > would show unrealized gains. > They don't. Most people invest domestically and don't think about other currencies. Without report with unrealized gains you have a situation, that you have > some balance at the beginning, balance at the end, but you have no report, > which would show how you got from balance at the beginning to balance at > the end. Even though all your individual transactions are balanced, if you > add them all together they will not produce a delta between balance sheets, > in case you deal with more then one currency or have stock / gold > (anything). > An elegant way to handle this is to use the Selinger trading accounts method. It would be easy to write a Beancount plugin to do this automatically. > > In a very simple situation: > > Say I want to report in EUR, but I keep money in USD. Say I have 1000 USD > and exchange rate was 1:1 at the beginning. > So, starting balance sheet will say, that I have 1000 EUR > Then exchange rate changed and now 1 USD costs 2 EUR. So, all of a sudden > balance sheet at the closing will show, that I now have 2000 EUR. > But how did happen? > I would then expect some line, saying something like: "unrealized gain due > to USD/EUR" exchange rate changes" - 1000 EURO. > > The same applies to stock changes. > > Am I talking some nonsense? How do people manage their finance without > such analysis in our modern world? > They ignore the currency effects. Even many large companies sometimes don't break down the currency impact from foreign reserves. > > P.S. buy the way, please accept congratulation with a very thorough > documentation, on beancount. Very, very well done. > Thank you! > > Regards. > > Chary > > > On Wednesday, February 27, 2019 at 6:28:32 AM UTC+1, Martin Blais wrote: >> >> On Tue, Feb 26, 2019 at 3:31 PM Chary Chary <[email protected]> wrote: >> >>> Hello everybody! >>> >>> I stumbled on Beancount in my search for finance bookkeeping system, as >>> Excel does not really satisfy all my needs >>> >>> I first tested gnucash but I was told >>> <http://gnucash.1415818.n4.nabble.com/GNC-Cashflow-like-report-to-show-realized-and-unrealized-gains-balance-sheet-delta-report-tc4708109.html> >>> it >>> can't do what I need. So I am just wondering whether Beancount can do this: >>> >> >> Depends what you mean. >> On the positive side, Beancount can store all the data you need to >> compute your year-to-date profits, if you stored in your file >> 1. your positions with their cost basis >> 2. the price at the beginning of the year >> 3. the recent price >> >> >> >>> >>> Sorry, if express what I need in gnucash terms, I am just not familiar >>> with Beancount terminology yet >>> >>> What I need is following: >>> >>> ====================================== >>> >>> I am looking for Income Statement" aka "Profit/Loss Statement" report >>> which would show unrealized gain due to changes in stock and currency >>> exchange rate >>> >>> Say at the beginning of the year I have produced a Balance Sheet report. >>> This report shows how much assets I have, which liabilities and delta >>> between them. Suppose at begging of the year I had checking accounts in >>> USD >>> and Euro and some stock. >>> Throughout the year I was getting salary, paying expenses, at the same >>> time >>> exchange rate was changing, stock price was changing etc. My be I sold >>> some >>> stock, moved money between USD and Euro accounts >>> >>> Now at the end of the year I have produced a new balance sheet. >>> >>> So, I want to be able to explain a delta between a balance sheet at the >>> beginning of the ear and at the end. >>> >> >> It's possible to compute that, but I don't think any of the reports there >> by default do it now. >> You might want to look into Fava, which may do offer this on the balance >> sheet. >> >> With queries you can do something like this, replacing the date to get >> the amount at each date: >> bean-query $L "select convert(units(sum(position)), 'USD') from close on >> 2018-03-01 where account ~ 'Assets:US:Broker:Main:VTI' " >> >> You can issue this for a set of accounts by loosening the regexp in the >> where clause. >> You'd have to run multiple queries, and please note that Beancount only >> renders prices that you stored in the input file, so if you want prices >> close to those dates, you'll have to fetch them and insert them. The >> bean-price tools provides some support for automating that some. It's not >> perfect. >> >> >> >> >> E.g.: >>> >>> I got so much salary >>> I paid so much costs >>> >>> But also: >>> Lost so much due to exchange rate change >>> >> >> re. exchange rate; it's possible to compute but you'll have to write some >> code for that. >> >> I think you could write a script to do all that you've described (and >> that's what I would do). >> Beancount allows you to store all the information you need for this. >> Needs a bit of code for this specific report though. >> >> Enjoy, >> >> >> >>> >>> Gained to much due to stock price increase etc. >>> >>> So, effectively I need to be able to drill down in the delta in Balance >>> Sheet report >>> >>> Regards. >>> Chary >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Beancount" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/beancount/2cef9db8-20b9-49d3-b91b-ec3591e10a3b%40googlegroups.com >>> <https://groups.google.com/d/msgid/beancount/2cef9db8-20b9-49d3-b91b-ec3591e10a3b%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/dbda210e-356c-4eed-ba44-0d353c5b6c23%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/dbda210e-356c-4eed-ba44-0d353c5b6c23%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhOQH7GsPuCR-z_ubNFWWFffEBfhdyv%3DoeOdM8rUM4HWYQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
