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: Rating (Lowest Score to Highest Score)


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!Implicit Finite Difference Method
Submitter: vanna Date: 2006/11/14
Description:
Calculates price for Put Options using
implicit finite difference method as described in Hull's book "Options, Futures and other Derivatives" in section 18.8

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 2373 times  2373  File Size 0 bytes  Supported Platforms Octave Matlab  Home Page http://www.quantcode.com/
Rating: 6.00 (1 vote)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (13)

Category: Matlab View Full Details
Download Now!Finite Difference Methods for American Option
Submitter: vanna Date: 2007/8/26
Description:
Appendix of the file contains Matlab code for pricing of American options using different types of methods:
A.1 Direct Discretization - Explicit Method
A.2 Direct Discretization - Implicit Method
A.3 Brennan & Schwartz Model 1
A.4 Brennan & Schwartz Model 2 - Explicit Method
A.5 Brennan & Schwartz Model 2 - Implicit Method
A.6 Courtadon Model 1
A.7 Courtadon Model 2
A.8 Wilmott et. al. - Theta Method
A.9 Linear Complementarity Model - Theta Method

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 2900 times  2900  File Size 0 bytes  Supported Platforms   Home Page http://www.cam.wits.ac.za/
Rating: 6.00 (1 vote)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (5)

Category: Matlab View Full Details
Download Now!Simulation of SDEs
Submitter: vanna Date: 2006/12/29
Description:
A nice site with lots of example code based on articles including:
An Algorithmic Introduction to Numerical Simulation of Stochastic Differential equations, by D. J. Higham
Nine Ways to Implement the Binomial Method for Option Valuation in MATLAB,

keywods: Euler

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 1217 times  1217  File Size 0 bytes  Supported Platforms Matlab  Home Page http://www.maths.strath.ac.uk/
Rating: 7.00 (1 vote)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (11)

Category: Matlab View Full Details
Download Now!Barrier option price using Crank Nicholson Finite difference method
Submitter: vanna Date: 2008/9/28
Description:
This file calculates call option price for following barrier options:

1.cuo - Up and out call
2.cui - Up and In call
3.cdo - Down and Out call
4.cdi - Down and In call

The finite difference methods employed is Crank nicholson

Note:
1.Please also download a required file BlackScholes Price. This file returns price of a vanilla call option, which is necessary to calculate price of knockin option using formula:
Vanilla Option price = KnockinOption price + KnockoutOption price

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 1334 times  1334  File Size 0 bytes  Supported Platforms Octave Matlab  Home Page http://www.quantcode.com/
Rating: 7.00 (1 vote)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (8)
« 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.