FiniteDifference
Create FiniteDifference pricer object for
Barrier, DoubleBarrier, or
Vanilla instrument using a BlackScholes,
Heston, Merton, or Bates
model
Description
Create and price a Vanilla, Barrier, or
DoubleBarrier instrument object with a
BlackScholes, Heston,
Bates, Merton, or Dupire model
and a FiniteDifference pricing method using this
workflow:
Use
fininstrumentto create theBarrier,DoubleBarrier, orVanillainstrument object.Use
finmodelto specify theBlackScholesmodel for aBarrierorDoubleBarrierinstrument or aHeston,Bates,Dupire, orMertonmodel for theVanillainstrument object.Use
finpricerto specify theFiniteDifferencepricer object for theBarrier,DoubleBarrier, orVanillainstrument 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 pricing methods for a
Vanilla, Barrier, or
DoubleBarrier instrument, see Choose Instruments, Models, and Pricers.
Creation
Syntax
Description
creates a FiniteDifferencePricerObj = finpricer(PricerType,'Model',model,'DiscountCurve',ratecurve_obj,'SpotPrice',spotprice_value)FiniteDifference pricer object by specifying
PricerType and sets the properties for the
required name-value pair arguments Model,
DiscountCurve, and
SpotPrice.
sets optional properties using
additional name-value pairs in addition to the required arguments in the
previous syntax. For example, FiniteDifferencePricerObj = finpricer(___,Name,Value)FiniteDifferencePricerObj =
finpricer("FiniteDifference",'Model',BSModel,'DiscountCurve',ratecurve_obj,'SpotPrice',100,'DividendValue',.025,'DividendType',"cash")
creates a FiniteDifference pricer object. You can specify
multiple name-value pair arguments.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
price | Compute price for equity instrument with FiniteDifference
pricer |
Examples
Version History
Introduced in R2020a