Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#25 Trade Cost is not included in average cost of share

closed-fixed
nobody
None
5
2012-02-26
2006-12-16
Anonymous
No

I have found that average cost of share does not include cost of transaction. I've done the fix in ShareAccount class in function transaction:

double averageCost = ((transaction.getAmount().doubleValue()+transaction.getTradeCost().doubleValue()) /transaction.getShares());

Now it shows real average cost of my shares.

TomekC
tomekc@onet.eu

Discussion

  • TomaszCzerny
    TomaszCzerny
    2006-12-16

    Logged In: YES
    user_id=628426
    Originator: NO

    it's me and my account on sf: tomekc_zg

     
  • Mark Hummel
    Mark Hummel
    2011-05-13

    "Patch" applied and released in 0.72 beta.

     
  • Mark Hummel
    Mark Hummel
    2011-05-13

    • status: open --> closed
     
  • Mark Hummel
    Mark Hummel
    2012-02-26

    • status: closed --> closed-fixed