|
Classical Pairs Trading Using MatLab 1.0 File ID: 79258 |
---|
|
| Classical Pairs Trading Using MatLab 1.0 License: Freeware File Size: 112.6 KB Downloads: 119
Submit Rating: |
|
|
|
Classical Pairs Trading Using MatLab 1.0 Description |
---|
Description: This function performs the classical pairs trading framework in a given set of prices From Wikipedia, the free encyclopedia: d-deDUThe pairs trade was developed in the late 1980s by quantitative analysts and pioneered by Gerald Bamberger while at Morgan Stanley. With the help of others at Morgan Stanley at the time, including Nunzio Tartaglia, Bamberger found that certain securities, often competitors in the same sector, were correlated in their day-to-day price movements. When the correlation broke down, i.e. one stock traded up while the other traded down, they would sell the outperforming stock and buy the underperforming one, betting that the "spread" between the two would eventually converge.d-deDt
Source: http://en.wikipedia.org/wiki/Pairs_trade#A...c_pairs_trading See also the great book d-deDUDemon of Our Own Designd-deDt by Richard Bookstaber, which provides an interesting background for the pairs trading strategy.
There are many ways you can implement the pairs trading framework. For this package, I used a very simple set of rules. Details can be found within coded-deOaos comments.
Please note that this package has been developed over the years and it will no longer exactly replicate the results from my 2007 paper.
Qualities of the package: - Handles any number of assets - Outputs separately the plot for the total cumulative profit from the long, short and combined positions. - Outputs all trades, including traded prices and time of trades. - Provides the user a large amount of input choices for the pairs trading algorithm, including: * amount of money to put in each position (long and short) * value of transaction cost (in money unit) * size of moving window for finding the pairs over the price data * periodicity of pairs updates * maximum number of days to keep any trade (without convergence). * value of threshold variable Main references related to the pairs trading strategy are: NATH, P. (2003) "High Frequency Pairs Trading with U.S. Treasury Securities: Risks and Rewards for Hedge Funds", Working Paper, London Business School.
GATEV, E., GOETZMANN, W. N., ROUWENHORST, K. G. (1999) d-de?Pairs Trading: Performance of a Relative Value Arbitrage Ruled-deOao, Working Paper, Yale School of Management. Available at SSRN: http://ssrn.com/abstract=141615. PERLIN, M. S. (2009) d-de?Evaluation of Pairs Trading Strategy at the Brazilian Financial Marketd-deOao Journal of Derivatives & Hedge Funds, V. 15, N. 2, pp. 122-136.
PERLIN, M. S. (2007b) "M of a Kind: A Multivariate Approach at Pairs Trading". Working Paper. available at SSRN: http://ssrn.com/abstract=952782. License: Freeware Related: maximum, convergence, Updates, periodicity, moving, Window, Finding, threshold, Variable, pairs, Trading, treasury, Frequency, quothigh, references, related, Strategy, Transaction O/S:BSD, Linux, Solaris, Mac OS X File Size: 112.6 KB Downloads: 119
|
|
More Similar Code |
---|
Files used in the webinar - Algorithmic Trading with MATLAB Products for Financial Applications broadcast on November 18, 2010. This webinar can be viewed at http://www.mathworks.com/wbnr52491.
The download includes an additional demo, not shown in the webinar, that shows how to generate C-code from MATLAB.
Slides, software, and data for the MathWorks webinar, "Using MATLAB to Develop Macroeconomic Models." The file moneydemo.zip contains a file moneydemo.pdf with slides for the webinar and a collection of MATLAB scripts and helper...
"Dynamical Systems with Applications using MATLAB" covers standard material for an introduction to dynamical systems theory. The text deals with both discrete and continuous systems.
There are applications in mechanical...
Programs from the third edition of 'Advanced Mathematics and Mechanics Applications Using MATLAB', by Howard Wilson, Louis Turcotte and David Halpern, CRC Press, 2003, ISBN 1-58488-262-X. Contains about 12,000 lines of MATLAB programs and...
Read and Write Values from and to the Registry using Matlab.
Contains: source code and documentation.
September 13, 2006
This demo shows a simple program on the video surveilance using MATLAB and some toolboxes.
Features: 1. Run in 2 modes --> Monitoring and Playback 2. Users are allowed to change the threshold value and the snap counter for...
Files used in the Webinar "Developing a Financial Market Index Tracker using MATLAB OOP and Genetic Algorithms"
The zip file contains the data and files used to develop an application to track a market index using Genetic...
A Zip file containing the examples that were used in the MathWorks webinar: "Pricing Derivatives Securities using MATLAB".
Highlights: * Pricing a portfolio of vanilla options using Black-Scholes, a Binomial Tree and...
Update 2011: An example application is included which shows a 2D plot using Matlab formulas. Requires MFC. Visual Studio 2008 is recommended, but the project should work in other versions.
Another update is more correct support for...
A GENERALAZED CONVOLUTION COMPUTING CODE IN MATLAB WITHOUT USING MATLAB BUILTIN FUNCTION conv(x,h) |
User Review for Classical Pairs Trading Using MatLab |
|