optstocksensbyls
Calculate price and sensitivities for European, Bermudan, or American vanilla options using Monte Carlo simulations
Syntax
Description
returns vanilla option prices or sensitivities using the Longstaff-Schwartz model.
PriceSens
= optstocksensbyls(RateSpec
,StockSpec
,OptSpec
,Strike
,Settle
,ExerciseDates
)optstocksensbyls
computes prices or sensitivities of European,
Bermudan, and American vanilla options.
For American and Bermudan options, the Longstaff-Schwartz least squares method is used to calculate the early exercise premium.
Note
Alternatively, you can use the Vanilla
object to
calculate price or sensitivities for vanilla options. For more information, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.
adds
optional name-value pair arguments.PriceSens
= optstocksensbyls(___,Name,Value
)