Function HEDGEDEMO aims to help students and instructors of finance visualize trading demands of simple static or dynamic value-hedging strategies. In a single-factor setting, 2-asset hedge portfolios are constructed to match, at a point in time, value and delta of the hedged portfolio, consisting of 1-2 assets, one unit of each. (Delta is estimated by shifting the factor path by +/- 0.01). Factor dynamics are described by a Matlab expression or function that defines vector 'X' in terms of vector 'T', where T = StartDate:EndDate. With 'X' defined and evaluated, paths of asset prices are similarly given by Matlab expressions or functions inputting 'X' and 'T'.
Cite As
Dimitri Shvorob (2024). Visualize dynamic hedging (https://www.mathworks.com/matlabcentral/fileexchange/18498-visualize-dynamic-hedging), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Computational Finance > Financial Toolbox >
- Computational Finance > Financial Instruments Toolbox > Price Instruments Using Functions > Equity Derivatives >
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.
hedgedemo/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | BSD |