>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
Consider a zero-coupon bond with face value 100 maturing in one year.
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
For bonds the DirtyPrice is equivalent to the NetPresentValue command when the discount rate is constant and equal to the yield. Similarly, the InternalRateOfReturn command is equivalent to the YieldFromDirtyPrice command.
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
Consider a 3-year bond with face value of 100 that pays a fixed coupon of 3 percent issued on March 15, 2005.
>
|
|
>
|
|
>
|
|
Reset the default day counter to be Thirty360European.
>
|
|
>
|
|
| (11) |
>
|
|
Calculate the purchase price of the bond using five different methods. Note that by default all rates are assumed to be based on continuous compounding.
>
|
|
| (12) |
>
|
|
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
>
|
|
| (17) |
Here is the same bond using a different business day convention and day counter.
>
|
|
>
|
|
>
|
|
| (18) |
Note that the NetPresentValue command will adjust the evaluation date according to the underlying business day convention.
>
|
|
| (19) |
>
|
|
| (20) |
>
|
|
| (21) |
>
|
|
| (22) |
>
|
|
| (23) |