Reporting: weighted average price source

Charles Day cedayiv at gmail.com
Mon Jul 7 15:54:46 EDT 2008


On Mon, Jul 7, 2008 at 12:21 PM, Derek Atkins <warlord at mit.edu> wrote:

> "Charles Day" <cedayiv at gmail.com> writes:
>
> > I agree with Derek. That is, the "weighted average" price source is not
> > intended to compute the cost of your holdings, but rather to compute the
> > volume-weighted average price of all buys AND sells. So it needs to keep
> using
> > the absolute value. However, it does need to be changed: it should ignore
> > exchanges with a zero "amount" in the split.
>
> Agreed.
>

I've adjusted the algorithm to ignore splits with a zero "amount", and have
committed the changes as r17265.  -Charles


> -derek
>
> --
>       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>       Member, MIT Student Information Processing Board  (SIPB)
>       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>       warlord at MIT.EDU                        PGP key available
>


More information about the gnucash-devel mailing list