Pairs Trading

Version 1.0.0.0 (3.72 KB) by Hui Gong
This m-file will show you the dynamic pairs trading using the stochastic control approach.
898 Downloads
Updated 7 Mar 2014

View License

This function will help you to get the the instantaneous number of shares held respectively in stock one S1 and stock two S2. The dynamic of S1 and S2 will be implemented by the Monte Carlo simulation using Euler-Maruyama scheme. And there is an instantaneous co-integrating vector z(t) to link these two SDEs. You can use it to get the dynamic control pair and compare the terminal wealth with the one under the constant control pair.

Cite As

Hui Gong (2024). Pairs Trading (https://www.mathworks.com/matlabcentral/fileexchange/45789-pairs-trading), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Stochastic Differential Equation (SDE) Models in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0