On Mon, Jul 7, 2008 at 12:21 PM, Derek Atkins <[EMAIL PROTECTED]> wrote:

> "Charles Day" <[EMAIL PROTECTED]> 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
>       [EMAIL PROTECTED]                        PGP key available
>
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to