Hi David,
I understand that you intend to price an Arithmetic European style Asian Option, with an underlying asset as a future contract, using the Levy Model.
To specify ‘StartDate’ and other mentioned parameters, for the given example of European arithmetic average pricing for Asian options using the Levy model, you can perform the following steps:
- Define Option Parameters
Given your scenario:
- Option Type: Asian option based on the average price of a future contract during November 2023.
- Start of Averaging Period: November 1, 2023.
- Expiry Date: November 30, 2023, Last Day of the averaging period, where the option's payoff is determined based on this calculated average price relative to the strike price.
- Settlement Date: September 29, 2023 (Close-of-Business). It marks the point at which the current spot price of the underlying future contract is observed.
Settle = datetime(2023, 09, 29);
Maturity = datetime(2023, 11, 30);
AvgDate = datetime (2023, 11, 01);
2. Using asianbylevy function: To use the ‘asianbylevy’ function in MATLAB, you will need to define several key
parameters, including the start date for the averaging period ‘AvgDate’. Here's how you can set it up:
- rateSpec object: ‘intenvset’ function creates an interest-rate term structure (RateSpec) where the input argument list is specified as name-value pairs.
RateSpec = intenvset('ValuationDate', Settle, 'StartDates', AvgDate, 'EndDates', Maturity, 'Rates', Rate, 'Compounding', -1);
- stockSpec object: ‘stockSpec’ function that creates a structure containing the properties of a stock. It handles different types of underliers when pricing instruments other than equities.
StockSpec = stockspec(Volatility, AssetPrice);
- Specify Option Type and compute average price for the Asian option using the Levy model.
Price = asianbylevy(RateSpec, StockSpec, OptSpec, Strike, AvgDate, Maturity);
For more information regarding parameters and functions used in the code snippet, kindly refer to the documentation links mentioned below:
Best