Library: | finance |
See also: | HestonPut BatesCall MertonCall BatesPut MertonPut BlackScholes |
Quantlet: | HestonCall | |
Description: | calculates European call option prices in Heston model using FFT |
Usage: | y = HestonCall(S,K,T,r,kappa,theta,sigma,rho,v0) | |
Input: | ||
S | array: asset price | |
K | array: exercise price | |
T | array: time to maturity | |
r | array: interest rate | |
kappa | array: rate of mean-reversion | |
theta | array: average level of volatility | |
sigma | array: volatility of volatility | |
rho | array: corelation between two Wiener processes | |
v0 | array: initial volatility | |
Output: | ||
y | array: call option price |
library("finance") S=100 K=50|100|150 T=1 r= 0.2 kappa =0.1 rho = 0.0 theta = 0.9 sigma = 0.8 v0 = 0.05 y=HestonCall(S,K,T,r,kappa,theta,sigma,rho,v0) K~y
[1,] 50 59.216 [2,] 100 21.669 [3,] 150 4.2241