March 3rd, 2009, 1:21 am
Hello, I wonder if someone could tell me how to modify the excel file so that it works for semiannual coupons and semiannual compounding.Here is the functionFunction price449(c As Double, N As Integer, ytm As Double) As DoubleDim x As Doublex = 1 / (1 + ytm)price449 = c * (x - x ^ (N + 1)) / (1 - x) + 1 * x ^ NEnd FunctionThe file is attached
-
Attachments
-
Yield curve stripping.zip
- (11.11 KiB) Downloaded 71 times
Last edited by
deathstar9 on March 2nd, 2009, 11:00 pm, edited 1 time in total.