QUOTE(polarzbearz @ Jan 24 2015, 02:14 AM)
Released v1.2, can be downloaded via first post. Thanks for all of your feedbacks

Change log:
p/s: let me know if spotted any errors ya

. I only did a quick QC as it's getting pretty late already

Ada salah lagi!
(1) Sales Charge calculation salah
E.g. Amount invested RM1,020, SC 2%, SC would be RM1,020 / (1 + 2%) x 2% = RM20
With your formula I got RM20.40
The amount u pay/invest is always AFTER SC
Remember this formula...
net investment x (1 + SC rate %) = amount paidSekian terima...wait!
Ada lagi satu...and this one is a FUNDAMENTAL ERROR some more
(2) Selling of unitsWhen u sell funds (with the exception of CMF),
u indicate how many UNITS to sell, NOT how much money u want to receive!
So, it should be
sale proceeds = round (units sold x NAV price,2)And what if got redemption fee like AmDynamite Bond?
sale proceeds = round(round(units sold x NAV price,2) x (1 - redemption fee %),2)e.g. sell 1,000 units at NAV price RM0.5000, redemption fee 1%
1,000 x 0.5 x 0.98 = RM490
(3) Need one more transaction type - PLATFORM FEE for bond fundsPlatform fee of 0.05% per quarter for some bond funds would most likely be deducted from CMF, by selling some units of CMF
E.g. platform fee charged RM10 for RHB-OSK Asian Total Return Fund
FSM would automatically generate a sell RM10 worth of CMF transaction to pay the platform fee
So, for CMF, it's routine, just treat it as a normal sale transaction.
For the bond fund concerned, it's...LAGI STRAIGHTFORWARD!

Units - leave empty
Price - leave empty
Amount - just manually key in the amount (make sure it's a NEGATIVE value, cos it's a cost to u) of platform fee actually charged by FSM (FSM would e-mail u every quarter for this). This I also cannot come out with a formula. Go FSM website read their FAQ on bond fund platform fee to know why...
I dunno how this would affect SUM(ABS) formula. This u go test and see...
Ok, here's your weekend assignment! Tata~
This post has been edited by Pink Spider: Jan 24 2015, 09:35 AM