No BSD License
-
American(varargin)
AMERICAN M-file for American.fig
-
AssetorNth(varargin)
ASSETORNTH M-file for AssetorNth.fig
-
CashorNth(varargin)
CASHORNTH M-file for CashorNth.fig
-
Chooser(varargin)
CHOOSER M-file for Chooser.fig
-
Compound(varargin)
COMPOUND M-file for Compound.fig
-
DerivativeGui(varargin)
DERIVATIVEGUI M-file for DerivativeGui.fig
-
European(varargin)
EUROPEAN M-file for European.fig
-
Exchange(varargin)
EXCHANGE M-file for Exchange.fig
-
GeometricAverage(varargin)
GEOMETRICAVERAGE M-file for GeometricAverage.fig
-
IndexFuture(varargin)
INDEXFUTURE M-file for IndexFuture.fig
-
LookBack(varargin)
LOOKBACK M-file for LookBack.fig
-
Power(varargin)
POWER M-file for Power.fig
-
ExchangeValue=ExchangeOption(...
-
ForwardValue=StockForward(S,d...
-
OptionValue=ChooserOption(S,k...
-
[Call,Put]=EuroAssetDigital(R...
-
[Call,Put]=EuroDigitalGB(R,D,...
-
[call,put]=FloatingLookback(S...
Floating strike Lookback option
-
[call,put]=GeometricAsia(S,k,...
-
[call,put]=PowerOption(S,k,r,...
-
[call,put]=americanoption(s,k...
author:QuantHR
-
price=EuropeanCompound(s,k1,k...
calculate european compound option;
-
sum=cbnd(a,b,p)
calculation of cumulative probability in bivariate normal distribution;
-
View all files
from
Matlab-GUI equity derivative calculator
by Biao
equity derivative calculator using matlab GUI
|
| [call,put]=FloatingLookback(S,r,T,sigma,d,Smax,Smin)
|
function [call,put]=FloatingLookback(S,r,T,sigma,d,Smax,Smin)
%Floating strike Lookback option
%S: price of stock; d: dividend rate;
%T: time to maturity; max, min: up to current the max/min stock price;
a1=(log(S/Smin)+(r-d+sigma^2/2)*T)/(sigma*sqrt(T));
a2=a1-sigma*sqrt(T);
a3=(log(S/Smin)+(-r+d+sigma^2/2)*T)/(sigma*sqrt(T));
r1=-2*(r-d-sigma^2/2)*log(S/Smin)/sigma^2;
call=S*exp(-d*T)*normcdf(a1)-S*exp(-d*T)*sigma^2/(2*(r-d))*normcdf(-a1)...
-Smin*exp(-r*T)*(normcdf(a2)-sigma^2/(2*(r-d))*exp(r1)*normcdf(-a3));
b1=(log(Smax/S)+(-r+d+sigma^2/2)*T)/(sigma*sqrt(T));
b2=b1-sigma*sqrt(T);
b3=(log(Smax/S)+(r-d-sigma^2/2)*T)/(sigma*sqrt(T));
r2=2*(r-d-sigma^2/2)*log(Smax/S)/sigma^2;
put=S*exp(-d*T)*sigma^2/(2*(r-d))*normcdf(-b2)-S*exp(-d*T)*normcdf(b2)...
+Smax*exp(-r*T)*(normcdf(b1)-sigma^2/(2*(r-d))*exp(r2)*normcdf(-b3));
|
|
Contact us at files@mathworks.com