No BSD License  

Highlights from
MCSpreadOption.m

3.0

3.0 | 3 ratings Rate this file 17 Downloads (last 30 days) File Size: 3.16 KB File ID: #82

MCSpreadOption.m

by Espen Haug

 

31 Aug 1999

Monte Carlo Simulation Spread Options

| Watch this File

File Information
Description

The MCSpreadOption function can be used for valuation of spread options Spread options are actively traded on New York Mercantile Exchange (NYMEX) on the difference/spread between different oil qualities. Spread options are also popular in many other markets.
 
Tested under MATLAB 5.3 on Windows 98

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
28 Aug 2003 Lothar Schröder

can you please send me the full code, i can not download it

thanks

lothar

10 Sep 2003 Chris Hsieh

Well-written program. thanks for the sharing

25 Mar 2007 Dimitri Shvorob

A rather trivial (a dozen lines, essentially, a few of those perfectly avoidable) and not too well-written (twelve input arguments? how about using a structure?) program, posted, it seems, to advertize the author's book. (Is it really the most accessible reference on spread options?)

 implements some

30 Aug 2011 Wes Devauld

The For loop can be replaced with:

---Code Start
   Epsilon1 = normrnd(zeros(nSimulations,1),1);
   Epsilon2 = rho * Epsilon1 + normrnd(zeros(nSimulations,1),1) ...
               .* sqrt(ones(nSimulations,1) - rho ^ 2);
   St1 = S1 * exp(Drift1 + v1Sqrdt * Epsilon1);
   St2 = S2 * exp(Drift2 + v2Sqrdt * Epsilon2);
   price = exp(-r * T) * (sum(max(z * (St1 - St2 - X), 0)) / nSimulations);
---Code End

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
finance Espen Haug 22 Oct 2008 06:31:44
modeling Espen Haug 22 Oct 2008 06:31:44
analysis Espen Haug 22 Oct 2008 06:31:44
monte Espen Haug 22 Oct 2008 06:31:44
options Espen Haug 22 Oct 2008 06:31:44
simulation Espen Haug 22 Oct 2008 06:31:44
spread Espen Haug 22 Oct 2008 06:31:44
carlo Espen Haug 22 Oct 2008 06:31:44
finance brian Murray 20 Aug 2009 16:40:06

Contact us at files@mathworks.com