Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

Main : Matlab : 



Sort by:  Title () Date () Rating () Popularity ()
Files currently sorted by:


Category: Matlab View Full Details
Download Now!Code Financial Modelling
Submitter: Lapsi Date: 2012/10/25
Description:
This is the code for the book
"Financial Modelling, Theory, Implementation and Practice (with Matlab Source)" by Kienitz and Wetterau.
This book shows how to cope with the usage and the implementation of models for derivatives pricing, asset allocation and hedging.
We cover Non-Gaussian (StochVol, Levy, StochVolLevy, LV) using state-of-the art Transformation methods, Monte Carlo and we give calibration algos.

The corresponding book can be found here:
http://www.amazon.co.uk/Financial-Modelling-Implementation-Practice-Finance/dp/0470744898/ref=sr_1_1?ie=UTF8&qid=1351061102&sr=8-1

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 644 times  644  File Size 0 bytes  Supported Platforms Windows, Mac, Unix  Home Page http://www.mathworks.de/matlabcentral/fileexchange/authors/246981
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (7)

Category: Matlab View Full Details
Download Now!Binomial option pricing formula
Submitter: panos Date: 2011/3/17
Description:
%Example: Note requires the financial toolbox function blsprice
S=50; K=50; sigma=0.4; r=0.1; T=1; steps=200;
a=[]; b=[];
counter=0;
for k=5:5:steps
counter=counter+1;
a(counter)=TreeMy(S,K,sigma,r,T,k);
b(counter)=blsprice(S,K,r,T,sigma);
end
k=5:5:steps;
plot(k,a,'b');
hold on
plot (k,b,':r');
hold off
title('Option price as a function of the number of steps');
ylabel('Option price');
xlabel('Number of steps, n');

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 2155 times  2155  File Size 416 bytes  Supported Platforms   Home Page http://www.quantcode.com/modules/docmanager/view_file.php?curent_file=417&curent_dir=19
Rating: 4.00 (1 vote)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (99)

Category: Matlab View Full Details
Download Now!European knock out call option with a barrier Sb
Submitter: panos Date: 2011/3/17
Description:
Consider a European knock out call option with a barrier Sb. This is an option that seizes
to exist when the price of the underlying asset hits a predetermined barrier during the entire
life of the contract. The function KOCallTreeMy returns the value of a knock-out European
call option using a binomial lattice:

Example:
KOCallTreeMy(50,55,0.2,0.1,1,200,60)
ans =
0.0883

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 580 times  580  File Size 0 bytes  Supported Platforms   Home Page Consider a European knock out call option with a barrier Sb. This is an option that seizes to exist
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (10)

Category: Matlab View Full Details
Download Now!Monte Carlo matlab code of a good student
Submitter: Aquabat Date: 2011/2/18
Description:
Just happened to come across this link, thought it will be useful example code for pricing barrier options and using variance reduction techniques
I can't find his name, only his ID is there

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 1338 times  1338  File Size 0 bytes  Supported Platforms Matlab  Home Page http://www.telefonica.net
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (8)

Category: Matlab View Full Details
Download Now!Finite difference vs pathwise derivative for finding option delta using MC simulation
Submitter: vanna Date: 2011/2/10
Description:
This is a tutorial code which demonstrates comparison of the below 3 methods to find delta of a plain vanilla call option using monte carlo simulations:
1. Finite difference using forward difference scheme
2. Finite difference using crank nicholson scheme
3. Pathwise derivative method suggestd by formula in Glasserman's paper

Following is an output of the reslut:
octave-3.1.50.exe:53> mcblack
analytical_delta =  0.76307

avg_finitediff_delta_CN =  0.76080
avg_finitediff_delta_Fwd =  0.76091
avg_pathwise_delta =  0.76079

variance_pathwise_delta = 2.6992e-004
variance_finitediff_delta_CN = 2.7027e-004
variance_finitediff_delta_Fwd = 2.7011e-004


Points to note from the results:
- avg_finitediff_delta_Fwd is biased higher, which matches with the explanation
- crank nicholson gives better values than forward difference scheme, since it is closer to analytical value
- variance of delta calculated using crank nicholson increases when FD step size (h) is decreased

PS : Following file is needed to compare analytical result:
http://www.quantcode.com/modules/docmanager/view_file.php?curent_file=407&curent_dir=19

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 648 times  648  File Size 0 bytes  Supported Platforms Matlab Octave  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (13)
(1) 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 »
Similar Links:

Subscribe to RSS or daily email updates of latest quantitative finance code listings
Email address :
Copyright © 2011 QuantCode Inc. All rights reserved.