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

Main : C++ : 



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


Category: C++ View Full Details
Download Now!Trinomial Tree Class
Submitter: vanna Date: 2007/3/19
Description:
@author Phineas Campbell

This page contains the code and details of a C++ class that can be used to build a trinomial tree for the short rate. The tree fits to the yield curve but not to the vol. curve.

The code is based on the p code on page 260 in Clewlow and Strickland and the model should not be used without reference to that text.
The code defines a C++ implementation of a tree object. By passing a set of parameters the class will build an array of nodes, each one corresponding to a node on the tree. Currently the tree is fitted to the underlying interest rate curve, but not a vol. curve.


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 1501 times  1501  File Size 0 bytes  Supported Platforms C++  Home Page http://www.phineas.pwp.blueyonder.co.uk/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (8)

Category: C++ View Full Details
Download Now!C++ Financial Algoritms (Financial Numerical Recipes)
Submitter: vanna Date: 2007/2/28
Description:
by Bernt Arne

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 8343 times  8343  File Size 0 bytes  Supported Platforms C++  Home Page http://finance-old.bi.no/~bernt/
Rating: 8.00 (1 vote)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (23)

Category: C++ View Full Details
Download Now!Asian Option Price using German Yor's approach
Submitter: vanna Date: 2007/1/30
Description:
Calculates price of Asian option using German and Yor approach as descrbed in paper On the valuation of Asian options: the Geman-Yor Laplace transform revisited, December 2000, 24pp
LaLaplaceTransform function in file asianpricer.cpp is based on function Dv(a,z) as described in page 7 of the paper.
Note:
1.To do the inverse laplace transform, integration is performed after the bigger pole (2v+2)
2.There is problem with integration function not behaving well for oscillations, hence chunks of quad ouput are used for convergence

Results are verified to values mentioned in FMW test problem 1,2,3 mentioned in page 5 of Pricing Asian Options by Contour Integration

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 727 times  727  File Size 0 bytes  Supported Platforms Visual C++ 6.0  Home Page http://www.quantcode.com/modules/docmanager/view_file.php?curent_file=13&curent_dir=12
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (12)

Category: C++ View Full Details
Download Now!Hypergeomtric and Gamma Functions for all complex inputs
Submitter: vanna Date: 2007/1/30
Description:
Here is an F2ced version of the program pfq.f

For Confluent HyperGeometric fun F(a,b,z) use:

extern void HyperGeomFun(double a_real,double a_imag,double b_real,double b_imag, double z_real, double z_imag,double* res_real,double* res_imag);

For complex gamma fn use:

extern void cgamma(double arg_real,double arg_imag,double* res_real, double* res_imag,int logFlag);ing

Setting logFlag=0 returns original value while logFlag=1 returns log of value

Fox example code refer [url="http://www.quantcode.com/modules/mydownloads/singlefile.php?cid=10&lid=142"]Asian Option Price using German Yor's approach[/url]
suggestions are welcome, contact me at sommy1968ZNOSPAM@gmail.com


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 478 times  478  File Size 96 bytes  Supported Platforms C++  Home Page http://www.quantcode.com/modules/docmanager/index.php?curent_dir=13
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (11)

Category: C++ View Full Details
Download Now!CDO Square Loss distribution using Gaussian Copula
Submitter: vanna Date: 2007/1/13
Description:
Calculates loss distribution of super CDO using Gaussian Copula.
Input overlap matrix structure is similar to table 3 page 7 as described in CDOs-Squared Demystified

Calculations are based on formulas for loss as described in Synthetic CDOs of CDOs: Squaring the Delta-Hedged Equity Trade

Program Output:
Displays bins of histogram for loss distribution.
If wGnuPlot.exe is present on the system path, uncomment the following line in main.cpp to display bar graph:
//#define HAVE_GNUPLOT 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 1698 times  1698  File Size 0 bytes  Supported Platforms C++ GSL  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (11)
« 1 2 3 4 5 6 7 (8) 9 10 11 »
Similar Links:

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