| Contents | Index |
[Price, PriceTree] = optbndbybdt(BDTTree,
OptSpec, Strike,
ExerciseDates, AmericanOpt,
CouponRate, Settle, Maturity,
Period, Basis,
EndMonthRule, IssueDate, FirstCouponDate,
LastCouponDate,
StartDate, Face, Options)
BDTTree | Forward-rate tree structure created by bdttree. |
OptSpec | Number of instruments (NINST)-by-1 cell array of string values 'Call' or 'Put'. |
Strike | European option: NINST-by-1 vector of strike price values. Bermuda option: NINST by number of strikes (NSTRIKES) matrix of strike price values. Each row is the schedule for one option. If an option has fewer than NSTRIKES exercise opportunities, the end of the row is padded with NaNs. For an American option: NINST-by-1 vector of strike price values for each option. |
ExerciseDates | NINST-by-1 (European option) or NINST-by-NSTRIKES (Bermuda option) matrix of exercise dates. Each row is the schedule for one option. For a European option, there is only one exercise date, the option expiry date. For an American option: NINST-by-2 vector of exercise date boundaries. For each instrument, the option can be exercised on any coupon date between or including the pair of dates on that row. If only one non-NaN date is listed, or if ExerciseDates is NINST-by-1, the option can be exercised between the underlying bond Settle and the single listed exercise date. |
AmericanOpt | NINST-by-1 vector of flags: 0 (European/Bermuda) or 1 (American). |
CouponRate | Decimal annual rate. CouponRate is a NINST-by-1 vector. |
Settle | Settlement date. A vector of serial date numbers or date strings. Settle must be earlier than Maturity. |
Maturity | Maturity date. A vector of serial date numbers or date strings. |
Period | (Optional) Coupons per year of the bond. A vector of integers. Allowed values are 1, 2, 3, 4, 6, and 12. Default = 2. |
Basis | (Optional) Day-count basis of the instrument. A vector of integers.
For more information, see basis. |
EndMonthRule | (Optional) End-of-month rule. A vector. This rule applies only when Maturity is an end-of-month date for a month having 30 or fewer days. 0 = ignore rule, meaning that a bond's coupon payment date is always the same numerical day of the month. 1 = set rule on (default), meaning that a bond's coupon payment date is always the last actual day of the month. |
(Optional) Date when a bond was issued. | |
FirstCouponDate | (Optional) Date when a bond makes its first coupon payment; used when bond has an irregular first coupon period. When FirstCouponDate and LastCouponDate are both specified, FirstCouponDate takes precedence in determining the coupon payment structure. If you do not specify a FirstCouponDate, the cash flow payment dates are determined from other inputs. |
LastCouponDate | (Optional) Last coupon date of a bond before the maturity date; used when bond has an irregular last coupon period. In the absence of a specified FirstCouponDate, a specified LastCouponDate determines the coupon structure of the bond. The coupon structure of a bond is truncated at the LastCouponDate, regardless of where it falls, and is followed only by the bond's maturity cash flow date. If you do not specify a LastCouponDate, the cash flow payment dates are determined from other inputs. |
StartDate | (Optional) Date when a bond actually starts (the date from which a bond cash flow is considered). To make an instrument forward-starting, specify this date as a future date. If you do not specify StartDate, the effective start date is the Settle date. |
Face | (Optional) Face or par value. Face is a NINST-by-1 vector. Default = 100. |
Options | (Optional) Derivatives pricing options structure created with derivset. |
The Settle date for every bond is set to the ValuationDate of the BDT tree. The bond argument Settle is ignored.
[Price, PriceTree] = optbndbybdt(BDTTree, OptSpec, Strike, ExerciseDates, AmericanOpt, CouponRate, Settle, Maturity, Period, Basis, EndMonthRule, IssueDate, FirstCouponDate, LastCouponDate, StartDate, Face, Options) computes the price of a bond option from a BDT interest-rate tree.
Price is an NINST-by-1 matrix of expected prices at time 0.
PriceTree is a tree structure with a vector of instrument prices at each node.
Example 1. Using the BDT interest-rate tree in the deriv.mat file, price a European call option on a 10% bond with a strike of 95. The exercise date for the option is Jan. 01, 2002. The settle date for the bond is Jan. 01, 2000, and the maturity date is Jan. 01, 2003.
Load the file deriv.mat, which provides BDTTree. The BDTTree structure contains the time and forward-rate information needed to price the bond.
load deriv.mat;
Use optbondbybdt to compute the price of the option.
Price = optbndbybdt(BDTTree,'Call',95,'01-Jan-2002',...
0,0.10,'01-Jan-2000','01-Jan-2003',1)
Price =
1.7657
Example 2. Now use optbndbybdt to compute the price of a put option on the same bond.
Price = optbndbybdt(BDTTree,'Put',95,'01-Jan-2002',...
0,0.10,'01-Jan-2000','01-Jan-2003',1)
Price =
0.5740
bdtprice | bdttree | instoptbnd
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |