Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Asset allocation again
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthew Harris  
View profile  
 More options Nov 8 2012, 3:50 pm
From: Matthew Harris <mharris...@gmail.com>
Date: Thu, 8 Nov 2012 12:50:36 -0800 (PST)
Local: Thurs, Nov 8 2012 3:50 pm
Subject: Asset allocation again

I'm very impressed that Ledger is able to compute asset allocation. I know
the asset allocation command is a big hack, so I shouldn't expect too much,
but...

Is it possible to restrict the asset allocation to a particular set of
accounts? For example, can I compute the asset allocation of only my
401(k)? I don't see an option that lets me do that, but it's possible I'm
missing something.

Matthew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Earls  
View profile   Translate to Translated (View Original)
 More options Nov 8 2012, 4:11 pm
From: Craig Earls <ender...@gmail.com>
Date: Thu, 8 Nov 2012 14:09:13 -0700
Local: Thurs, Nov 8 2012 4:09 pm
Subject: Re: Asset allocation again

Well, it isn't a HACK, I thought it was pretty elegant!  Try getting
Quicken to do that!

Anyway, assuming you are using the method in Ledger3.pdf the simplest way
would be would be to add a clause to the expr limiting the automated
transaction to specific accounts. Something like (not debugged or tested):

= /401K/ and expr ( commodity == 'VTHRX')
     (allocation:Equities:Domestic)  1.000

That will only apply the allocation to accounts with 401K in the name.

Does that get what you want?

On Thu, Nov 8, 2012 at 1:50 PM, Matthew Harris <mharris...@gmail.com> wrote:
> I'm very impressed that Ledger is able to compute asset allocation. I know
> the asset allocation command is a big hack, so I shouldn't expect too much,
> but...

> Is it possible to restrict the asset allocation to a particular set of
> accounts? For example, can I compute the asset allocation of only my
> 401(k)? I don't see an option that lets me do that, but it's possible I'm
> missing something.

> Matthew

--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Harris  
View profile  
 More options Nov 9 2012, 4:38 pm
From: Matthew Harris <mharris...@gmail.com>
Date: Fri, 9 Nov 2012 13:38:35 -0800 (PST)
Local: Fri, Nov 9 2012 4:38 pm
Subject: Re: Asset allocation again

It's an impressive hack, but it's still a hack. Ledger doesn't have any
notion of asset allocation. Even if my 401k consists of a stock fund and a
bond fund, the --percent balance report won't tell me the asset allocation
of my account unless I split the account into one account per fund, which I
would prefer not to do. Your example works if I always want to see the
asset allocation of my 401k, but it doesn't scale: I want to see the asset
allocation of my 401k, my wife's 401k, the sum of our 401k's, the sum of
our investments ... really every investment account in the journal.

Ideally Ledger would have an idea of the asset allocation of each commodity
and I could pass a flag so the balance report would give the balance in
terms of asset allocation categories instead of the underlying commodities.

In this case, I was hoping that there was a flag so I could tell Ledger to
add up the asset allocation virtual postings only for my 401k, for example.
But that would have been a hack too, so I'm not really sad that there isn't
one.

Matthew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Nov 9 2012, 5:06 pm
From: "John Wiegley" <jo...@newartisans.com>
Date: Fri, 09 Nov 2012 16:06:53 -0600
Local: Fri, Nov 9 2012 5:06 pm
Subject: Re: Asset allocation again

>>>>> Matthew Harris <mharris...@gmail.com> writes:
> Ideally Ledger would have an idea of the asset allocation of each commodity
> and I could pass a flag so the balance report would give the balance in
> terms of asset allocation categories instead of the underlying commodities.

Perhaps you could use metadata to achieve this.  But the fact is, Ledger
doesn't actually know _anything_ about finances.  It just looks that way.
Under the hood, it's simple a fancy calculator, and it's up to the user to
ascribe meaning to both the input and the output.

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Earls  
View profile  
 More options Nov 9 2012, 5:07 pm
From: Craig Earls <ender...@gmail.com>
Date: Fri, 9 Nov 2012 15:07:52 -0700
Local: Fri, Nov 9 2012 5:07 pm
Subject: Re: Asset allocation again

Unfortunately, Asset Allocation looks like an exchange rate from one
commodity to multiple commodities which I think would require very deep
changes in Ledgers math core.  John?

I thought about the use case you bring up, but I haven't solved it yet.
 There is a way, I just don't have it yet.

--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Nov 9 2012, 5:28 pm
From: "John Wiegley" <jo...@newartisans.com>
Date: Fri, 09 Nov 2012 16:28:13 -0600
Local: Fri, Nov 9 2012 5:28 pm
Subject: Re: Asset allocation again

>>>>> Craig Earls <ender...@gmail.com> writes:
> Unfortunately, Asset Allocation looks like an exchange rate from one
> commodity to multiple commodities which I think would require very deep
> changes in Ledgers math core.  John?

How would one convert a single commodity to multiple?

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Earls  
View profile  
 More options Nov 9 2012, 5:58 pm
From: Craig Earls <ender...@gmail.com>
Date: Fri, 9 Nov 2012 15:58:48 -0700
Local: Fri, Nov 9 2012 5:58 pm
Subject: Re: Asset allocation again

Yes, one way is to establish a multi-exchange rate, i.e. 1 pesata = .3 Euro
+ .9 dollars.  Or in this case  1 VIFDF = 0.1 Bond +0.5 Stock + 03 Cash

I don't think the math core could do something like that out of the box
without major changes.

On Fri, Nov 9, 2012 at 3:28 PM, John Wiegley <jo...@newartisans.com> wrote:
> >>>>> Craig Earls <ender...@gmail.com> writes:

> > Unfortunately, Asset Allocation looks like an exchange rate from one
> > commodity to multiple commodities which I think would require very deep
> > changes in Ledgers math core.  John?

> How would one convert a single commodity to multiple?

> John

--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Nov 9 2012, 6:22 pm
From: "John Wiegley" <jo...@newartisans.com>
Date: Fri, 09 Nov 2012 17:22:01 -0600
Local: Fri, Nov 9 2012 6:22 pm
Subject: Re: Asset allocation again

>>>>> Craig Earls <ender...@gmail.com> writes:
> Yes, one way is to establish a multi-exchange rate, i.e. 1 pesata = .3 Euro
> + .9 dollars.  Or in this case  1 VIFDF = 0.1 Bond +0.5 Stock + 03 Cash
> I don't think the math core could do something like that out of the box
> without major changes.

Mostly that's true, but the changes wouldn't be as you might think.  In
commodity.h there is a price_point_t structure, with member "amount_t price".
That would have to be changed to value_t price, and then all the code which
uses it would have to change to know about value_t.

There would have to be a restriction that prices in journal files could *not*
use multiple-exchange rates, since AMOUNT * COST must be an amount (single
commodity).  Changing _that_ would be huge.  But in terms of reporting only,
extending to allow multiple-exchange rates would not be too terrible.

What I would need to see is a really compelling reason to add this extra
complexity.  Is it only the asset allocation question that needs this?

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Harris  
View profile  
 More options Nov 9 2012, 6:36 pm
From: Matthew Harris <mharris...@gmail.com>
Date: Fri, 9 Nov 2012 15:36:30 -0800 (PST)
Local: Fri, Nov 9 2012 6:36 pm
Subject: Re: Asset allocation again

On Friday, November 9, 2012 3:22:05 PM UTC-8, John Wiegley wrote:
> What I would need to see is a really compelling reason to add this extra
> complexity.  Is it only the asset allocation question that needs this?

Yeah, it's the only one I'm aware of right now. I think it's more important
to fix existing bugs than to add a whole new layer of complexity. If I
could get the Python interface working for me, then I could probably
satisfy many of my wants.

Matthew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Earls  
View profile  
 More options Nov 9 2012, 6:38 pm
From: Craig Earls <ender...@gmail.com>
Date: Fri, 9 Nov 2012 16:38:14 -0700
Local: Fri, Nov 9 2012 6:38 pm
Subject: Re: Asset allocation again

I can't think of another reason.  Another way that I think can be done, but
I can't remember (or find in the docs) how to do it would be to set a value
on the command line that would be used in the automatic transmission expr
to mix in the account I want to run the auto xact against.

--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »