public class BarrierOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BarrierOptions.BarrierType |
Modifier and Type | Method and Description |
---|---|
static double |
blackScholesBarrierOptionValue(double initialStockValue,
double riskFreeRate,
double dividendYield,
double volatility,
double optionMaturity,
double optionStrike,
boolean isCall,
double rebate,
double barrierValue,
BarrierOptions.BarrierType barrierType)
Value a barrier option.
|
public static double blackScholesBarrierOptionValue(double initialStockValue, double riskFreeRate, double dividendYield, double volatility, double optionMaturity, double optionStrike, boolean isCall, double rebate, double barrierValue, BarrierOptions.BarrierType barrierType)
initialStockValue
- The model's initial value of the stock.riskFreeRate
- The model's risk free rate of the stock.dividendYield
- The model's dividend yield of the stock.volatility
- The model's volatility yield of the stock.optionMaturity
- The product's option maturity.optionStrike
- The product's option strike.isCall
- If true, the a call option will be valued, otherwise a put option.rebate
- The product's rebate.barrierValue
- The location of the barrier.barrierType
- The type of the barrier.Copyright © 2020 finmath.net. All rights reserved.