| Financial Derivatives Toolbox™ | ![]() |
[Price, PriceTree] = optstockbyitt(ITTTree,
OptSpec, Strike,
Settle, ExerciseDates, AmericanOpt)
ITTTree | Stock tree structure created by itttree. |
OptSpec | Number of instruments (NINST)-by-1 cell array of strings '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. American option: NINST-by-1 vector of strike price values for each option. |
Settle | NINST-by-1 vector of settlement or trade dates. |
ExerciseDates | For a European or Bermuda option: 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 | (Optional) If AmericanOpt = 0, NaN, or is unspecified, the option is a European or Bermuda option. If AmericanOpt = 1, the option is an American option. |
Note Data arguments for optstockbyitt are NINST-by-1 vectors, scalar, or empty. Fill unspecified entries in vectors with NaN. Only one data argument is required to create the instrument; the others may be omitted or passed as empty matrices []. |
[Price, PriceTree] = optstockbyitt(ITTTree, OptSpec, Strike, Settle, ExerciseDates, AmericanOpt) computes the price of a European/Bermuda or American stock option.
Price is a NINST-by-1 vector of expected option prices at time 0.
PriceTree is a tree structure with a vector of instrument prices at each node.
Note The Settle date for every option is set to the ValuationDate of the stock tree. The option argument, Settle, is ignored. |
Price a stock option using an ITT equity tree.
Load the file deriv.mat which provides the ITTTree. The ITTTree structure contains the stock specification and time information needed to price the option.
load deriv.mat
Set the required values. Other arguments will use defaults.
OptSpec = 'Put'; Strike = 80; Settle = '01-Jan-2006'; ExerciseDates = ' 01-Jan-2010 '; Price = optstockbyitt(ITTTree, OptSpec, Strike, Settle,ExerciseDates) Price = 10.68
instoptstock, itttree, stockoptspec
![]() | optstockbyeqp | rate2disc | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |