Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: finance
See also: HestonVanillaInt HestonCall

Quantlet: HestonVanilla
Description: calculates option price in Heston's stochastic volatility model.

Reference(s):

Usage: P = HestonVanilla(cp,s,k,v0,vv,rd,rf,tau,kappa,theta,lambda,rho{,phi})
Input:
cp scalar, cp=1 call option, cp=-1 put option
s scalar, Spot price of option
k scalar, Strike price of option
v0 scalar, initial variance
vv scalar, volatility of volatility
rd scalar, domestic interest rate
rf scalar, foreign interest rate
tau scalar, maturity in years
kappa scalar, mean reversion
theta scalar, long run variance
lambda scalar, market price of volatility
rho scalar, correlation
phi scalar, optional, Gauss-Legendre quadrature, default phi=GauLeg(0,100,100,1e-14)
Output:
P scalar, price of option

Example:
library("finance")
HestonVanilla(1,1.03,1,0.01,0.02,0.05,0.03,0.25,10,.01,0,.5)

Result:
Contents of P
[1,]  0.041943



Author: P. Uniejewski, R. Weron, U. Wystup, 20040403 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006