Pairs Trading
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |