BlackScholes
Create BlackScholes
pricer object for
Vanilla
, Barrier
, Touch
,
DoubleTouch
, or Binary
instrument using
BlackScholes
model
Since R2020a
Description
Create and price a Vanilla
, Barrier
,
Touch
, DoubleTouch
, or
Binary
instrument object with a BlackScholes
model and a BlackScholes
pricing method using this
workflow:
Use
fininstrument
to create aVanilla
,Barrier
,DoubleTouch
,Binary
or ,Touch
instrument object.Use
finmodel
to specify aBlackScholes
model for theVanilla
,Barrier
,Touch
,DoubleTouch
, orBinary
instrument object.Use
finpricer
to specify aBlackScholes
pricer object for theVanilla
,Barrier
,Touch
,DoubleTouch
, orBinary
instrument object.
For more information on this workflow, see Get Started with Workflows Using Object-Based Framework for Pricing Financial Instruments.
For more information on the available instruments, models, and pricing methods for a
Vanilla
, Lookback
, Barrier
,
Asian
, Spread
, Touch
,
DoubleTouch
, or Binary
instrument, see Choose Instruments, Models, and Pricers.
Creation
Syntax
Description
creates a BlackScholesPricerObj
= finpricer(PricerType
,'Model
',model,'DiscountCurve
',ratecurve_obj,'SpotPrice
',spotprice_value)BlackScholes
pricer object by specifying
PricerType
and sets properties using the
required name-value pair arguments DiscountCurve
,
Model
, and SpotPrice
.
sets optional properties using
additional name-value pair arguments in addition to the required arguments
in the previous syntax. For example, BlackScholesPricerObj
= finpricer(___,Name,Value
)BlackScholesPricerObj =
finpricer("Analytic",'Model',BSModel,'DiscountCurve',ratecurve_obj,'SpotPrice',1000,'DividendType',"continuous",'DividendValue',100)
creates a BlackScholes
pricer object. You can specify
multiple name-value pair arguments.
Input Arguments
Properties
Object Functions
price | Compute price for interest-rate, equity, or credit derivative instrument with
Analytic pricer |
Examples
Version History
Introduced in R2020a